User forums > Help

Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault

<< < (2/6) > >>

Miguel Gimenez:
Remember:

--- Quote ---Next time use code tags (the # in the composing window).
--- End quote ---

You are mixing 31_64 with 32_64, so the update fails. Use one or the other depending on the wxWidgets version used.

--- Code: ---update32_64.bat  -- ran below errors

$ ./update31_64.bat

Creating output directory tree
Make dir devel31_64\share\CodeBlocks\compilers
...
Transferring executable files from devel to output folder
File not found - *.exe
...

--- End code ---

manugoswami:
Hi,

Many Thanks i ran correct update. Codeblocks now runs in safe mode with more windows opening, still it crashes in normal mode with below gdb output

I am running ...
 Code::Blocks svn build  rev 13387 Nov  7 2023, 13:36:39 - wxWidgets 3.2.3 - gcc 13.2.0 (Windows, unicode) - 64 bit (in mingw64 window)


When I ...
gdb codeblocks.exe

Description of problem...
Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ff8c1ea257c in wxmsw32u_gcc_custom!_ZN7wxImage9InitAlphaEv ()

Build log:...

--- Code: ---Paste full build log here. (It is found in the 'Build log' tab). Please make always a 'rebuild' (Menu: Build->Rebuild) or a 'clean' and 'build' before you copy the full build log.

--- End code ---

Crash report: ...
[New Thread 13392.0x2364]
[New Thread 13392.0xd68]
[New Thread 13392.0x2194]
[New Thread 13392.0x3b44]
[New Thread 13392.0x3280]
[New Thread 13392.0x2018]
[New Thread 13392.0x27e0]
[New Thread 13392.0x39a4]
[New Thread 13392.0x1d2c]
[New Thread 13392.0x39dc]
warning: ../../src/msw/bitmap.cpp(1611): assert ""bitmap.IsOk()"" failed in Create(): invalid bitmap
 in wxMask::Create
[New Thread 13392.0x3e14]
[Thread 13392.0x3e14 exited with code 0]
warning: ../../src/msw/dib.cpp(155): assert ""hbmp"" failed in Create(): wxDIB::Create(): invalid bi
tmap
[New Thread 13392.0x2748]
[Thread 13392.0x2748 exited with code 0]
warning: ../../src/common/image.cpp(2209): assert ""IsOk()"" failed in GetAlpha(): invalid image
[New Thread 13392.0x43bc]
[Thread 13392.0x43bc exited with code 0]
warning: ../../src/common/image.cpp(2209): assert ""IsOk()"" failed in GetAlpha(): invalid image
[New Thread 13392.0x3c44]
[Thread 13392.0x3c44 exited with code 0]
warning: ../../src/common/image.cpp(2191): assert ""IsOk()"" failed in SetAlpha(): invalid image
[New Thread 13392.0x2fe4]
[Thread 13392.0x2fe4 exited with code 0]

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ff8c1ea257c in wxmsw32u_gcc_custom!_ZN7wxImage9InitAlphaEv ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\wxmsw32u_gcc_custom.dll
(gdb) Quit (expect signal SIGINT when the program is resumed)



I have already tried ...
List of attempted solutions.
... but none of them worked.

Kind regards,
Manu

Miguel Gimenez:
After you get the segmentation fault execute "bt" and post the result here. Use codeblocks.exe from the devel32_64 folder.

manugoswami:
Hi,
Kindly find backtrace below

bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

(gdb) bt
#0  0x00007ff8c1ea257c in wxmsw32u_gcc_custom!_ZN7wxImage9InitAlphaEv ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\wxmsw32u_gcc_custom.dll
#1  0x00007ff8c1ccd358 in wxmsw32u_gcc_custom!_ZN11wxImageList19GetImageListBitmapsERNS_12wxMSWBitma
psERK8wxBitmapS4_ ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\wxmsw32u_gcc_custom.dll
#2  0x00007ff8c1ccd5e8 in wxmsw32u_gcc_custom!_ZN11wxImageList3AddERK8wxBitmapS2_ ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\wxmsw32u_gcc_custom.dll
#3  0x00007ff8db3586a5 in ?? ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\share\codeblocks\plugins\code
completion.dll
#4  0x00007ff8db35881b in ?? ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\share\codeblocks\plugins\code
completion.dll
#5  0x00007ff8db35b06c in ?? ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\share\codeblocks\plugins\code
completion.dll
#6  0x00007ff8db31ab6f in ?? ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\share\codeblocks\plugins\code
completion.dll
#7  0x00007ff8db35f4f1 in ?? ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\share\codeblocks\plugins\code
completion.dll
#8  0x00007ff8db32f830 in ?? ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\share\codeblocks\plugins\code
completion.dll
#9  0x00007ff8d80384df in codeblocks!_ZN8cbPlugin6AttachEv ()
--Type <RET> for more, q to quit, c to continue without paging--
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\codeblocks.dll
#10 0x00007ff8d81049af in codeblocks!_ZN13PluginManager12AttachPluginEP8cbPluginb ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\codeblocks.dll
#11 0x00007ff8d810cefa in codeblocks!_ZN13PluginManager14LoadAllPluginsEv ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\codeblocks.dll
#12 0x00007ff6f61e4c34 in ?? ()
#13 0x00007ff6f61dcc81 in ?? ()
#14 0x00007ff6f61731a0 in ?? ()
#15 0x00007ff6f6174aa3 in ?? ()
#16 0x00007ff6f6290755 in ?? ()
#17 0x00007ff8c1b2c7f2 in wxmsw32u_gcc_custom!_Z12wxInitializeRiPPc ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\wxmsw32u_gcc_custom.dll
#18 0x00007ff6f6172479 in ?? ()
#19 0x00007ff6f61712ee in ?? ()
#20 0x00007ff6f61713e6 in ?? ()
#21 0x00007ff934b87344 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll
#22 0x00007ff9351e26b1 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll
#23 0x0000000000000000 in ?? ()


kind regards,
Manu

blauzahn:
looks like the segfault is at least indirectly triggered by the plugin codecompletion. Can you please try to rename codecompletion.dll so that cb does not find it during startup.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version