[antlr-interest] Segfault on tinyc and own exemple in C++,
with debugging
Peggy Fieland
madcapmaggie at yahoo.com
Thu Dec 1 13:29:47 PST 2005
I tried this with the tinyc example and got no
segfault:
g++ (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Linux 2.4.20-20.9 #1 Mon Aug 18 11:45:58 EDT 2003 i686
i386
--- Mathieu Clabaut <mathieu.clabaut at gmail.com> wrote:
> Hello,
>
> In the process of hunting a nasty bug on my own
> softare using antlr
> 2.7.5 on linux, I compiled it with the following
> command line options
> :
> g++ -D_GLIBCXX_DEBUG -ggdb3 -fno-inline
> -fkeep-inline-functions
>
> Then it segfault on every run. I tried on the
> tinyc exemple comming
> with antlr distribution, and obtained the same
> result :
>
> program received signal SIGSEGV, Segmentation fault.
> 0x0804bbbc in antlr::CharScanner::resetText
> (this=0xbfe8c3a0)
> at CharScanner.hpp:334
> 334 inputState->tokenStartColumn
> = inputState->column;
>
> Where:
> inputState = {ref = 0x0}
>
> Any idea ? Can it be a side effect of using the
> -D_GLIBCXX_DEBUG
> (ahem, of course it can. The question really should
> be "it is a side
> effect") ?
> I'll try to have a look at it, but I do not master
> the overall antlr
> classes.... It may take some times before I get
> something clear about
> it.
>
>
> -mathieu
>
> --
>
____________http://www.gnu.org/philosophy/no-word-attachments.fr.html
> Mathieu CLABAUT
> mailto:mathieu.clabaut at gmail.com
> F2F5 442F F2AC E1D5 9D31 3EFC 842A BC4A
> 123B 9A65
>
More information about the antlr-interest
mailing list