On 14.12.2016 16:42, Vladislav V. Prodan wrote:
> Здравствуйте.
> 
> Подскажите внятный мануал по сабжу
> 
> В консоли nping (входит в nmap) написал:
> ...
> nping_event_handler(): READ-PCAP killed: Invalid argument
> nping_event_handler(): READ-PCAP killed: Invalid argument
> Assertion failed: (nse->iod->events_pending >= 0), function 
> nsock_pool_delete, file nsock_pool.c, line 233.
> Abort trap (core dumped)
> ...
> 
> # gdb -c nping.core
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "amd64-marcel-freebsd".
> Core was generated by `nping --tcp -c 6 --delay 700ms 239.0.4.3 -p 5501'.
> Program terminated with signal 6, Aborted.
> #0  0x0000000801c95e6a in ?? ()
> (gdb) bt
> #0  0x0000000801c95e6a in ?? ()
> #1  0x0000000801c95e3b in ?? ()
> #2  0x0000000000018afa in ?? ()
> #3  0x738a93ade55af512 in ?? ()
> #4  0x00007fffffffe4a4 in ?? ()
> #5  0x0000000802273060 in ?? ()
> #6  0x00007fffffffe4c0 in ?? ()
> #7  0x0000000801c95da9 in ?? ()
> #8  0x738a93ade55af512 in ?? ()
> #9  0x000000000000006c in ?? ()
> #10 0xffffffdf0000006c in ?? ()
> #11 0xffffffffffffffff in ?? ()
> #12 0x00000008ffffffff in ?? ()
> #13 0x00000008022733c0 in ?? ()
> #14 0x00007fffffffe4d0 in ?? ()
> #15 0x0000000801d13491 in ?? ()
> #16 0x00007fffffffe540 in ?? ()
> #17 0x000000000042cbbc in ?? ()
> #18 0x0000000000000000 in ?? ()
> (gdb)
> 
> 
> В BSDmag не пробегала статья в этом году, как дебажить подобное?

Дамп без символов малополезен. Первым делом пересобирать приложение без 
оптимизации
и с отладкой, для порта это make WITH_DEBUG=yes, для ручной сборки cc -O0 -g 
вместо -O2.

Но в данном случае, да, мультикаст и tcp - очень подозрительное сочетание.
Насколько я знаю, tcp с мультикастом несовместим.

Ответить