Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

[Bug report] CodeBlocks crash when adding file to the project

<< < (2/4) > >>

AdrianB:
Hi ollydbg,

Found the situation. I've created 2 Build Targets based on Debug: lib (Debug) and vtysh (Debug).
Because Quagga is a multiple executable project I've created for each lib/exec one Build Target.
So I've added recursive files from directory lib/ to target lib (Debug).
Then I've tried to add only vtysh_cmd.c to vtysh (Debug) target and CB crashed like my project.
vtysh_cmd.c is created by extract.pl file, so by default is not available in Quagga sources. You have to do ./configure and then make the sources in vtysh to obtain the file, or the file I've uploaded in the thread.

Now I'm trying to see if I can recompile CB with more debug.

Kind regards,
Adrian

AdrianB:
I've recompiled CB with -g -O0 and I did a gdb on it.
I've attached the GDB output.

ollydbg:
Hi, thanks for the effort to build c::b, and it looks like you have build it successfully.


--- Code: ---#6  0x00007fffc0b9e3b4 in Tokenizer::Lex (this=this@entry=0x7fffb01164d0) at parser/tokenizer.cpp:976
#7  0x00007fffc0ba20dc in Tokenizer::DoGetToken (this=this@entry=0x7fffb01164d0) at parser/tokenizer.cpp:936
#8  0x00007fffc0ba251f in Tokenizer::GetToken (this=this@entry=0x7fffb01164d0) at parser/tokenizer.cpp:843
#9  0x00007fffc0b8af79 in ParserThread::SkipToOneOfChars (this=this@entry=0x7fffb01164c0, chars=..., supportNesting=supportNesting@entry=false, singleCharToken=singleCharToken@entry=true) at parser/parserthread.cpp:238
#10 0x00007fffc0b949be in ParserThread::DoParse (this=this@entry=0x7fffb01164c0) at parser/parserthread.cpp:906
#11 0x00007fffc0b9833c in ParserThread::HandleClass (this=this@entry=0x7fffb01164c0, ct=ct@entry=ParserThread::ctStructure) at parser/parserthread.cpp:2114
#12 0x00007fffc0b948b3 in ParserThread::DoParse (this=this@entry=0x7fffb01164c0) at parser/parserthread.cpp:956
#13 0x00007fffc0b9833c in ParserThread::HandleClass (this=this@entry=0x7fffb01164c0, ct=ct@entry=ParserThread::ctStructure) at parser/parserthread.cpp:2114
#14 0x00007fffc0b948b3 in ParserThread::DoParse (this=this@entry=0x7fffb01164c0) at parser/parserthread.cpp:956
#15 0x00007fffc0b9833c in ParserThread::HandleClass (this=this@entry=0x7fffb01164c0, ct=ct@entry=ParserThread::ctStructure) at parser/parserthread.cpp:2114
#16 0x00007fffc0b948b3 in ParserThread::DoParse (this=this@entry=0x7fffb01164c0) at parser/parserthread.cpp:956
#17 0x00007fffc0b9833c in ParserThread::HandleClass (this=this@entry=0x7fffb01164c0, ct=ct@entry=ParserThread::ctStructure) at parser/parserthread.cpp:2114
#18 0x00007fffc0b948b3 in ParserThread::DoParse (this=this@entry=0x7fffb01164c0) at parser/parserthread.cpp:956
#19 0x00007fffc0b9833c in ParserThread::HandleClass (this=this@entry=0x7fffb01164c0, ct=ct@entry=ParserThread::ctStructure) at parser/parserthread.cpp:2114
...

--- End code ---

This looks like an endless loop in the parser, so I need a way to reproduce this bug. Can you give me a minimal cbp project(with all the header files and source files in the project). Since I can't reproduce for a single source file.

AdrianB:
Hi ollydbg,

Of course. the problem is that the compressed files are about 360Kb so I can't upload them here.
I've put them on my web server: http://www.abtelecom.ro/documents/CB-quagga-bug.tar.xz

The file vtysh_cmd.c is not added in the project (obviously :) ) but the rest of the project is already prepared. Is a minimal project which crashed in my case.

Kind regards,
Adrian

ollydbg:
I can reproduce this crash issue, and I get a call stack which have 1686 frames!
So, there are some recursive calls.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version