Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

CodeBlock crashes in Linux

<< < (2/2)

AndrewCot:
Sorry, but when I said try the latest nightly I meant download the pre built deb files or setup the PPA and try them, not build from source code.

If you run C::B (debug run) that you built from within C::B try to see if the crash causes GDB to break and then you can check the call stack and copy it and post it as it will help narrow where the problem is and could give someone (probably not me as I am not familiar with GTK or wxWidgets) hint as to where to look next or where the issue may be.

To build withing C::B load the src/CodeBlocks_wx30-unix.workspace file and build it. You  may need to setup some C::B global variables if they are not allready configured.

If there is a codeblocks.RPT crash report file generated when C::B crashes can you post this.

tigerbeard:

--- Quote ---download the pre built deb files or setup the PPA and try them, not build from source code.

--- End quote ---

I uninstalled my compiled version and installed Xaviou's pre-built release ref 12535 and got the same crashes.
The file attached has the XMLinfo from the crash window, the end has the call stack.

AndrewCot:
I was able to reproduce a crash only after I changed the Update parser when typing (on save otherwise) in Settings -> Editor -> Code Completion as indicated in Miguel's post above when it was disabled.

Can you create a new C::B bug ticket via the https://sourceforge.net/p/codeblocks/tickets/ page so it does not get lost.



AndrewCot:
Below is the call stack I get when C::B crashes when debugging the locally built C::B debugging. This fills in the missing functions along with filenames compared to to the non debug crash version info.


#0 0x7fffe1fc147e   BasicSearchTree::GetString(SearchTreePoint const&, unsigned long) const(this=0x7fffc0075590, nn=..., top=0) (/home/ubuntu/code/codeblocks/gtk3-unicode-3.0/build/AC-WindowsInstaller/src/plugins/codecompletion/parser/searchtree.cpp:567)
#1 0x7fffe1fc13fe   BasicSearchTree::GetString(unsigned long) const(this=0x7fffc0075590, n=1) (/home/ubuntu/code/codeblocks/gtk3-unicode-3.0/build/AC-WindowsInstaller/src/plugins/codecompletion/parser/searchtree.cpp:560)
#2 0x7fffe1fd8a27   TokenTree::GetFilename(unsigned long) const(this=0x7fffc0075450, fileIdx=1) (/home/ubuntu/code/codeblocks/gtk3-unicode-3.0/build/AC-WindowsInstaller/src/plugins/codecompletion/parser/tokentree.cpp:870)
#3 0x7fffe1fcc024   Token::GetFilename() const(this=0x7fffc0034390) (/home/ubuntu/code/codeblocks/gtk3-unicode-3.0/build/AC-WindowsInstaller/src/plugins/codecompletion/parser/token.cpp:189)
#4 0x7fffe1ef05d6   ClassBrowser::OnTreeItemDoubleClick(wxTreeEvent&) (this=0x555557625070, event=...) (/home/ubuntu/code/codeblocks/gtk3-unicode-3.0/build/AC-WindowsInstaller/src/plugins/codecompletion/classbrowser.cpp:598)
#5 0x7ffff7295641   wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0:??)
#6 0x7ffff7295743   wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () (/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0:??)
#7 0x7ffff7295aa0   wxEvtHandler::TryHereOnly(wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0:??)
#8 0x7ffff7295b2b   wxEvtHandler::ProcessEventLocally(wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0:??)
#9 0x7ffff7295bd1   wxEvtHandler::ProcessEvent(wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0:??)
#10 0x7ffff7812f2a   wxWindowBase::TryAfter(wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0:??)
#11 0x7ffff7812f2a   wxWindowBase::TryAfter(wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0:??)
#12 0x7ffff7812f2a   wxWindowBase::TryAfter(wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0:??)
#13 0x7ffff787c002   wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0:??)
#14 0x7ffff78944a2   wxGenericTreeCtrl::OnMouse(wxMouseEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0:??)
#15 0x7ffff7295641   wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0:??)
#16 0x7ffff7295743   wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () (/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0:??)
#17 0x7ffff7295aa0   wxEvtHandler::TryHereOnly(wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0:??)
#18 0x7ffff7295b2b   wxEvtHandler::ProcessEventLocally(wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0:??)
#19 0x7ffff7295bd1   wxEvtHandler::ProcessEvent(wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0:??)
#20 0x7ffff787c002   wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0:??)
#21 0x7ffff729595b   wxEvtHandler::SafelyProcessEvent(wxEvent&) () (/usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0:??)
#22 0x7ffff764f82e    () at /usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0 (/usr/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.0.so.0:??)
#23 0x7ffff5bb34fb    () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 (/usr/lib/x86_64-linux-gnu/libgtk-3.so.0:??)
#24 0x7ffff567b802   g_closure_invoke() (/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0:??)
#25 0x7ffff568f814    () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0:??)
#26 0x7ffff569a47d   g_signal_emit_valist() (/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0:??)
#27 0x7ffff569b0f3   g_signal_emit() (/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0:??)
#28 0x7ffff5b5dc23    () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 (/usr/lib/x86_64-linux-gnu/libgtk-3.so.0:??)
#29 0x7ffff5a19128    () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 (/usr/lib/x86_64-linux-gnu/libgtk-3.so.0:??)

Hope this is of some use to the other C::B devs to investigate as I will not have time to look at this for a while.

tigerbeard:
@AndrewCot thank you for the debug test.

this is the ticket
C::B crashes in Linux in a minimal HelloWorld program

Navigation

[0] Message Index

[*] Previous page

Go to full version