tcpdump/libpcap core dump on amd64.

dikshie dikshie at gmail.com
Tue Nov 24 06:24:41 UTC 2009


Hi,
I have experience core dump signal 11 using tcpdump in amd64 arch.
8.0-PRERELEASE FreeBSD 8.0-PRERELEASE #14: Tue Nov 24 03:28:14 JST 2009

tcpdump -nvi em2 -> no core dump
tcpdump -nvi em2 -c 100 -> core dump

i try in i386 and the result: no coredump

here's the core file:

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 `tcpdump'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libpcap.so.7...done.
Loaded symbols for /lib/libpcap.so.7
Reading symbols from /lib/libcrypto.so.6...done.
Loaded symbols for /lib/libcrypto.so.6
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0000000800b244e7 in free () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800b244e7 in free () from /lib/libc.so.7
#1  0x00000008006f6a75 in pcap_cleanup_live_common (p=0x800e04400)
    at /usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:1158
#2  0x00000008006f7768 in pcap_cleanup_bpf (p=0x800e04400)
    at /usr/src/lib/libpcap/../../contrib/libpcap/pcap-bpf.c:1218
#3  0x00000008006f65ee in pcap_close (p=0x800e04400)
    at /usr/src/lib/libpcap/../../contrib/libpcap/pcap.c:1232
#4  0x0000000000452b04 in main (argc=Variable "argc" is not available.
)
    at /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/tcpdump.c:1230


thanks!

-- 
-dikshie-


More information about the freebsd-stable mailing list