Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 20442: /trunk/tools/lemon/ /trunk/to

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Tue, 16 Jan 2007 13:26:50 +0100 (CET)
Hi,

Maybe not, since it seems to have broken the program completely.

(gdb) run
Starting program: /home/me/src/wireshark/trunk/.libs/lt-tshark
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1233094432 (LWP 25812)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1233094432 (LWP 25812)]
0xb69c75ad in free () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb69c75ad in free () from /lib/tls/i686/cmov/libc.so.6
#1  0xb6b3ab31 in g_free () from /usr/lib/libglib-2.0.so.0
#2  0xb6fafa13 in yy_destructor (yymajor=<value optimized out>, yypminor=0x0) at ./dtd_grammar.lemon:63
#3  0xb6fb0685 in DtdParse (yyp=0x8371f40, yymajor=6, yyminor=0x8376f00, bd=0x8378888) at ./dtd_grammar.lemon:1
#4  0xb6fb163b in Dtd_Parse_lex () at ./dtd_parse.l:275
#5  0xb6fb221c in dtd_parse (s=0x8378f20) at ./dtd_parse.l:335
#6  0xb76620f5 in proto_register_xml () at packet-xml.c:1145
#7  0xb766b3b5 in register_all_protocols () at register.c:691
#8  0xb6fcd66f in proto_init (register_all_protocols=0x804e31c <register_all_protocols@plt>,
    register_all_protocol_handoffs=0x804e75c <register_all_protocol_handoffs@plt>) at proto.c:320
#9  0xb6fb60d7 in epan_init (register_all_protocols=0x804e31c <register_all_protocols@plt>,
    register_all_handoffs=0x804e75c <register_all_protocol_handoffs@plt>, report_failure=0x8060dc0 <failure_message>,
    report_open_failure=0x80610a0 <open_failure_message>, report_read_failure=0x8061150 <read_failure_message>) at epan.c:97
#10 0x08062fc1 in main (argc=1, argv=0xbf80a4d4) at tshark.c:781

Thanx,
Jaap

On Tue, 16 Jan 2007, Joerg Mayer wrote:

> On Mon, Jan 15, 2007 at 07:48:06PM +0000, lego@xxxxxxxxxxxxx wrote:
> > http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=20442
> >
> > User: lego
> > Date: 2007/01/15 07:48 PM
> >
> > Log:
> >  Fix a major leakage of token minors in lemon generated parsers due to the fact that lemon was not genmerating destructor code for elements in the RHS of rules without C-code.
> >
>
> Can you please provide feedback to the lemon author?
>
>  thanks
>        Joerg
>