Ethereal-dev: [ethereal-dev] NBNS and SEG fault

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

From: Gregor Glomm <gg@xxxxxx>
Date: Fri, 17 Dec 1999 10:09:23 +0100
Hi,

here is a NBNS packet from me. This is not a packet from a windows
client, but i
think there is no error in this packet.

But when i expand all fields and go up and down in this fields i get
a SEG fault. 
Here it was the field (Time to Live) in the NBNS frame but i think 
it can be anyone else.
I have set the permisions to "chmod 600 NBNS.Error".
This error don´t occor every time with this packet.
Pleas try the trace and help me.
Here is the bt from gbd.

Gregor





Starting program: /usr/local/bin/ethereal

Program received signal SIGSEGV, Segmentation fault.
0x402743da in undraw_cursor (text=0x817da08, absolute=0) at
gtktext.c:5170
5170    gtktext.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  0x402743da in undraw_cursor (text=0x817da08, absolute=0) at
gtktext.c:5170
#1  0x4026eb5d in gtk_text_adjustment (adjustment=0x817e188,
text=0x817da08)
    at gtktext.c:2306
#2  0x4022866d in gtk_marshal_NONE__NONE (object=0x817e188,
    func=0x4026e940 <gtk_text_adjustment>, func_data=0x817da08,
args=0xbfffe854)
    at gtkmarshal.c:312
#3  0x40259165 in gtk_handlers_run (handlers=0x8193040,
signal=0xbfffe80c,
    object=0x817e188, params=0xbfffe854, after=0) at gtksignal.c:1909
#4  0x402584b0 in gtk_signal_real_emit (object=0x817e188, signal_id=95,
    params=0xbfffe854) at gtksignal.c:1469
#5  0x40256764 in gtk_signal_emit_by_name (object=0x817e188,
    name=0x402ae92b "value_changed") at gtksignal.c:618
#6  0x40272ce3 in scroll_int (text=0x817da08, diff=-13) at
gtktext.c:4473
#7  0x40270b93 in find_line_containing_point (text=0x817da08, point=0,
scroll=1)
    at gtktext.c:3601
#8  0x40271219 in find_cursor (text=0x817da08, scroll=1) at
gtktext.c:3781
#9  0x40274ca1 in recompute_geometry (text=0x817da08) at gtktext.c:5442
#10 0x4026bbce in gtk_text_thaw (text=0x817da08) at gtktext.c:917
#11 0x80de9e9 in packet_hex_print (bv=0x817da08, pd=0x815053c "ÿÿÿÿÿÿ",
len=110,
    bstart=106, blen=4, encoding=CHAR_ASCII) at proto_draw.c:141
#12 0x80da04d in tree_view_cb (w=0x81990e8, data=0x0) at main.c:780
#13 0x4022866d in gtk_marshal_NONE__NONE (object=0x81990e8,
    func=0x80d9f08 <tree_view_cb>, func_data=0x0, args=0xbfffed74)
    at gtkmarshal.c:312
---Type <return> to continue, or q <return> to quit---
#14 0x40259165 in gtk_handlers_run (handlers=0x81930c0,
signal=0xbfffed30,
    object=0x81990e8, params=0xbfffed74, after=0) at gtksignal.c:1909
#15 0x402584b0 in gtk_signal_real_emit (object=0x81990e8, signal_id=96,
    params=0xbfffed74) at gtksignal.c:1469
#16 0x40256401 in gtk_signal_emit (object=0x81990e8, signal_id=96)
    at gtksignal.c:552
#17 0x4027d60f in gtk_real_tree_select_child (tree=0x8349ef0,
child=0x834b898)
    at gtktree.c:1162
#18 0x40228495 in gtk_marshal_NONE__POINTER (object=0x8349ef0,
    func=0x4027d2f0 <gtk_real_tree_select_child>, func_data=0x0,
args=0xbffff0b4)    at gtkmarshal.c:193
#19 0x40258353 in gtk_signal_real_emit (object=0x8349ef0, signal_id=97,
    params=0xbffff0b4) at gtksignal.c:1432
#20 0x40256401 in gtk_signal_emit (object=0x8349ef0, signal_id=97)
    at gtksignal.c:552
#21 0x4027cb48 in gtk_tree_select_child (tree=0x8349ef0,
tree_item=0x834b898)
    at gtktree.c:880
#22 0x4027b8f7 in gtk_tree_button_press (widget=0x8349ef0,
event=0x83033c0)
    at gtktree.c:306
#23 0x40228239 in gtk_marshal_BOOL__POINTER (object=0x8349ef0,
    func=0x4027b7e0 <gtk_tree_button_press>, func_data=0x0,
args=0xbffff410)
    at gtkmarshal.c:28
#24 0x402584e9 in gtk_signal_real_emit (object=0x8349ef0, signal_id=20,
    params=0xbffff410) at gtksignal.c:1484
---Type <return> to continue, or q <return> to quit---
#25 0x40256401 in gtk_signal_emit (object=0x8349ef0, signal_id=20)
    at gtksignal.c:552
#26 0x4028ef68 in gtk_widget_event (widget=0x8349ef0, event=0x83033c0)
    at gtkwidget.c:2843
#27 0x40228192 in gtk_propagate_event (widget=0x834b898,
event=0x83033c0)
    at gtkmain.c:1313
#28 0x4022730a in gtk_main_do_event (event=0x83033c0) at gtkmain.c:770
#29 0x402da18b in gdk_event_dispatch (source_data=0x0,
current_time=0xbffff794,
    user_data=0x0) at gdkevents.c:2129
#30 0x4030c673 in g_main_dispatch (current_time=0xbffff794) at
gmain.c:656
#31 0x4030ccab in g_main_iterate (block=1, dispatch=1) at gmain.c:874
#32 0x4030ce61 in g_main_run (loop=0x81dcf50) at gmain.c:932
#33 0x40226beb in gtk_main () at gtkmain.c:476
#34 0x80db6be in main (argc=1, argv=0xbffff8a4) at main.c:1433
(gdb)
(gdb) kill
Kill the program being debugged? (y or n) y
(gdb) run
Starting program: /usr/local/bin/ethereal

Program received signal SIGSEGV, Segmentation fault.
0x402743da in undraw_cursor (text=0x817da08, absolute=0) at
gtktext.c:5170
5170    gtktext.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  0x402743da in undraw_cursor (text=0x817da08, absolute=0) at
gtktext.c:5170
#1  0x4026eb5d in gtk_text_adjustment (adjustment=0x817e188,
text=0x817da08)
    at gtktext.c:2306
#2  0x4022866d in gtk_marshal_NONE__NONE (object=0x817e188,
    func=0x4026e940 <gtk_text_adjustment>, func_data=0x817da08,
args=0xbfffe854)
    at gtkmarshal.c:312
#3  0x40259165 in gtk_handlers_run (handlers=0x8193040,
signal=0xbfffe80c,
    object=0x817e188, params=0xbfffe854, after=0) at gtksignal.c:1909
#4  0x402584b0 in gtk_signal_real_emit (object=0x817e188, signal_id=95,
    params=0xbfffe854) at gtksignal.c:1469
#5  0x40256764 in gtk_signal_emit_by_name (object=0x817e188,
    name=0x402ae92b "value_changed") at gtksignal.c:618
#6  0x40272ce3 in scroll_int (text=0x817da08, diff=-13) at
gtktext.c:4473
#7  0x40270b93 in find_line_containing_point (text=0x817da08, point=0,
scroll=1)
    at gtktext.c:3601
#8  0x40271219 in find_cursor (text=0x817da08, scroll=1) at
gtktext.c:3781
#9  0x40274ca1 in recompute_geometry (text=0x817da08) at gtktext.c:5442
#10 0x4026bbce in gtk_text_thaw (text=0x817da08) at gtktext.c:917
#11 0x80de9e9 in packet_hex_print (bv=0x817da08, pd=0x815053c "ÿÿÿÿÿÿ",
len=110,
    bstart=98, blen=4, encoding=CHAR_ASCII) at proto_draw.c:141
#12 0x80da04d in tree_view_cb (w=0x81990e8, data=0x0) at main.c:780
#13 0x4022866d in gtk_marshal_NONE__NONE (object=0x81990e8,
    func=0x80d9f08 <tree_view_cb>, func_data=0x0, args=0xbfffed74)
    at gtkmarshal.c:312
---Type <return> to continue, or q <return> to quit---
#14 0x40259165 in gtk_handlers_run (handlers=0x81930c0,
signal=0xbfffed30,
    object=0x81990e8, params=0xbfffed74, after=0) at gtksignal.c:1909
#15 0x402584b0 in gtk_signal_real_emit (object=0x81990e8, signal_id=96,
    params=0xbfffed74) at gtksignal.c:1469
#16 0x40256401 in gtk_signal_emit (object=0x81990e8, signal_id=96)
    at gtksignal.c:552
#17 0x4027d60f in gtk_real_tree_select_child (tree=0x832a4c8,
child=0x83287e8)
    at gtktree.c:1162
#18 0x40228495 in gtk_marshal_NONE__POINTER (object=0x832a4c8,
    func=0x4027d2f0 <gtk_real_tree_select_child>, func_data=0x0,
args=0xbffff0b4)
    at gtkmarshal.c:193
#19 0x40258353 in gtk_signal_real_emit (object=0x832a4c8, signal_id=97,
    params=0xbffff0b4) at gtksignal.c:1432
#20 0x40256401 in gtk_signal_emit (object=0x832a4c8, signal_id=97)
    at gtksignal.c:552
#21 0x4027cb48 in gtk_tree_select_child (tree=0x832a4c8,
tree_item=0x83287e8)
    at gtktree.c:880
#22 0x4027b8f7 in gtk_tree_button_press (widget=0x832a4c8,
event=0x83033c0)
    at gtktree.c:306
#23 0x40228239 in gtk_marshal_BOOL__POINTER (object=0x832a4c8,
    func=0x4027b7e0 <gtk_tree_button_press>, func_data=0x0,
args=0xbffff410)
    at gtkmarshal.c:28
#24 0x402584e9 in gtk_signal_real_emit (object=0x832a4c8, signal_id=20,
    params=0xbffff410) at gtksignal.c:1484
---Type <return> to continue, or q <return> to quit---
#25 0x40256401 in gtk_signal_emit (object=0x832a4c8, signal_id=20)
    at gtksignal.c:552
#26 0x4028ef68 in gtk_widget_event (widget=0x832a4c8, event=0x83033c0)
    at gtkwidget.c:2843
#27 0x40228192 in gtk_propagate_event (widget=0x83287e8,
event=0x83033c0)
    at gtkmain.c:1313
#28 0x4022730a in gtk_main_do_event (event=0x83033c0) at gtkmain.c:770
#29 0x402da18b in gdk_event_dispatch (source_data=0x0,
current_time=0xbffff794,
    user_data=0x0) at gdkevents.c:2129
#30 0x4030c673 in g_main_dispatch (current_time=0xbffff794) at
gmain.c:656
#31 0x4030ccab in g_main_iterate (block=1, dispatch=1) at gmain.c:874
#32 0x4030ce61 in g_main_run (loop=0x81dcf50) at gmain.c:932
#33 0x40226beb in gtk_main () at gtkmain.c:476
#34 0x80db6be in main (argc=1, argv=0xbffff8a4) at main.c:1433

Attachment: NBNS.Error
Description: Binary data