Ethereal-dev: [ethereal-dev] Crash in proto.c

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: Tue, 16 May 2000 12:22:55 +0200
Hi there,

I have found a problem with the Version 0.8.8 of ethereal.
I am using the nbipx filter and ethereal stops.
Here is a  bt from the crash.
By,

Gregor

---------------------------------------------------
(gdb) run
Starting program: /usr/local/bin/ethereal

** ERROR **: file proto.c: line 500 (proto_tree_set_bytes): assertion
failed: (len
gth > 0)
aborting...

Program received signal SIGABRT, Aborted.
0x402eba71 in __kill () from /lib/libc.so.6
(gdb) bt
#0  0x402eba71 in __kill () from /lib/libc.so.6
#1  0x402eb745 in raise () at ../sysdeps/posix/raise.c:28
#2  0x402ece0f in abort () at ../sysdeps/generic/abort.c:139
#3  0x401cd53d in g_logv () at gmessages.c:622
#4  0x401cd5f9 in g_log () at gmessages.c:622
#5  0x80d53d3 in proto_tree_set_bytes (fi=0x8230be8, start_ptr=0x8189c5e
"",
    length=0) at proto.c:500
#6  0x80d535a in proto_tree_add_bytes_format (tree=0x825597c,
hfindex=214,
    start=70, length=0, start_ptr=0x8189c5e "",
    format=0x811b513 "Client hardware address: %s") at proto.c:489
#7  0x806c1ed in dissect_bootp (pd=0x8189c18 "ÿÿÿÿÿÿ\b", offset=42,
    fd=0x403bb130, tree=0x82112ac) at packet-bootp.c:618
#8  0x80d251c in dissector_try_port (sub_dissectors=0x81fefb8, port=67,
    pd=0x8189c18 "ÿÿÿÿÿÿ\b", offset=42, fd=0x403bb130, tree=0x82112ac)
    at packet.c:1360
#9  0x80c3b9f in decode_udp_ports (pd=0x8189c18 "ÿÿÿÿÿÿ\b", offset=42,
    fd=0x403bb130, tree=0x82112ac, uh_sport=68, uh_dport=67) at
packet-udp.c:125
#10 0x80c3e7f in dissect_udp (pd=0x8189c18 "ÿÿÿÿÿÿ\b", offset=34,
fd=0x403bb130,
    tree=0x82112ac) at packet-udp.c:193
#11 0x80d251c in dissector_try_port (sub_dissectors=0x81e9bb0, port=17,
    pd=0x8189c18 "ÿÿÿÿÿÿ\b", offset=34, fd=0x403bb130, tree=0x82112ac)
    at packet.c:1360
#12 0x807d9ff in dissect_ip (pd=0x8189c18 "ÿÿÿÿÿÿ\b", offset=34,
fd=0x403bb130,
    tree=0x82112ac) at packet-ip.c:986
---Type <return> to continue, or q <return> to quit---
#13 0x8074d70 in ethertype (etype=2048, offset=14, pd=0x8189c18
"ÿÿÿÿÿÿ\b",
    fd=0x403bb130, tree=0x82112ac, fh_tree=0x82559e0, item_id=280)
    at packet-ethertype.c:106
#14 0x8074c2b in dissect_eth (pd=0x8189c18 "ÿÿÿÿÿÿ\b", offset=0,
fd=0x403bb130,
    tree=0x82112ac) at packet-eth.c:251
#15 0x80d218f in dissect_packet (pd=0x8189c18 "ÿÿÿÿÿÿ\b", fd=0x403bb130,
    tree=0x82112ac) at packet.c:1160
#16 0x80dc27f in add_packet_to_packet_list (fdata=0x403bb130,
cf=0x8189ba0,
    buf=0x8189c18 "ÿÿÿÿÿÿ\b") at file.c:545
#17 0x80dc8f0 in colorize_packets (cf=0x8189ba0) at file.c:842
#18 0x80dc6fc in filter_packets (cf=0x8189ba0, dftext=0x81e7d28 "nbipx")
    at file.c:760
#19 0x80f81b4 in filter_activate_cb (w=0x81e2360, data=0x0) at
main.c:799
#20 0x400e8b93 in gtk_marshal_NONE__NONE () at gtkmarshal.c:124
#21 0x40119948 in gtk_handlers_run (handlers=0x81cd430,
signal=0xbfffeae8,
    object=0x81e2360, params=0xbfffeb3c, after=0) at gtksignal.c:1909
#22 0x40118d1f in gtk_signal_real_emit (object=0x81e2360, signal_id=105,
    params=0xbfffeb3c) at gtksignal.c:1469
#23 0x40116cc7 in gtk_signal_emit () at gtksignal.c:234
#25 0x400bb786 in gtk_entry_key_press (widget=0x81e2360,
event=0x821a088)
    at gtkentry.c:1128
#26 0x400e86ff in gtk_marshal_BOOL__POINTER () at gtkmarshal.c:124
#27 0x40118d5d in gtk_signal_real_emit (object=0x81e2360, signal_id=26,
---Type <return> to continue, or q <return> to quit---
    params=0xbfffeefc) at gtksignal.c:1484
#28 0x40116cc7 in gtk_signal_emit () at gtksignal.c:234
#29 0x4014f52c in gtk_widget_event () at gtkwidget.c:2707
#30 0x40157626 in gtk_window_key_press_event (widget=0x81bf108,
event=0x821a088)
    at gtkwindow.c:1170
#31 0x400e86ff in gtk_marshal_BOOL__POINTER () at gtkmarshal.c:124
#32 0x40118d5d in gtk_signal_real_emit (object=0x81bf108, signal_id=26,
    params=0xbffff2ac) at gtksignal.c:1484
#33 0x40116cc7 in gtk_signal_emit () at gtksignal.c:234
#34 0x4014f52c in gtk_widget_event () at gtkwidget.c:2707
#35 0x400e85c5 in gtk_propagate_event () at gtkmain.c:1270
#36 0x400e774f in gtk_main_do_event () at gtkmain.c:807
#37 0x401999c4 in gdk_event_dispatch (source_data=0x0,
current_time=0xbffff6a4,
    user_data=0x0) at gdkevents.c:2129
#38 0x401cabd6 in g_main_dispatch (dispatch_time=0xbffff6a4) at
gmain.c:656
#39 0x401cb203 in g_main_iterate (block=1, dispatch=1) at gmain.c:877
#40 0x401cb3cc in g_main_run () at gmain.c:884
#41 0x400e700c in gtk_main () at gtkmain.c:807
#42 0x80f9362 in main (argc=1, argv=0xbffff8d4) at main.c:1545