- Fixed a bug that can lead to a crash if compiler-plugin checks if external deps are outdated. Thanks to jeroen for pointing this out and the patch.
Are you sure about that? C::B just crashed for me during building my project when I had updated an external library. A RPT was created, but it didn't look very useful:
Error occured on Sunday, August 10, 2008 at 23:46:18.
C:\Programme\Development\CodeBlocks\codeblocks.exe caused an Access Violation at location 0000000e Reading from location 0000000e.
Registers:
eax=06987df8 ebx=6d24bea0 ecx=77bfc2e3 edx=05012b08 esi=64c5eb30 edi=0022fd68
eip=0000000e esp=0022f82c ebp=0022f838 iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010202
Call stack:
0000000E
6CC898EA C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CC898EADwarf Error: found dwarf version '16903', this reader only handles version 2 information. _ZNK9wxProcess16IsInputAvailableEv
61864BAD C:\Programme\Development\CodeBlocks\codeblocks.dll:61864BAD _ZN12PipedProcess8HasInputEv
64BA8EFC C:\Programme\Development\CodeBlocks\share\codeblocks\plugins\compiler.dll:64BA8EFC
6CCCAC0E C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CCCAC0EDwarf Error: found dwarf version '16903', this reader only handles version 2 information. _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
6CCCC1E9 C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CCCC1E9 _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
6CCCC6AF C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CCCC6AF _ZN12wxEvtHandler12ProcessEventER7wxEvent
6CCCC651 C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CCCC651 _ZN12wxEvtHandler12ProcessEventER7wxEvent
6CCCC651 C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CCCC651 _ZN12wxEvtHandler12ProcessEventER7wxEvent
6CCCC651 C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CCCC651 _ZN12wxEvtHandler12ProcessEventER7wxEvent
[snip, lots of the same line]
6CCCC651 C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CCCC651 _ZN12wxEvtHandler12ProcessEventER7wxEvent
6CD6FD16 C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CD6FD16 _ZN9wxAppBase14SendIdleEventsEP8wxWindowR11wxIdleEvent
6CD6FE48 C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CD6FE48 _ZN9wxAppBase11ProcessIdleEv
6CD92711 C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CD92711 _ZN17wxEventLoopManual3RunEv
6CD6FD8B C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CD6FD8B _ZN9wxAppBase8MainLoopEv
00403834 C:\Programme\Development\CodeBlocks\codeblocks.exe:00403834
6CC7706D C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CC7706DDwarf Error: found dwarf version '16903', this reader only handles version 2 information. _Z12wxInitializeiPPw
6CCD2968 C:\Programme\Development\CodeBlocks\wxmsw28u_gcc_cb.dll:6CCD2968 _Z7wxEntryP11HINSTANCE__S0_Pci
00405D36 C:\Programme\Development\CodeBlocks\codeblocks.exe:00405D36
0044ED08 C:\Programme\Development\CodeBlocks\codeblocks.exe:0044ED08
0040124B C:\Programme\Development\CodeBlocks\codeblocks.exe:0040124B
004012B8 C:\Programme\Development\CodeBlocks\codeblocks.exe:004012B8
7C816FF7 C:\WINDOWS\system32\kernel32.dll:7C816FF7 RegisterWaitForInputIdle
I'm sorry to say so, but this is the most unstable version I've come across in a while
- Crashes when saving a file (usually only if done shortly after opening C::B, maybe an issue with code completion). This is a silent crash, ie no error message whatsoever, C::B just goes away. I had these for some time, but in combination with the one below, it really starts to get annoying.
- Crashes when building (no idea, so far always happened when C::B was building in the background, so I didn't see what it does when the crash occurred).
There should (hopefully) be an RPT file created in the CodeBlocks.exe directory.
I have had issues with crashes during build for a while, it looks like there is a problem related pipes. Here's a snippet from my RPT file:
Call stack:
05DE2406
6189EBE0 C:\source\codeblocks\trunk\src\output\codeblocks.dll:6189EBE0 _ZN12PipedProcess8HasInputEv
64BF9AD2 C:\source\codeblocks\trunk\src\output\share\codeblocks\plugins\compiler.dll:64BF9AD2
Heres the thread where this was discussed:
http://forums.codeblocks.org/index.php/topic,8844.0.html (http://forums.codeblocks.org/index.php/topic,8844.0.html)
Chris
Hi everyone,
Sorry, one more bad news :(
I'm using CMake with C::B generator, so I regularly have to reload the project after a modification of the CMakeLists.txt.
It doesn't happen every time, but when I reload the project, C::B may crash silently. The console shows a segmentation fault message only, with no other information.
When running with gdb, I got this:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6641700 (LWP 7201)]
0xb683c8fc in ?? () from /lib/i686/cmov/libc.so.6
Not so instructive :?
Crash happens (at least) in the following use case:
- Two projects have to be open (e.g. a library project and its unit tests' project)
- The library project must be open first, unit test second
- Run CMake to update library project file
- Reload project in C::B
- Enjoy
No crash when updating unit tests' project…
I'm using Debian Sid.
I'm available for any further information you may need.