Code::Blocks Forums

User forums => Help => Topic started by: qubodup on September 18, 2009, 04:37:51 pm

Title: [solved] Crash when opening project file
Post by: qubodup on September 18, 2009, 04:37:51 pm
Hello,

I would like to try to compile a 3D engine (http://apocalyx.sourceforge.net/) that uses Code::Blocks on my 64bit Linux machine. When I open the project file, C::B crashes, however.

I uploaded the .cbp (http://www.box.net/shared/1ludsu672b) and codeblocks.xml (http://www.box.net/shared/jilcxhiest) files. Hopefully they can clarify what's wrong.

Thanks

PS: codeblocks 8.02-8

PPS: gdb: http://pastebin.com/m1f7e179e bt: http://pastebin.com/m334fce02
Title: Re: Crash when opening project file
Post by: stahta01 on September 18, 2009, 06:06:04 pm
What version/SVN of Code::Blocks?

Tim S.

PS. Windows user; so, I can help out anymore.
Title: Re: Crash when opening project file
Post by: Jenna on September 18, 2009, 07:31:54 pm
What is codeblocks 8.02-8 ?

It seems not to be an official build.


I can confirm the crash, when I try to open the project-file on linux.


Can you compile C::B from svn-source ?
I just committed a fix that prevents the crash.

I can not test whether the apocalyx sources are compilable with the fix or not, I don't want to download the whole needed stuff, because I still have to use ISDN at home.
But opening the project-file (at least on linux) now works.
Title: Re: Crash when opening project file
Post by: qubodup on September 18, 2009, 08:11:09 pm
What is codeblocks 8.02-8 ?
It's an Arch Linux package: http://www.archlinux.org/packages/community/i686/codeblocks/

Can you compile C::B from svn-source ?
I just committed a fix that prevents the crash.
Thanks! Now tried the codeblocks-svn AUR buildfile: http://aur.archlinux.org/packages.php?ID=18493 (edited to checkout latest version). It works (opens) now!

What caused the crash?
Title: Re: Crash when opening project file
Post by: Jenna on September 18, 2009, 10:44:47 pm
What caused the crash?

Using a returned pointer without checking if it is  0.