Nmap Development mailing list archives
[NPING] crash while pinging ::1
From: Vasiliy Kulikov <segooon () gmail com>
Date: Sat, 13 Aug 2011 19:33:18 +0400
Hi,
While trying to ping ::1, I get SIGSEGV:
$ sudo ./nping -6 ::1
[sudo] password for vasya:
Ошибка сегментирования (core dumped)
$
Relevant part of valgrind output:
...
==9831== at 0x40EEEB: NpingOps::select_network_iface() (NpingOps.cc:2953)
==9831== by 0x40F723: NpingOps::validateOptions() (NpingOps.cc:2494)
==9831== by 0x40B28B: main (nping.cc:157)
==9831== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9831==
==9831==
==9831== Process terminating with default action of signal 11 (SIGSEGV)
==9831== Access not within mapped region at address 0x0
==9831== at 0x40EEEB: NpingOps::select_network_iface() (NpingOps.cc:2953)
==9831== by 0x40F723: NpingOps::validateOptions() (NpingOps.cc:2494)
==9831== by 0x40B28B: main (nping.cc:157)
==9831== If you believe this happened as a result of a stack
==9831== overflow in your program's main thread (unlikely but
==9831== possible), you can try to increase the size of the
==9831== main thread stack using the --main-stacksize= flag.
==9831== The main thread stack size used in this run was 8388608.
...
If insert printf() in select_network_iface(), it shows:
...
/* Loop through the list of addresses */
for(pcap_addr_t *curraddr=curr->addresses; curraddr!=NULL; curraddr=curraddr->next){
current_has_address=true;
printf("curraddr->addr = %p\n", curraddr->addr);
if( curraddr->addr->sa_family==AF_INET){
...
$ sudo ./nping -6 ::1
[sudo] password for vasya:
curraddr->addr = (nil)
Ошибка сегментирования (core dumped)
$ uname -a
Linux albatros 2.6.38-10-generic #46~lucid1-Ubuntu SMP Wed Jul 6 18:41:04 UTC 2011 x86_64 GNU/Linux
$ ip -6 addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
$
--
Vasiliy
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/
Current thread:
- [NPING] crash while pinging ::1 Vasiliy Kulikov (Aug 13)
- Re: [NPING] crash while pinging ::1 Luis MartinGarcia. (Aug 15)
