Menu

#829 Code::Blocks doesn't start; Segmentation fault (core dumped)

Undefined
fixed
nobody
crash (27)
Bug_Report
2021-12-18
2019-05-18
No

Codeblocks doesn't start when run as normal user:

Starting Code::Blocks Release 17.12  rev 11256 Mar 31 2019, 20:33:50 - wx3.0.4 (Linux, unicode) - 64 bit
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
AStylePlugin: loaded
AutoVersioning: loaded
BrowseTracker: loaded
Cccc: loaded
CppCheck: loaded
Cscope: loaded
DoxyBlocks: loaded
EditorConfig: loaded
EditorTweaks: loaded
HexEditor: loaded
IncrementalSearch: loaded
MouseSap: loaded
NassiShneidermanPlugin: loaded
Profiler: loaded
ProjectOptionsManipulator: loaded
RegExTestbed: loaded
ReopenEditor: loaded
SmartIndentCpp: loaded
SmartIndentFortran: loaded
SmartIndentHDL: loaded
SmartIndentLua: loaded
SmartIndentPascal: loaded
SmartIndentPython: loaded
SmartIndentXML: loaded
SpellChecker: loaded
SymTab: loaded
ThreadSearch: loaded
ToolsPlus: loaded
Valgrind: loaded
Abbreviations: loaded
Autosave: loaded
BYOGames: loaded
CB_Koders: loaded
ClassWizard: loaded
CodeCompletion: loaded
CodeSnippets: loaded
CodeStat: loaded
Compiler: loaded
copystrings: loaded
Debugger: loaded
FilesExtensionHandler: loaded
cbDragScroll: loaded
EnvVars: loaded
Exporter: loaded
HeaderFixup: loaded
HelpPlugin: loaded
cbKeyBinder: loaded
lib_finder: loaded
OccurrencesHighlighting: loaded
OpenFilesList: loaded
ProjectsImporter: loaded
ScriptedWizard: loaded
ToDoList: loaded
wxSmithAui: loaded
wxSmith: loaded
wxSmithMime: loaded
wxSmithContribItems: loaded
Source code formatter (AStyle) plugin activated
AutoVersioning plugin activated
BrowseTracker plugin activated
Cccc plugin activated
CppCheck plugin activated
Cscope plugin activated
DoxyBlocks plugin activated
EditorConfig plugin for Code::Blocks plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 15
Editor Tweaks plugin: Folding menu
EditorTweaks plugin activated
HexEditor plugin activated
IncrementalSearch plugin activated
MouseSap plugin activated
NassiShneidermanPlugin plugin activated
Code profiler plugin activated
Project options manipulator plugin activated
Regular expressions testbed plugin activated
ReopenEditor plugin activated
SmartIndentCpp plugin activated
SmartIndentFortran plugin activated
SmartIndentHDL plugin activated
SmartIndentLua plugin activated
SmartIndentPascal plugin activated
SmartIndentPython plugin activated
SmartIndentXML plugin activated
Detected bitmap path: /usr/share/codeblocks/SpellChecker
Detected bitmap path: /usr/share/codeblocks/SpellChecker
SpellChecker plugin activated
Symbol Table Plugin plugin activated
ThreadSearch plugin activated
ToolsPlus plugin activated
Valgrind plugin activated
Abbreviations plugin activated
Autosave plugin activated
BYO Games plugin activated
Koders query plugin activated
Class wizard plugin activated
Code completion plugin activated
Code snippets plugin activated
Code statistics plugin activated
Added compiler "GNU GCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "GDC D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU GCC Compiler for ARM"
Added compiler "GNU GCC Compiler for Android"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "GNU GCC Compiler for Blackfin"
Added compiler "LLVM Clang Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "LLVM D Compiler"
Added compiler "GNU GCC Compiler for LM32"
Added compiler "GNU GCC Compiler for LM8"
Added compiler "GNU GCC Compiler for MSP430 (HighTec)"
Added compiler "*No Compiler*"
Added compiler "PGI Fortran Compiler"
Added compiler "GNU GCC Compiler for PowerPC EABI"
Added compiler "GNU GCC Compiler for PowerPC (HighTec)"
Added compiler "Small Device C Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GNU GCC Compiler for TriCore (HighTec)"
Added compiler "GNU GCC Compiler for ZPU"
Compiler plugin activated
Copy Strings to clipboard plugin activated
Debugger plugin activated
Files extension handler plugin activated
DragScroll plugin activated
Environment variables plugin activated
Source Exporter plugin activated
Header Fixup plugin activated
Help plugin plugin activated
Keyboard shortcuts plugin activated
Segmentation fault (core dumped)

But it starts fine when I run Code::Blocks as superuser:

Starting Code::Blocks Release 17.12  rev 11256 Mar 31 2019, 20:33:50 - wx3.0.4 (Linux, unicode) - 64 bit
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
AStylePlugin: loaded
AutoVersioning: loaded
BrowseTracker: loaded
Cccc: loaded
CppCheck: loaded
Cscope: loaded
DoxyBlocks: loaded
EditorConfig: loaded
EditorTweaks: loaded
HexEditor: loaded
IncrementalSearch: loaded
MouseSap: loaded
NassiShneidermanPlugin: loaded
Profiler: loaded
ProjectOptionsManipulator: loaded
RegExTestbed: loaded
ReopenEditor: loaded
SmartIndentCpp: loaded
SmartIndentFortran: loaded
SmartIndentHDL: loaded
SmartIndentLua: loaded
SmartIndentPascal: loaded
SmartIndentPython: loaded
SmartIndentXML: loaded
SpellChecker: loaded
SymTab: loaded
ThreadSearch: loaded
ToolsPlus: loaded
Valgrind: loaded
Abbreviations: loaded
Autosave: loaded
BYOGames: loaded
CB_Koders: loaded
ClassWizard: loaded
CodeCompletion: loaded
CodeSnippets: loaded
CodeStat: loaded
Compiler: loaded
copystrings: loaded
Debugger: loaded
FilesExtensionHandler: loaded
cbDragScroll: loaded
EnvVars: loaded
Exporter: loaded
HeaderFixup: loaded
HelpPlugin: loaded
cbKeyBinder: loaded
lib_finder: loaded
OccurrencesHighlighting: loaded
OpenFilesList: loaded
ProjectsImporter: loaded
ScriptedWizard: loaded
ToDoList: loaded
wxSmithAui: loaded
wxSmith: loaded
wxSmithMime: loaded
wxSmithContribItems: loaded
Source code formatter (AStyle) plugin activated
AutoVersioning plugin activated
BrowseTracker plugin activated
Cccc plugin activated
CppCheck plugin activated
Cscope plugin activated
DoxyBlocks plugin activated
EditorConfig plugin for Code::Blocks plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 15
Editor Tweaks plugin: Folding menu
EditorTweaks plugin activated
HexEditor plugin activated
IncrementalSearch plugin activated
MouseSap plugin activated
NassiShneidermanPlugin plugin activated
Code profiler plugin activated
Project options manipulator plugin activated
Regular expressions testbed plugin activated
ReopenEditor plugin activated
SmartIndentCpp plugin activated
SmartIndentFortran plugin activated
SmartIndentHDL plugin activated
SmartIndentLua plugin activated
SmartIndentPascal plugin activated
SmartIndentPython plugin activated
SmartIndentXML plugin activated
Detected bitmap path: /usr/share/codeblocks/SpellChecker
Detected bitmap path: /usr/share/codeblocks/SpellChecker
SpellChecker plugin activated
Symbol Table Plugin plugin activated
ThreadSearch plugin activated
ToolsPlus plugin activated
Valgrind plugin activated
Abbreviations plugin activated
Autosave plugin activated
BYO Games plugin activated
Koders query plugin activated
Class wizard plugin activated
Code completion plugin activated
Code snippets plugin activated
Code statistics plugin activated
Added compiler "GNU GCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "GDC D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU GCC Compiler for ARM"
Added compiler "GNU GCC Compiler for Android"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "GNU GCC Compiler for Blackfin"
Added compiler "LLVM Clang Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "LLVM D Compiler"
Added compiler "GNU GCC Compiler for LM32"
Added compiler "GNU GCC Compiler for LM8"
Added compiler "GNU GCC Compiler for MSP430 (HighTec)"
Added compiler "*No Compiler*"
Added compiler "PGI Fortran Compiler"
Added compiler "GNU GCC Compiler for PowerPC EABI"
Added compiler "GNU GCC Compiler for PowerPC (HighTec)"
Added compiler "Small Device C Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GNU GCC Compiler for TriCore (HighTec)"
Added compiler "GNU GCC Compiler for ZPU"
Compiler plugin activated
Copy Strings to clipboard plugin activated
Debugger plugin activated
Files extension handler plugin activated
DragScroll plugin activated
Environment variables plugin activated
Source Exporter plugin activated
Header Fixup plugin activated
Help plugin plugin activated
Keyboard shortcuts plugin activated
Library finder plugin activated
OccurrencesHighlighting plugin activated
Open files list plugin activated
Foreign projects importer plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Fortran application'
Project wizard added for 'Fortran library'
Project wizard added for 'Fortran DLL'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Java application'
Project wizard added for 'Lightfeather project'
Project wizard added for 'Matlab project'
Project wizard added for 'OpenCV project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'QT4 (shared) project'
Project wizard added for 'QT5 project'
Project wizard added for 'SDL project'
Project wizard added for 'SDL2 project'
Project wizard added for 'SFML project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'Arduino Project'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'MSP430 Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
Project wizard added for 'MCS51 Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'D source'
File(s) wizard added for 'C/C++ header'
File(s) wizard added for 'Fortran source'
File(s) wizard added for 'Java source'
Scripted wizard plugin activated
Todo List plugin activated
wxSmith - Aui plugin activated
wxSmith plugin activated
wxSmith - MIME plugin plugin activated
wxSmith - Contrib Items plugin activated
Loading toolbar...
Initializing plugins...

(codeblocks:11880): Gtk-WARNING **: 05:25:42.372: Negative content width -5 (allocation 1, extents 3x3) while allocating gadget (node toolbar, owner GtkToolbar)

(codeblocks:11880): Gtk-WARNING **: 05:25:42.373: Negative content width -5 (allocation 1, extents 3x3) while allocating gadget (node toolbar, owner GtkToolbar)

(codeblocks:11880): Gtk-WARNING **: 05:25:42.374: Negative content width -5 (allocation 1, extents 3x3) while allocating gadget (node toolbar, owner GtkToolbar)

I'm on Reborn OS (Arch based) and got Code::Blocks (version 17.12) from the Arch Linux Community repository.
I also tried the package from the AUR but no difference.

Related

Tickets: #888

Discussion

  • Teodor Petrov

    Teodor Petrov - 2019-05-18

    Please use a debugger to find where it crashes exactly. I think this is a known problem on Arch and you need to apply a status bar patch. See [#629] and [#804].

     

    Related

    Tickets: #629
    Tickets: #804

  • Nigel Reed

    Nigel Reed - 2021-02-03

    This is old, but still open so I might as well add that I'm having the same issue. Ubuntu 20.04.1 with codeblocks from the repo. 20.03-3 amd64

    When starting as a regular user I get the same seg fault. I'm running via an xterm session and not from a console. A box does appear but disappears immediately so can't tell what it says.

    I'm not sure if a backtrace is any good since I'm not running a debug version, but I'm attaching it anyway.

     
  • bluehazzard

    bluehazzard - 2021-02-03

    Thank you for reporting,
    can you make a backtrace for all threads? The command is as follow:

    (gdb) thread apply all bt
    

    with codeblocks from the repo. 20.03-3 amd64

    from what repo? How did you install it?
    This is probably a installation/ rights management issue....
    Can you look who is the owner of the .codeblocks folder in your home directory?

     
  • Nigel Reed

    Nigel Reed - 2021-02-04

    Not sure the all threads will help much but have attached.

    from the apt history file

    Commandline: apt install codeblocks
    Install: codeblocks:amd64 (20.03-3), libcodeblocks0:amd64 (20.03-3, automatic), libwxgtk3.0-gtk3-0v5:amd64 (3.0.4+dfsg-15build1, automatic), libwxbase3.0-0v5:amd64 (3.0.4+dfsg-15build1, automatic), libtinyxml2.6.2v5:amd64 (2.6.2-4build1, automatic), codeblocks-common:amd64 (20.03-3, automatic), libastyle3:amd64 (3.1-2build1, automatic)
    End-Date: 2021-02-03 17:00:29

    Also, this installed the codeblock-contribs package
    Start-Date: 2021-02-03 17:00:36
    Commandline: apt install libwxsmithlib0
    Install: libgamin0:amd64 (0.1.10-6, automatic), libwxsmithlib0:amd64 (20.03-3), codeblocks-contrib:amd64 (20.03-3, automatic), gamin:amd64 (0.1.10-6, automatic)
    Remove: libfam0:amd64 (2.7.0-17.3build2)
    End-Date: 2021-02-03 17:00:39

    nigel@wibble:~$ apt-cache policy codeblocks
    codeblocks:
    Installed: 20.03-3
    Candidate: 20.03-3
    Version table:
    *** 20.03-3 500
    500 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
    100 /var/lib/dpkg/status

    All installed from the Ubuntu repos.

    there is no .codeblocks file in my home directory. I created one but had the same issue.

    If I run codeblocks with safemode then it does start up.

    Anyway...I painstakenly went through the /usr/share/codeblocks directory and by process of elimination determined the DoxyBlocks.zip file is causing the issue. If I remove that file and nothing else, it starts up fine.

     
    • Teodor Petrov

      Teodor Petrov - 2021-02-04

      @Nigel Reed This is fixed in trunk/master [r12074]. And it is reported as [#839]. So you have several options: 1. apply the patch to the sources and rebuild, 2. use night build, 3. remove the doxyblocks plugins as you've done.

      The .codeblocks is in ~/.local and ~/.config if you've not moved these anywhere else.

       

      Related

      Commit: [r12074]
      Tickets: #839

  • Teodor Petrov

    Teodor Petrov - 2021-02-04
    • labels: --> crash
     
  • Nigel Reed

    Nigel Reed - 2021-02-04

    I have a ~/.local/share/codeblocks and a ~/.config/codeblocks and both are owned by me. I must have missed #839 when searching. I'm fine with removing the doxyblocks plugin for now until the fix trickles down. I guess this can be closed since there is a solution.

     
  • Miguel Gimenez

    Miguel Gimenez - 2021-12-18
    • status: open --> fixed
     

Log in to post a comment.