ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: [Ethereal-dev] seg fault - gtkclist ?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Frank Singleton <frank.singleton@xxxxxxxxxxxx>
Date: Wed, 25 Jul 2001 14:25:26 -0500
Hi,

I run a logfile through tethereal ok, but when I run it
via ethereal it segfaults.

It complains about gtkclist.c (text), so I added some printf's.
and a gdb backtrace.

Has anyone seen this before ?

/Frank..

gtkclist: text = 37 
gtkclist: text = 0.140000 
gtkclist: text = cray.laptop 
gtkclist: text = 1315 
Segmentation fault (core dumped)
[frank@cray ethereal-2001-07-24]$ gdb ./ethereal core
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 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 "i386-redhat-linux"...
Core was generated by `./ethereal -r
/home/frank/logs/giop.grid.crash.log'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libsnmp-0.4.2.so...done.
Loaded symbols for /usr/lib/libsnmp-0.4.2.so
Reading symbols from /usr/lib/libcrypto.so.1...done.
Loaded symbols for /usr/lib/libcrypto.so.1
Reading symbols from /usr/lib/libgtk-1.2.so.0...done.
Loaded symbols for /usr/lib/libgtk-1.2.so.0
Reading symbols from /usr/lib/libgdk-1.2.so.0...done.
Loaded symbols for /usr/lib/libgdk-1.2.so.0
Reading symbols from /usr/lib/libgmodule-1.2.so.0...done.
Loaded symbols for /usr/lib/libgmodule-1.2.so.0
Reading symbols from /usr/lib/libglib-1.2.so.0...done.
Loaded symbols for /usr/lib/libglib-1.2.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/X11R6/lib/libXi.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXi.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from
/usr/local/lib/ethereal/plugins/0.8.19/gryphon.so...done.
Loaded symbols for /usr/local/lib/ethereal/plugins/0.8.19/gryphon.so
Reading symbols from
/usr/local/lib/ethereal/plugins/0.8.19/mgcp.so...done.
Loaded symbols for /usr/local/lib/ethereal/plugins/0.8.19/mgcp.so
Reading symbols from
/usr/local/lib/ethereal/plugins/0.8.19/cosnaming.so...done.
Loaded symbols for /usr/local/lib/ethereal/plugins/0.8.19/cosnaming.so
Reading symbols from
/usr/local/lib/ethereal/plugins/0.8.19/coseventcomm.so...done.
Loaded symbols for
/usr/local/lib/ethereal/plugins/0.8.19/coseventcomm.so
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_nisplus.so.2...done.
Loaded symbols for /lib/libnss_nisplus.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
#0  chunk_alloc (ar_ptr=0x40528f00, nb=16) at malloc.c:2904
2904	malloc.c: No such file or directory.
	in malloc.c
(gdb) backtrace
#0  chunk_alloc (ar_ptr=0x40528f00, nb=16) at malloc.c:2904
#1  0x4047f13a in __libc_malloc (bytes=5) at malloc.c:2714
#2  0x402c095a in g_malloc () at eval.c:41
#3  0x402c9521 in g_strdup () at eval.c:41
#4  0x08147319 in set_cell_contents (clist=0x83428c8,
clist_row=0x8388b48, column=3, type=GTK_CELL_TEXT, text=0x8325818
"1315", spacing=0 '\000', pixmap=0x0, mask=0x0)
    at gtkclist.c:2482
#5  0x08147970 in real_insert_row (clist=0x83428c8, row=36,
text=0x83254c8) at gtkclist.c:2653
#6  0x081476e8 in gtk_clist_append (clist=0x83428c8, text=0x83254c8) at
gtkclist.c:2591
#7  0x08135270 in add_packet_to_packet_list (fdata=0x8377b78,
cf=0x8283be0, pseudo_header=0x835350c, buf=0x83714d8 "", refilter=1) at
file.c:735
#8  0x08135490 in read_packet (cf=0x8283be0, offset=5910) at file.c:808
#9  0x08134ae1 in read_cap_file (cf=0x8283be0, err=0xbffff61c) at
file.c:368
#10 0x08154b8d in main (argc=3, argv=0xbffff7d4) at main.c:1382
#11 0x4041c177 in __libc_start_main (main=0x81540b0 <main>, argc=3,
ubp_av=0xbffff7d4, init=0x80658d4 <_init>, fini=0x818c820 <_fini>,
rtld_fini=0x4000e184 <_dl_fini>, 
    stack_end=0xbffff7cc) at ../sysdeps/generic/libc-start.c:129
(gdb) 

-- 
EUS/SV/Z Frank Singleton      ASO Americas BSS
Office : +1 972 583 3251      ECN 800 33251  
Mobile : +1 214 228 0874      Amateur Radio: VK3FCS/KM5WS   
Email : frank.singleton@xxxxxxxxxxxx

Hardware: HP Omnibook 4150 running Redhat Linux 7.1 (2.4.3-12 kernel).