User forums > Help

crash while parsing source files

<< < (6/7) > >>

Jenna:
The funny thing is, that if I also log the Tokens name
--- Code: ---Manager::Get()->GetLogManager()->DebugLog(F(_T("oldToken->m_Name = %s"), oldToken->m_Name.c_str()));
--- End code ---
I see that not always the same recursion happens.

Another thing:

how does CC decide which class is the parent-class, if no header files are explicitly included.
For example the parent class "C" that is used by CC in "M_C.h" is in the same namespace, but there are no includes, so it is not in the scope and should lead to an error when compiling.
I think that CC should only use tokens (as base class in this case) that are visible for "M_C" (in this case).
Everything else is a guess and therefore error-prone.

jarro_2783:
I'm still getting crashes, the stack trace looks like this:

#14 0x00007f1e07a648f9 in TokensTree::RemoveToken (this=0x1307c50, oldToken=0x7f1e024715a0) at parser/token.cpp:607
#15 0x00007f1e07a648f9 in TokensTree::RemoveToken (this=0x1307c50, oldToken=0x7f1e0279e650) at parser/token.cpp:607
#16 0x00007f1e07a648f9 in TokensTree::RemoveToken (this=0x1307c50, oldToken=0x7f1e024715a0) at parser/token.cpp:607
#17 0x00007f1e07a648f9 in TokensTree::RemoveToken (this=0x1307c50, oldToken=0x7f1e0279e650) at parser/token.cpp:607
#18 0x00007f1e07a648f9 in TokensTree::RemoveToken (this=0x1307c50, oldToken=0x7f1e024715a0) at parser/token.cpp:607

Unfortunately the crash only seems to happen in my code which is now even bigger and makes it hard to track down. But notice that the values of oldToken seem to be alternating if that helps.

ollydbg:

--- Quote from: jens on April 19, 2009, 02:53:40 pm ---
--- Quote from: MortenMacFly on April 19, 2009, 02:38:23 pm ---Strangely it happens only at the second save to me.

--- End quote ---

For me it happens at first save after the parser has finished for the first time.

--- End quote ---

The same to me, CB crashed after first save.

By the way, I'm not sure how to see the stack track.(windows XP)

jarro_2783:
if you have mingw you can run it through gdb.

ollydbg:

--- Quote from: jarro_2783 on April 21, 2009, 12:38:27 am ---if you have mingw you can run it through gdb.

--- End quote ---
Thank for the hint :D
I'm not sure that when Code:blocks crashes(not running in gdb), will it create a dump file in the installed directory?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version