Ethereal-dev: [Ethereal-dev] Crash in SNMP code (current cvs)

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

From: Florian Lohoff <flo@xxxxxxxxxx>
Date: Wed, 7 Nov 2001 10:37:49 -0800
Hi,
i am seeing a crash in the current cvs ethereal concerning SNMP when
setting a filter (on tcp). 

This is Debian/Testing on 2.4.13

||/ Name           Version        Description
+++-==============-==============-============================================
ii  gcc            2.95.4-8       The GNU C compiler.
ii  binutils       2.11.92.0.5-2  The GNU assembler, linker and binary utiliti
ii  libsnmp4.2     4.2.1-6        NET SNMP (Simple Network Management Protocol
ii  libgtk1.2      1.2.10-2.1     The GIMP Toolkit set of widgets for X
ii  libpcap0       0.6.2-2        System interface for user-level packet captu
ii  libc6          2.2.4-3        GNU C Library: Shared libraries and Timezone
ii  libglib1.2     1.2.10-1.2     The GLib library of C routines

Backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x404542ca in malloc () from /lib/libc.so.6
(gdb) 
(gdb) bt
#0  0x404542ca in malloc () from /lib/libc.so.6
#1  0x40454134 in malloc () from /lib/libc.so.6
#2  0x402a9429 in g_malloc () from /usr/lib/libglib-1.2.so.0
#3  0x81942bd in asn1_oid_value_decode (asn1=0xbfffe174, enc_len=12, 
    oid=0xbfffe10c, len=0xbfffe108) at asn1.c:800
#4  0x8194485 in asn1_oid_decode (asn1=0xbfffe174, oid=0xbfffe10c, 
    len=0xbfffe108, nbytes=0xbfffe154) at asn1.c:878
#5  0x815b62b in dissect_common_pdu (tvb=0x842d108, offset=46, 
    pinfo=0x833fe40, tree=0x8430718, asn1={tvb = 0x842d108, offset = 50}, 
    pdu_type=0, start=13) at packet-snmp.c:1225
#6  0x815cd3b in dissect_snmp_pdu (tvb=0x842d108, offset=13, pinfo=0x833fe40, 
    tree=0x8429518, proto_name=0x829e682 "SNMP", proto=3296, ett=802)
    at packet-snmp.c:1825
#7  0x815d8e4 in dissect_snmp (tvb=0x842d108, pinfo=0x833fe40, tree=0x8429518)
    at packet-snmp.c:2138
#8  0x81fa17b in try_conversation_dissector (addr_a=0x833fe88, 
    addr_b=0x833fe94, ptype=PT_UDP, port_a=59221, port_b=161, tvb=0x842d108, 
    pinfo=0x833fe40, tree=0x8429518) at conversation.c:930
#9  0x8171c28 in decode_udp_ports (tvb=0x842d0d4, offset=8, pinfo=0x833fe40, 
    tree=0x8429518, uh_sport=59221, uh_dport=161) at packet-udp.c:97
#10 0x8172249 in dissect_udp (tvb=0x842d0d4, pinfo=0x833fe40, tree=0x8429518)
    at packet-udp.c:227
#11 0x81fd149 in dissector_try_port (sub_dissectors=0x83458b8, port=17, 
    tvb=0x842d0d4, pinfo=0x833fe40, tree=0x8429518) at packet.c:409
#12 0x80c9b91 in dissect_ip (tvb=0x842d06c, pinfo=0x833fe40, tree=0x8429518)
    at packet-ip.c:1130
#13 0x81fd149 in dissector_try_port (sub_dissectors=0x8344708, port=2048, 
    tvb=0x842d06c, pinfo=0x833fe40, tree=0x8429518) at packet.c:409
#14 0x80a3ded in ethertype (etype=2048, tvb=0x842d038, offset_after_etype=14, 
    pinfo=0x833fe40, tree=0x8429518, fh_tree=0x84308e4, etype_id=639, 
    trailer_id=641) at packet-ethertype.c:155
#15 0x80a3b3a in dissect_eth (tvb=0x842d038, pinfo=0x833fe40, tree=0x8429518)
    at packet-eth.c:256
#16 0x81fd149 in dissector_try_port (sub_dissectors=0x83434a0, port=1, 
    tvb=0x842d038, pinfo=0x833fe40, tree=0x8429518) at packet.c:409
#17 0x80a56a5 in dissect_frame (tvb=0x842d038, pinfo=0x833fe40, tree=0x8429518)
    at packet-frame.c:134
#18 0x81fddd9 in call_dissector (handle=0x8343518, tvb=0x842d038, 
    pinfo=0x833fe40, tree=0x8429518) at packet.c:851
#19 0x81fcd7d in dissect_packet (p_tvb=0x8432e18, pseudo_header=0x832fd30, 
    pd=0x832fdc0 "", fd=0x8448454, tree=0x8429518) at packet.c:210
#20 0x81fb980 in epan_dissect_new (pseudo_header=0x832fd30, data=0x832fdc0 "", 
    fd=0x8448454, tree=0x8429518) at epan.c:91
#21 0x81a122f in add_packet_to_packet_list (fdata=0x8448454, cf=0x832fcc0, 
    pseudo_header=0x832fd30, buf=0x832fdc0 "", refilter=1) at file.c:651
#22 0x81a1b13 in rescan_packets (cf=0x832fcc0, action=0x82ca8b2 "Filtering", 
    refilter=1, redissect=0) at file.c:1013
#23 0x81a186c in filter_packets (cf=0x832fcc0, dftext=0x8418590 "tcp")
    at file.c:859

-- 
Florian Lohoff                  flo@xxxxxxxxxx             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium

Attachment: pgpNzmxOi4peD.pgp
Description: PGP signature