Ethereal-dev: [Ethereal-dev] H.225 problem, and running under gdb

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

From: "Martin Mathieson" <martin.mathieson@xxxxxxxxxxxx>
Date: Fri, 18 Jun 2004 16:59:39 +0100
Please find attached a short H.225 RAS capture which resulted in the error
and stack trace shown below.

I was seeing strange things in gdb:
- gdb grumbled about my breakpoints them seemed to set them anyway
- stepping through the code would work a little then it would jump back to
the breakpoint

which may have to do with the way I was running it?  edited a copy of the
ethereal launch script to do 'gdb' instead of 'exec', then ran it.
Is there a better way of doing this under Linux?

Regards,
Martin


** ERROR **: file proto.c: line 580 (get_uint_value): should not be reached
aborting...

Program received signal SIGABRT, Aborted.
[Switching to Thread 1024 (LWP 371)]
0x40f6c971 in kill () from /lib/libc.so.6

#0  0x40f6c971 in kill () from /lib/libc.so.6
#1  0x40eb406b in raise (sig=6) at signals.c:65
#2  0x40f6dda3 in abort () from /lib/libc.so.6
#3  0x40eec278 in g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR,
format=0x0, args1=0x0)
    at gmessages.c:509
#4  0x40eec2b4 in g_log (log_domain=0x0, log_level=0, format=0x0) at
gmessages.c:528
#5  0x4017ff0e in get_uint_value (tvb=0x83eadd4, offset=109, length=0,
little_endian=0) at proto.c:580
#6  0x40180231 in proto_tree_add_item (tree=0x83ea8b0, hfindex=5645,
tvb=0x83eadd4, start=109, length=0,
    little_endian=0) at proto.c:700
#7  0x4047df17 in dissect_per_sequence_of (tvb=0x83eadd4, offset=872,
pinfo=0x83ea2f0,
    parent_tree=0x83ea8b0, hf_index=5645, ett_index=-1,
    func=0x403621d4 <dissect_h225_authenticationCapability_item>) at
../packet-per.c:239
#8  0x40362266 in dissect_h225_authenticationCapability (tvb=0x83eadd4,
offset=872, pinfo=0x83ea2f0,
    tree=0x83ea8b0) at ../packet-h225.c:3032
#9  0x404807eb in dissect_per_sequence (tvb=0x83eadd4, offset=872,
pinfo=0x83ea2f0, parent_tree=0x83ea8c8,
    hf_index=5483, ett_index=2645, sequence=0x40916760) at
../packet-per.c:1279
#10 0x40367da2 in dissect_h225_GatekeeperRequest (tvb=0x83eadd4, offset=6,
pinfo=0x83ea2f0, tree=0x83ea8c8)
    at ../packet-h225.c:6014
#11 0x4047fb98 in dissect_per_choice (tvb=0x83eadd4, offset=6,
pinfo=0x83ea2f0, tree=0x83ea8f8,
    hf_index=5612, ett_index=2498, choice=0x40919120, name=0x406fe5b3
"RasMessage", value=0xbfffd814)
    at ../packet-per.c:995
#12 0x4036b36d in dissect_h225_RasMessage (tvb=0x83eadd4, pinfo=0x83ea2f0,
tree=0x83ead00)
    at ../packet-h225.c:8676
#13 0x4017d1db in call_dissector_through_handle (handle=0x8232120,
tvb=0x83eadd4, pinfo=0x83ea2f0,
    tree=0x83ead00) at packet.c:363
#14 0x4017d5b3 in call_dissector_work (handle=0x8232120, tvb=0x83eadd4,
pinfo=0x83ea2f0, tree=0x83ead00)
    at packet.c:513
#15 0x4017daa0 in dissector_try_port (sub_dissectors=0x81e4878, port=1719,
tvb=0x83eadd4, pinfo=0x83ea2f0,
    tree=0x83ead00) at packet.c:776
#16 0x4058aa0c in decode_udp_ports (tvb=0x83eada0, offset=8,
pinfo=0x83ea2f0, tree=0x83ead00, uh_sport=1719,
    uh_dport=1719, uh_ulen=154) at ../packet-udp.c:131
#17 0x4058b3f1 in dissect_udp (tvb=0x83eada0, pinfo=0x83ea2f0,
tree=0x83ead00) at ../packet-udp.c:288
#18 0x4017d1db in call_dissector_through_handle (handle=0x823c3e8,
tvb=0x83eada0, pinfo=0x83ea2f0,
    tree=0x83ead00) at packet.c:363
#19 0x4017d5b3 in call_dissector_work (handle=0x823c3e8, tvb=0x83eada0,
pinfo=0x83ea2f0, tree=0x83ead00)
    at packet.c:513
#20 0x4017daa0 in dissector_try_port (sub_dissectors=0x8192750, port=17,
tvb=0x83eada0, pinfo=0x83ea2f0,
    tree=0x83ead00) at packet.c:776
#21 0x403a64c2 in dissect_ip (tvb=0x83ead6c, pinfo=0x83ea2f0,
tree=0x83ead00) at ../packet-ip.c:1098
#22 0x4017d1db in call_dissector_through_handle (handle=0x8192870,
tvb=0x83ead6c, pinfo=0x83ea2f0,
    tree=0x83ead00) at packet.c:363
#23 0x4017d5b3 in call_dissector_work (handle=0x8192870, tvb=0x83ead6c,
pinfo=0x83ea2f0, tree=0x83ead00)
    at packet.c:513
#24 0x4017daa0 in dissector_try_port (sub_dissectors=0x8177520, port=2048,
tvb=0x83ead6c, pinfo=0x83ea2f0,
    tree=0x83ead00) at packet.c:776
#25 0x402d918f in ethertype (etype=2048, tvb=0x83ead38,
offset_after_etype=16, pinfo=0x83ea2f0,
:
:

Attachment: h225.cap
Description: Binary data