tcpdump mailing list archives
Re: [tcpdump] coredump when launched in a ESX4 VM without interface parameter (#59)
From: Michael Richardson <mcr () sandelman ca>
Date: Tue, 26 Mar 2013 12:07:39 -0400
"JoKoT3" == JoKoT3 <notifications () github com> writes:
JoKoT3> tcpdump version 4.3.0 libpcap version 1.3.0 Systems : both JoKoT3> systems are arch x64 up-to-date, one is an ESX 4 VM, the JoKoT3> other is a dell laptop JoKoT3> Error : tcpdump core dumps when lauched without -i parameter JoKoT3> in a VM running on ESX 4. The same command does not produce JoKoT3> a core dump when launched on my laptop Both are ok when JoKoT3> specifying an interface. JoKoT3> strace when core dump : http://pastebin.com/Md6btdcn gdb JoKoT3> backtrace of the coredump : http://pastebin.com/zB2JFgsC Thanks. The fault seems to be inside of libusb: Using host libthread_db library "/usr/lib/libthread_db.so.1". Core was generated by `/usr/sbin/tcpdump icmp'. Program terminated with signal 11, Segmentation fault. #0 0x00007feae033fb50 in __opendirat () from /usr/lib/libc.so.6 (gdb) bt #0 0x00007feae033fb50 in __opendirat () from /usr/lib/libc.so.6 #1 0x00007feadfc68e9e in ?? () from /usr/lib/libusb-1.0.so.0 #2 0x00007feadfc6153c in libusb_get_device_list () from /usr/lib/libusb-1.0.so.0 #3 0x00007feae0647a9f in canusb_platform_finddevs () from /usr/lib/libpcap.so.1 It appears that it faults if there are no USB devices, which wouldn't be surprising for a VM. openat(AT_FDCWD, "/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/proc/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/dev", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3 I did not see a related bug report at http://www.libusb.org/report/1 or at: http://www.libusb.org/report/9 What distro are you running? Can you tell what minor version of libusb-1.0 you have (there appears to be up to 1.0.9) I'm waiting for my regisration so that I can file a bug. _______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- Re: [tcpdump] coredump when launched in a ESX4 VM without interface parameter (#59) Michael Richardson (Mar 26)