Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] gencode.c

From: Xiaochun Lu <xiaoclu@xxxxxxxxx>
Date: Thu, 4 Nov 2010 11:04:32 -0700
Hi,  all:

When I try to capture packet using tshark, the shark aborted with core dumped.
I was able to get back trace . However,  I am not able to to locate
file   gencode.c.

Can anyone tell me where can I find this file?

Thanks!

Shawn


root@rbos-jaunty:/md# gdb -c dumpcap_16575.core /usr/bin/dumpcap
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/wireshark/libwiretap.so.0...done.
Loaded symbols for /usr/lib/wireshark/libwiretap.so.0
Reading symbols from /usr/lib/wireshark/libwsutil.so.0...done.
Loaded symbols for /usr/lib/wireshark/libwsutil.so.0
Reading symbols from /usr/lib/libgmodule-2.0.so.0...done.
Loaded symbols for /usr/lib/libgmodule-2.0.so.0
Reading symbols from /usr/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/lib/libglib-2.0.so.0
Reading symbols from /usr/lib/libpcap.so.0.8...done.
Loaded symbols for /usr/lib/libpcap.so.0.8
Reading symbols from /usr/lib/libgnutls.so.26...done.
Loaded symbols for /usr/lib/libgnutls.so.26
Reading symbols from /usr/lib/libtasn1.so.3...done.
Loaded symbols for /usr/lib/libtasn1.so.3
Reading symbols from /lib/libgcrypt.so.11...done.
Loaded symbols for /lib/libgcrypt.so.11
Reading symbols from /lib/libcap.so.1...done.
Loaded symbols for /lib/libcap.so.1
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libpcre.so.3...done.
Loaded symbols for /lib/libpcre.so.3
Reading symbols from /lib/libgpg-error.so.0...done.
Loaded symbols for /lib/libgpg-error.so.0
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `/usr/bin/dumpcap -i xcrp -f port 123 -w pcap'.
Program terminated with signal 6, Aborted.
[New process 16575]
#0  0x00007f0d49f9bfb5 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00007f0d49f9bfb5 in raise () from /lib/libc.so.6
#1  0x00007f0d49f9dbc3 in abort () from /lib/libc.so.6
#2  0x00007f0d4b04c3ea in gen_linktype (proto=2048) at ./gencode.c:3549
#3  0x00007f0d4b04cc2f in gen_port (port=123, ip_proto=16575, dir=6)
at ./gencode.c:5236
#4  0x00007f0d4b050027 in gen_ncode (s=0x0, v=123, q=<value optimized
out>) at ./gencode.c:6586
#5  0x00007f0d4b059036 in pcap_parse () at grammar.y:334
#6  0x00007f0d4b047c0f in pcap_compile (p=0x1b3f360,
program=0x7fff4364b590, buf=<value optimized out>, optimize=1,
mask=4278190080) at ./gencode.c:451
#7  0x00000000004070d1 in capture_loop_start (capture_opts=0x60e4e0,
stats_known=0x7fff4365d948, stats=0x7fff4365d910) at dumpcap.c:1428
#8  0x00000000004088ca in main (argc=<value optimized out>,
argv=<value optimized out>) at dumpcap.c:2761