bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GLR C++ Parser leaks Memory


From: Roland Kaminski
Subject: GLR C++ Parser leaks Memory
Date: Thu, 8 Nov 2012 17:46:46 +0100
User-agent: KMail/1.13.5 (Linux/2.6.32-5-amd64; KDE/4.4.5; x86_64; ; )

Hi all,

I am using bison 2.6.5 and discovered that the GLR parser leaks memory when 
exceptions are used. I used the glr.cc skeleton and want to throw an exception 
after a certain amount of syntax errors. The memory is leaked by the glr-stack 
itself and not by any of my semantic values (they don't need destruction).

This is no show-stopper for me but it would be nice if the generated parser 
were exception safe. I attached some valgrind output that should indicate 
where the memory is leaked. Also note that if I switch to the larl1.cc 
skeleton, no memory is leaked. (But I cannot parse some input then.)

If you need a minimalistic example, I can create one. Just tell me.

Regards, Roland

Attachment: valgrind.log
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]