[antlr-interest] Segfault on tinyc and own exemple in C++, with debugging

Mathieu Clabaut mathieu.clabaut at gmail.com
Thu Dec 1 07:48:45 PST 2005


 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