Author Topic: [solved] Crash when opening project file  (Read 4202 times)

qubodup

  • Guest
[solved] Crash when opening project file
« on: September 18, 2009, 04:37:51 pm »
Hello,

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

I uploaded the .cbp and codeblocks.xml 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
« Last Edit: September 18, 2009, 08:11:28 pm by qubodup »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Crash when opening project file
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Crash when opening project file
« Reply #2 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.

qubodup

  • Guest
Re: Crash when opening project file
« Reply #3 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?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Crash when opening project file
« Reply #4 on: September 18, 2009, 10:44:47 pm »
What caused the crash?

Using a returned pointer without checking if it is  0.