Wireshark-dev: Re: [Wireshark-dev] Unable to run wireshark, tshark or dumpcap from the build di

From: Christopher Maynard <Chris.Maynard@xxxxxxxxx>
Date: Mon, 4 Oct 2010 19:45:39 +0000 (UTC)
Jaap Keuter <jaap.keuter@...> writes:

> From the top of my head there's an environment variable which can be set on
running glib based apps that cause
> these apps to stop when they hit these. Running in a debugger allows you to to
backtrace to the source. 

Thanks Jaap.  From http://library.gnome.org/devel/glib/2.12/glib-running.html, I
found that if I set G_DEBUG=fatal_criticals that tshark will abort at the first
occurrence.

With that set, I ran tshark in gdb and got the backtrace, which follows.  I've
been trying to figure out what's going wrong, stepping through the code in gdb,
but haven't been able to draw any conclusions yet.

(gdb) bt
#0  0x0000003e13430015 in raise () from /lib64/libc.so.6
#1  0x0000003e13431980 in abort () from /lib64/libc.so.6
#2  0x0000003e19435050 in g_logv () from /lib64/libglib-2.0.so.0
#3  0x0000003e194350d3 in g_log () from /lib64/libglib-2.0.so.0
#4  0x0000003e1944704b in g_string_insert_c () from /lib64/libglib-2.0.so.0
#5  0x00002aaaabc5780a in dfilter_macro_apply (text=<value optimized out>,
    depth=0, error=0x632d00) at /usr/include/glib-2.0/glib/gstring.h:131
#6  0x00002aaaabc5689a in dfilter_compile (
    text=0x51b9 <Address 0x51b9 out of bounds>, dfp=0x2aaaad5e3728)
    at dfilter.c:233
#7  0x00002aaaabf85331 in final_registration_ncp2222 ()
    at packet-ncp2222.c:19564
#8  0x0000003e1944358d in g_slist_foreach () from /lib64/libglib-2.0.so.0
#9  0x00002aaaabc0acee in epan_init (register_all_protocols_func=0x408df8,
    register_all_handoffs_func=0x4094b8, cb=0, client_data=0x0,
    report_failure_fcn_p=<value optimized out>,
    report_open_failure_fcn_p=<value optimized out>,
    report_read_failure_fcn_p=0x41f210, report_write_failure_fcn_p=0x41f1f0)
    at epan.c:108
#10 0x00000000004204b1 in ?? ()
#11 0x000000000041f210 in ?? ()
#12 0x000000000041f1f0 in ?? ()
#13 0x0000000000000001 in ?? ()
#14 0x00002aaaaaada000 in ?? ()
#15 0x00007fff41ee8f40 in ?? ()
#16 0x0000003e1de010f8 in ?? () from /usr/lib64/libkrb5support.so.0
#17 0x00002aaaae43e970 in ?? ()
#18 0x00002aaaae442d80 in ?? ()
#19 0x0000003e1340fa90 in ?? () from /lib64/libc.so.6
#20 0x00002aaaae43e970 in ?? ()
#21 0x00007fff41ee9070 in ?? ()
#22 0x00000000ffffffff in ?? ()
#23 0x0000000000000000 in ?? ()