Hi, we recently update Code::Blocks from 13.12 (from CentOS repository) to 16 (from Code::Blocks download), and wxGTK 2.8.12 release 8 to release 20 (from CentOS repository). But now we are experiencing code dump from codeblocks when running its command line mode. The version of CentOS is 7.2.1511.
The parameters used to run codeblocks are
/usr/bin/codeblocks /ni /ns --debug-log --$BUILD_TYPE --target=$TARGET ${WORKSPACE}.workspace
where BUILD_TYPE is 'build' or 'rebuild', TARGET is 'debug' or 'release', and WORKSPACE is the name of a workspace file. The dump file shows the following stack trace:
$ gdb /usr/bin/codeblocks /var/crash/codeblocks.1457378583.crash.5540
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/codeblocks...Reading symbols from /usr/bin/codeblocks...(no debugging symbols found)...done.
(no debugging symbols found)...done.
[New LWP 5540]
[New LWP 7131]
[New LWP 5543]
[New LWP 5542]
[New LWP 7132]
[New LWP 7130]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/bin/codeblocks /ni /ns --debug-log --build --target=Debug64 Draco.workspac'.
Program terminated with signal 6, Aborted.
#0 0x00007fa2fb7295f7 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install codeblocks-16.01-1.el7.x86_64
(gdb) where
#0 0x00007fa2fb7295f7 in raise () at /lib64/libc.so.6
#1 0x00007fa2fb72ace8 in abort () at /lib64/libc.so.6
#2 0x00007fa2fb769317 in __libc_message () at /lib64/libc.so.6
#3 0x00007fa2fb76fea2 in malloc_consolidate () at /lib64/libc.so.6
#4 0x00007fa2fb771ea5 in _int_malloc () at /lib64/libc.so.6
#5 0x00007fa2fb7738dc in malloc () at /lib64/libc.so.6
#6 0x00007fa2fecb06d7 in wxStringBase::AllocBuffer(unsigned long) () at /lib64/libwx_baseu-2.8.so.0
#7 0x00007fa2fecb0866 in wxStringBase::AllocBeforeWrite(unsigned long) () at /lib64/libwx_baseu-2.8.so.0
#8 0x00007fa2fecb27f9 in wxString::GetWriteBuf(unsigned long) () at /lib64/libwx_baseu-2.8.so.0
#9 0x00007fa2fecb3e57 in wxString::PrintfV(wchar_t const*, __va_list_tag*) () at /lib64/libwx_baseu-2.8.so.0
#10 0x00007fa2fecb40f4 in wxString::Printf(wchar_t const*, ...) () at /lib64/libwx_baseu-2.8.so.0
#11 0x00007fa2e83d18e2 in CompilerGCC::DoRecreateTargetMenu() () at /usr/lib64/codeblocks/plugins/libcompiler.so
#12 0x00007fa2e83d2595 in CompilerGCC::UpdateProjectTargets(cbProject*) () at /usr/lib64/codeblocks/plugins/libcompiler.so
#13 0x00007fa300bcb460 in Manager::ProcessEvent(CodeBlocksEvent&) () at /lib64/libcodeblocks.so.0
#14 0x00007fa300bffa61 in ProjectManager::SetProject(cbProject*, bool) () at /lib64/libcodeblocks.so.0
#15 0x00007fa300c016a3 in ProjectManager::CloseProject(cbProject*, bool, bool) () at /lib64/libcodeblocks.so.0
#16 0x00007fa300c01786 in ProjectManager::CloseAllProjects(bool) () at /lib64/libcodeblocks.so.0
#17 0x00007fa300c019fd in ProjectManager::CloseWorkspace() () at /lib64/libcodeblocks.so.0
#18 0x00000000004a6e50 in MainFrame::OnApplicationClose(wxCloseEvent&) ()
#19 0x00007fa2fece9746 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () at /lib64/libwx_baseu-2.8.so.0
#20 0x00007fa2fece97eb in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () at /lib64/libwx_baseu-2.8.so.0
#21 0x00007fa2fece9b57 in wxEvtHandler::ProcessEvent(wxEvent&) () at /lib64/libwx_baseu-2.8.so.0
#22 0x00007fa2fece9ae0 in wxEvtHandler::ProcessEvent(wxEvent&) () at /lib64/libwx_baseu-2.8.so.0
#23 0x00007fa2fece9ae0 in wxEvtHandler::ProcessEvent(wxEvent&) () at /lib64/libwx_baseu-2.8.so.0
#24 0x00007fa2fece9ae0 in wxEvtHandler::ProcessEvent(wxEvent&) () at /lib64/libwx_baseu-2.8.so.0
#25 0x00007fa2fece9ae0 in wxEvtHandler::ProcessEvent(wxEvent&) () at /lib64/libwx_baseu-2.8.so.0
#26 0x00007fa2fece9ae0 in wxEvtHandler::ProcessEvent(wxEvent&) () at /lib64/libwx_baseu-2.8.so.0
#27 0x00007fa2fece9ae0 in wxEvtHandler::ProcessEvent(wxEvent&) () at /lib64/libwx_baseu-2.8.so.0
#28 0x00007fa2fece9ae0 in wxEvtHandler::ProcessEvent(wxEvent&) () at /lib64/libwx_baseu-2.8.so.0
#29 0x00007fa2fece9ae0 in wxEvtHandler::ProcessEvent(wxEvent&) () at /lib64/libwx_baseu-2.8.so.0
#30 0x00007fa2fece9ae0 in wxEvtHandler::ProcessEvent(wxEvent&) () at /lib64/libwx_baseu-2.8.so.0
#31 0x00007fa2ff6736fc in wxWindowBase::Close(bool) () at /lib64/libwx_gtk2u_core-2.8.so.0
#32 0x00000000004478d1 in CodeBlocksApp::OnInit() ()
#33 0x00007fa2fec9274c in wxEntry(int&, wchar_t**) () at /lib64/libwx_baseu-2.8.so.0
#34 0x0000000000435fb2 in main ()
(gdb)
I do not know if this an issue in codeblocks or in wxGTK. How can I turn off the message windows totally so the codeblocks does not invoke any wxGTK GUI code, if it is possible?