User forums > Help

crash while parsing source files

<< < (3/7) > >>

Jenna:
Thanks I will install boost later the day.
I hope it crashes also with 1.37 (that's the newest version in debian), but I will also download more actual sources to compile it myself.

MortenMacFly:

--- Quote from: jarro_2783 on March 27, 2009, 12:17:41 am ---www.cse.unsw.edu.au/~jarrydb/cbcrash.tar.bz2

--- End quote ---
Works just fine here (on Windows, Boost 1.38).

But: I have a modified version of CC... so probably this crash has been fixed meanwhile. Can you try another nighly?

Jenna:

--- Quote from: MortenMacFly on March 27, 2009, 11:49:53 am ---
--- Quote from: jarro_2783 on March 27, 2009, 12:17:41 am ---www.cse.unsw.edu.au/~jarrydb/cbcrash.tar.bz2

--- End quote ---
Works just fine here (on Windows, Boost 1.38).

But: I have a modified version of CC... so probably this crash has been fixed meanwhile. Can you try another nighly?

--- End quote ---

I was able to make it crash with an unmodified C::B from trunk (r 5486) on my debian laptop 64-bit and boost 1.38.
1.37 does not crash !

So I see the possibility to find the issue this weekend.
Might be fixed with the cc-changes, because a modified version (trunk with new/changed cc seems not to crash).
But the other issue I found (see patch some posts before) does also only occur more or less randomly, depending on what the OS does with the unused memory, if we accidently reuse it.

jarro_2783:
I just tried it with no source code, just the includes, and it still crashed. So I guess it's something in boost. I also got a different crash which hadn't happened before, but I didn't save the backtrace. It may have been the one you said you fixed so I'll post if it happens again.

Jenna:

--- Quote from: jens on March 27, 2009, 12:25:53 pm ---Might be fixed with the cc-changes, because a modified version (trunk with new/changed cc seems not to crash).

--- End quote ---

The only difference in token.cpp (where the crash appears is in TokenExists(...).

With the following patch, the crash should not appear:


--- Code: ---Index: src/plugins/codecompletion/parser/token.cpp
===================================================================
--- src/plugins/codecompletion/parser/token.cpp (Revision 5486)
+++ src/plugins/codecompletion/parser/token.cpp (Arbeitskopie)
@@ -463,7 +463,7 @@
         Token* curtoken = m_Tokens[result];
         if(!curtoken)
             continue;
-        if((parent<0 || curtoken->m_ParentIndex == parent) && curtoken->m_TokenKind & kindMask)
+        if((curtoken->m_ParentIndex == parent) && curtoken->m_TokenKind & kindMask)
             return result;
     }
     return -1;
--- End code ---

The problem is, that I still do not know what causes the crash in
--- Code: ---RemoveToken(...)
--- End code ---
.
I don't like a crash go away without really knowing the cause for it, so I will try to investigate further.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version