Ethereal-dev: [Ethereal-dev] curious behaviour in 13956

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

From: Herbert Lischka <herbert@xxxxxxxxxxxxxxxxx>
Date: Mon, 28 Mar 2005 19:52:03 +0200
Hi list,

first of all, thank's for the fast fix in 13955

now I have a little strange behaviour in 13956:
I have a large file with 26857 TCP, IPX and UDP packages.
I want to filter only UDP packages and after 19028 packages this segfault occurs:

can anybody help me, or can I help somehow ?

best regards
H.Lischka

(gdb) run
Starting program: /home/Herbert/ethereal/.libs/lt-ethereal
[Thread debugging using libthread_db enabled]
[New Thread 1092629600 (LWP 24467)]
Detaching after fork from child process 24470.
Detaching after fork from child process 24471.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1092629600 (LWP 24467)]
tvb_length_remaining (tvb=0x0, offset=0) at tvbuff.c:583
583             g_assert(tvb->initialized);
(gdb) where
#0  tvb_length_remaining (tvb=0x0, offset=0) at tvbuff.c:583
#1 0x401e5cb9 in alloc_field_info (tree=0x84e21d8, hfindex=Variable "hfindex" is not available.
) at proto.c:2124
#2 0x401e7c8d in proto_tree_add_item (tree=0x84e21d8, hfindex=21040, tvb=0x0,
    start=0, length=0, little_endian=0) at proto.c:670
#3  0x405076ab in dissect_pipe_smb (sp_tvb=0x0, s_tvb=0x0, pd_tvb=0x84d0a3c,
    p_tvb=0x84d0938, d_tvb=0x84d0a08, pipe=0x0, pinfo=0x87934b0,
    tree=0x84e21d8) at packet-smb-pipe.c:3553
#4  0x4051e865 in dissect_transaction_response (tvb=0x84d0a70,
    pinfo=0x87934b0, tree=0x8e923f8, offset=373, smb_tree=0x84e2028)
    at packet-smb.c:13508
#5  0x4050a309 in dissect_smb_command (tvb=0x84d0a70, pinfo=0x87934b0,
    offset=32, smb_tree=0x84e2028, cmd=37 '%', first_pdu=1)
    at packet-smb.c:13912
#6  0x4050aabf in dissect_smb (tvb=0x84d0a70, pinfo=0x87934b0,
    parent_tree=0x84e21d8) at packet-smb.c:15025
#7  0x4052201f in dissect_smb_heur (tvb=0x84d0a70, pinfo=0x87934b0,
    parent_tree=0x84e21d8) at packet-smb.c:15074
#8  0x401dc240 in dissector_try_heuristic (sub_dissectors=0x8300a88,
    tvb=0x84d0a70, pinfo=0x87934b0, tree=0x84e21d8) at packet.c:1524
#9  0x4046776d in dissect_netbios_payload (tvb=0x84d0a70, pinfo=0x87934b0,
    tree=0x84e21d8) at packet-netbios.c:1081
#10 0x4043b702 in dissect_nbipx (tvb=0x84d0904, pinfo=0x87934b0,
    tree=0x84e21d8) at packet-nbipx.c:466
#11 0x401dbb6d in call_dissector_through_handle (handle=0x832d078,
    tvb=0x84d0904, pinfo=0x87934b0, tree=0x84e21d8) at packet.c:384
#12 0x401dbeeb in call_dissector_work (handle=0x832d078, tvb=0x84d0904,
    pinfo_arg=Variable "pinfo_arg" is not available.
) at packet.c:559
#13 0x401dc580 in dissector_try_port (sub_dissectors=0x0, port=1109,
    tvb=0x84d0904, pinfo=0x87934b0, tree=0x84e21d8) at packet.c:834
#14 0x403ec1e9 in dissect_ipx (tvb=0x84d096c, pinfo=0x87934b0, tree=0x84e21d8)
    at packet-ipx.c:394
#15 0x401dbb6d in call_dissector_through_handle (handle=0x827ad58,
    tvb=0x84d096c, pinfo=0x87934b0, tree=0x84e21d8) at packet.c:384
#16 0x401dbeeb in call_dissector_work (handle=0x827ad58, tvb=0x84d096c,
    pinfo_arg=Variable "pinfo_arg" is not available.
) at packet.c:559
#17 0x401dc580 in dissector_try_port (sub_dissectors=0x0, port=224,
    tvb=0x84d096c, pinfo=0x87934b0, tree=0x84e21d8) at packet.c:834
#18 0x4041c414 in dissect_llc (tvb=0x84d08d0, pinfo=0x87934b0, tree=0x84e21d8)
    at packet-llc.c:432
#19 0x401dbb6d in call_dissector_through_handle (handle=0x8298d78,
    tvb=0x84d08d0, pinfo=0x87934b0, tree=0x84e21d8) at packet.c:384
#20 0x401dbeeb in call_dissector_work (handle=0x8298d78, tvb=0x84d08d0,
    pinfo_arg=Variable "pinfo_arg" is not available.
) at packet.c:559
#21 0x401dc0e9 in call_dissector (handle=0x0, tvb=0x84d08d0, pinfo=0x87934b0,
    tree=0x84e21d8) at packet.c:1700
#22 0x403d9583 in dissect_802_3 (length=424, is_802_2=1, tvb=0x84d0868,
    offset_after_length=14, pinfo=0x87934b0, tree=0x84e21d8,
    fh_tree=0x8fab8a0, length_id=5623, trailer_id=5626, fcs_len=-1)
    at packet-ieee8023.c:88
#23 0x4032b8c0 in dissect_eth_common (tvb=0x84d0868, pinfo=0x87934b0,
    tree=0x84e21d8, fcs_len=-1) at packet-eth.c:273
#24 0x401dbb6d in call_dissector_through_handle (handle=0x83057a0,
    tvb=0x84d0868, pinfo=0x87934b0, tree=0x84e21d8) at packet.c:384
#25 0x401dbeeb in call_dissector_work (handle=0x83057a0, tvb=0x84d0868,
    pinfo_arg=Variable "pinfo_arg" is not available.
) at packet.c:559
#26 0x401dc580 in dissector_try_port (sub_dissectors=0x0, port=1,
    tvb=0x84d0868, pinfo=0x87934b0, tree=0x84e21d8) at packet.c:834
#27 0x4034a52d in dissect_frame (tvb=0x84d0868, pinfo=0x87934b0,
    tree=0x84e21d8) at packet-frame.c:189
#28 0x401dbb6d in call_dissector_through_handle (handle=0x8252c40,
    tvb=0x84d0868, pinfo=0x87934b0, tree=0x84e21d8) at packet.c:384
#29 0x401dbeeb in call_dissector_work (handle=0x8252c40, tvb=0x84d0868,
    pinfo_arg=Variable "pinfo_arg" is not available.
) at packet.c:559
#30 0x401dc0e9 in call_dissector (handle=0x0, tvb=0x84d0868, pinfo=0x87934b0,
    tree=0x84e21d8) at packet.c:1700
#31 0x401ddb76 in dissect_packet (edt=0x87934a8, pseudo_header=0x0,
    pd=0x8121be8 "", fd=0x8e651b0, cinfo=0x8131bfc) at packet.c:332
#32 0x401d943c in epan_dissect_run (edt=0x87934a8, pseudo_header=0x8121b58,
    data=0x8121be8 "", fd=0x8e651b0, cinfo=0x8131bfc) at epan.c:153
#33 0x0806a3e4 in add_packet_to_packet_list (fdata=0x8e651b0, cf=0x8121ae0,
    pseudo_header=0x8121b58, buf=0x8121be8 "", refilter=1) at file.c:775
#34 0x0806a825 in rescan_packets (cf=0x8121ae0, action=0x80e8054 "Filtering",
    action_item=0x85263b8 "udp", refilter=1, redissect=0) at file.c:1372
#35 0x0806abeb in cf_filter_packets (cf=0x8121ae0, dftext=0x85263b8 "udp",
    force=0) at file.c:1178
#36 0x0807ccb9 in main_filter_packets (cf=0x8121ae0, dftext=0x8405060 "udp",
    force=0) at main.c:525
#37 0x0807ceb0 in filter_activate_cb (w=0x83c1b68, data=0x83c1b68)
    at main.c:563
#38 0x40e212c2 in g_cclosure_marshal_VOID__VOID (closure=0x83fe860,
    return_value=0xbfffd4a0, n_param_values=1, param_values=0x8460c88,
    invocation_hint=0xbfffd388, marshal_data=0x0) at gmarshal.c:77
#39 0x40e14aac in g_closure_invoke (closure=0x83fe860,
    return_value=0xbfffd4a0, n_param_values=1, param_values=0x8460c88,
    invocation_hint=0xbfffd388) at gclosure.c:437
#40 0x40e23561 in signal_emit_unlocked_R (node=0x83f9360, detail=0,
    instance=0x83c1b68, emission_return=0xbfffd4a0,
    instance_and_params=0x8460c88) at gsignal.c:2436
#41 0x40e25076 in g_signal_emitv (instance_and_params=0x8460c88,
    signal_id=221, detail=0, return_value=0xbfffd4a0) at gsignal.c:2107
#42 0x40aead4b in gtk_binding_entry_activate (entry=0x83fa6c0,
    object=0x83c1b68) at gtkbindings.c:525
#43 0x40aeb365 in binding_match_activate (pspec_list=Variable "pspec_list" is not available.
) at gtkbindings.c:927
#44 0x40aeb4f5 in gtk_bindings_activate_list (object=0x83c1b68,
    entries=0x846ebe0, is_release=0) at gtkbindings.c:1063
#45 0x40aeb5fc in gtk_bindings_activate_event (object=0x83c1b68,
    event=0x8213700) at gtkbindings.c:1138
#46 0x40c74250 in gtk_widget_real_key_press_event (widget=0x83c1b68,
    event=0x8213700) at gtkwidget.c:3307
#47 0x40b3dc62 in gtk_entry_key_press (widget=0x83c1b68, event=0x8213700)
    at gtkentry.c:1673
#48 0x40b9382f in _gtk_marshal_BOOLEAN__BOXED (closure=0x8161188,
    return_value=0xbfffd770, n_param_values=2, param_values=0xbfffd8a0,
invocation_hint=0xbfffd798, marshal_data=0x40b3dc00) at gtkmarshalers.c:82
#49 0x40e147e4 in g_type_class_meta_marshal (closure=0x8161188,
    return_value=0xbfffd770, n_param_values=2, param_values=0xbfffd8a0,
    invocation_hint=0xbfffd798, marshal_data=0x0) at gclosure.c:514
#50 0x40e14aac in g_closure_invoke (closure=0x8161188,
    return_value=0xbfffd770, n_param_values=2, param_values=0xbfffd8a0,
    invocation_hint=0xbfffd798) at gclosure.c:437
#51 0x40e23948 in signal_emit_unlocked_R (node=0x8161370, detail=0,
    instance=0x83c1b68, emission_return=0xbfffd840,
    instance_and_params=0xbfffd8a0) at gsignal.c:2474
#52 0x40e24850 in g_signal_emit_valist (instance=0x83c1b68, signal_id=34,
    detail=0, var_args=0xbfffda30 "H�\212\034\b0\030\025\b0\030\025\b\b")
    at gsignal.c:2205
#53 0x40e24d96 in g_signal_emit (instance=0x83c1b68, signal_id=34, detail=0)
    at gsignal.c:2239
#54 0x40c69fa9 in gtk_widget_event_internal (widget=0x83c1b68, event=0x8213700)
    at gtkwidget.c:3563
#55 0x40c78446 in gtk_window_propagate_key_event (window=0x81690e0,
    event=0x8213700) at gtkwindow.c:4212
#56 0x40c7af1a in gtk_window_key_press_event (widget=0x81690e0,
    event=0x8213700) at gtkwindow.c:4242
#57 0x40b9382f in _gtk_marshal_BOOLEAN__BOXED (closure=0x8161188,
    return_value=0xbfffdc20, n_param_values=2, param_values=0xbfffdd50,
invocation_hint=0xbfffdc48, marshal_data=0x40c7aee0) at gtkmarshalers.c:82
#58 0x40e147e4 in g_type_class_meta_marshal (closure=0x8161188,
    return_value=0xbfffdc20, n_param_values=2, param_values=0xbfffdd50,
    invocation_hint=0xbfffdc48, marshal_data=0x0) at gclosure.c:514
#59 0x40e14aac in g_closure_invoke (closure=0x8161188,
    return_value=0xbfffdc20, n_param_values=2, param_values=0xbfffdd50,
    invocation_hint=0xbfffdc48) at gclosure.c:437
#60 0x40e23948 in signal_emit_unlocked_R (node=0x8161370, detail=0,
    instance=0x81690e0, emission_return=0xbfffdcf0,
    instance_and_params=0xbfffdd50) at gsignal.c:2474
#61 0x40e24850 in g_signal_emit_valist (instance=0x81690e0, signal_id=34,
    detail=0, var_args=0xbfffdee0 "�\212\034\b0\030\025\b0\030\025\b\b")
    at gsignal.c:2205
#62 0x40e24d96 in g_signal_emit (instance=0x81690e0, signal_id=34, detail=0)
    at gsignal.c:2239
#63 0x40c69fa9 in gtk_widget_event_internal (widget=0x81690e0, event=0x8213700)
    at gtkwidget.c:3563
#64 0x40b8d33b in gtk_propagate_event (widget=0x81690e0, event=0x8213700)
    at gtkmain.c:2318
#65 0x40b8e4aa in gtk_main_do_event (event=0x8213700) at gtkmain.c:1582
#66 0x40d51830 in gdk_event_dispatch (source=0x0, callback=0, user_data=0x0)
    at gdkevents-x11.c:2133
#67 0x40e8100d in g_main_context_dispatch (context=0x815b938) at gmain.c:1895
#68 0x40e834c9 in g_main_context_iterate (context=0x815b938, block=1,
    dispatch=1, self=0x816efc0) at gmain.c:2522
#69 0x40e844f8 in g_main_loop_run (loop=0x8465b30) at gmain.c:2726
#70 0x40b8e92b in gtk_main () at gtkmain.c:1172
#71 0x0807b915 in main (argc=0, argv=0xbfffe378) at main.c:2396
(gdb)