Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Stack overflow on parsing CPP file


While creating IASTTranslationUnit for some file I've encontered a
Stack overflow (see attachment).

I'm trying to understand whether this a bug or the file is so complex
for the parser.
Unfortunately, I cannot share the file. At the same time I cannot yet
create some simpler example because I do not understand what happens
It looks like the problem is some kind of unstable issue: few
different files can cause such error but sometimes parsing of a file
goes ok.

I tried to lookup what was the name at lines
ASTInternal.addName(IScope, IASTName) line: 83

In all the cases these names are <Class Name>:<Method Name>
And what is interesting here is that one and the same name appears
exactly 5 times (in 5 consequetive frame records for this
ASTInternal.addName ). 6th frame starts a sequence for another method.

Do you have any ideas how to figure out the reason for that behavour?


Attachment: stack.log
Description: Binary data

Back to the top