Ethereal-users: Re: [ethereal-users] RH6.1 and core dumps.

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

From: Aaron Bush <abush@xxxxxxxxxxxxxxx>
Date: Thu, 06 Jan 2000 09:42:52 -0500
> TransactName is NULL. :(
> 
> Thanks for the gdb trace. Can you run gdb again, and type 'bt'?
> I'd be interested in knowing which of the two calls to dissect_transact_params()
> is passing NULL.

GNU gdb 4.18
Copyright 1998 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 -i eth0'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libz.so.1...done.
Reading symbols from /usr/lib/libgtk-1.2.so.0...done.
Reading symbols from /usr/lib/libgdk-1.2.so.0...done.
Reading symbols from /usr/lib/libgmodule-1.2.so.0...done.
Reading symbols from /usr/lib/libglib-1.2.so.0...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
#0  0x80a79dd in dissect_transact_params (pd=0x81d2150 "", offset=114, 
    fd=0x81a7be0, parent=0x0, tree=0x0, si={tid = 22531, uid = 40961, 
      mid = 6275, pid = 6995, conversation = 0x81c04e0, 
      request_val = 0x81b7d20, unicode = 1}, max_data=64, SMB_offset=58, 
    errcode=0, dirn=0, DataOffset=64, DataCount=0, ParameterOffset=56, 
    ParameterCount=6, TransactName=0x0) at packet-smb.c:9068
9068      TransactNameCopy = g_malloc(strlen(TransactName) + 1);
(gdb) bt
#0  0x80a79dd in dissect_transact_params (pd=0x81d2150 "", offset=114, 
    fd=0x81a7be0, parent=0x0, tree=0x0, si={tid = 22531, uid = 40961, 
      mid = 6275, pid = 6995, conversation = 0x81c04e0, 
      request_val = 0x81b7d20, unicode = 1}, max_data=64, SMB_offset=58, 
    errcode=0, dirn=0, DataOffset=64, DataCount=0, ParameterOffset=56, 
    ParameterCount=6, TransactName=0x0) at packet-smb.c:9068
#1  0x80a869c in dissect_transact_smb (pd=0x81d2150 "", offset=114, 
    fd=0x81a7be0, parent=0x0, tree=0x0, si={tid = 22531, uid = 40961, 
      mid = 6275, pid = 6995, conversation = 0x81c04e0, 
      request_val = 0x81b7d20, unicode = 1}, max_data=64, SMB_offset=58, 
    errcode=0, dirn=0) at packet-smb.c:9710
#2  0x80aabdb in dissect_smb (pd=0x81d2150 "", offset=90, fd=0x81a7be0, 
    tree=0x0, max_data=64) at packet-smb.c:11435
#3  0x808a45a in dissect_nbss_packet (pd=0x81d2150 "", offset=54, 
    fd=0x81a7be0, tree=0x0, max_data=68) at packet-nbns.c:1537
#4  0x808a5a6 in dissect_nbss (pd=0x81d2150 "", offset=54, fd=0x81a7be0, 
    tree=0x0) at packet-nbns.c:1599
#5  0x80ace6f in dissect_tcp (pd=0x81d2150 "", offset=54, fd=0x81a7be0, 
    tree=0x0) at packet-tcp.c:519
#6  0x8082055 in dissect_ip (pd=0x81d2150 "", offset=34, fd=0x81a7be0, 
    tree=0x0) at packet-ip.c:920
#7  0x8062dc0 in ethertype (etype=2048, offset=14, pd=0x81d2150 "", 
    fd=0x81a7be0, tree=0x0, fh_tree=0x0, item_id=239) at ethertype.c:82
#8  0x807ac74 in dissect_eth (pd=0x81d2150 "", offset=0, fd=0x81a7be0, 
    tree=0x0) at packet-eth.c:202
#9  0x80668ff in dissect_packet (pd=0x81d2150 "", fd=0x81a7be0,
tree=0x0)
    at packet.c:814
#10 0x8063fae in add_packet_to_packet_list (fdata=0x81a7be0,
cf=0x8137da0, 
    buf=0x81d2150 "") at file.c:763
#11 0x8064273 in wtap_dispatch_cb (user=0x8137da0 "H�\032\b\006", 
    phdr=0x81777c4, offset=40, buf=0x81d2150 "") at file.c:887
#12 0x80b69e7 in wtap_loop (wth=0x81777b0, count=0, 
    callback=0x8064128 <wtap_dispatch_cb>, user=0x8137da0
"H�\032\b\006", 
    err=0xbfffe3e8) at wtap.c:225
#13 0x80633ac in read_cap_file (cf=0x8137da0) at file.c:280
#14 0x805ac69 in do_capture (capfile_name=0x0) at capture.c:300
#15 0x80cd34a in capture_prep_ok_cb (ok_bt=0x81a8d48,
parent_w=0x81c62e0)
    at capture_dlg.c:366
#16 0x400b5c7d in gtk_marshal_NONE__NONE () from
/usr/lib/libgtk-1.2.so.0
#17 0x400e336d in gtk_handlers_run () from /usr/lib/libgtk-1.2.so.0
#18 0x400e27b2 in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#19 0x400e0905 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#20 0x40055738 in gtk_button_clicked () from /usr/lib/libgtk-1.2.so.0
#21 0x40056d28 in gtk_real_button_released () from
/usr/lib/libgtk-1.2.so.0
#22 0x400b5c7d in gtk_marshal_NONE__NONE () from
/usr/lib/libgtk-1.2.so.0
#23 0x400e266b in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#24 0x400e0905 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#25 0x40055678 in gtk_button_released () from /usr/lib/libgtk-1.2.so.0
#26 0x400566e2 in gtk_button_button_release () from
/usr/lib/libgtk-1.2.so.0
#27 0x400b5849 in gtk_marshal_BOOL__POINTER () from
/usr/lib/libgtk-1.2.so.0
#28 0x400e27eb in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
#29 0x400e0905 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
#30 0x40115b9c in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
#31 0x400b57a2 in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0
#32 0x400b49fa in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0
#33 0x4015f00b in gdk_event_dispatch () from /usr/lib/libgdk-1.2.so.0
#34 0x4018cbe6 in g_main_dispatch () from /usr/lib/libglib-1.2.so.0
#35 0x4018d1a1 in g_main_iterate () from /usr/lib/libglib-1.2.so.0
#36 0x4018d341 in g_main_run () from /usr/lib/libglib-1.2.so.0
#37 0x400b4339 in gtk_main () from /usr/lib/libgtk-1.2.so.0
#38 0x80c98d7 in main (argc=3, argv=0xbffffcf4) at main.c:1377
(gdb)