User forums > Using Code::Blocks

C::B crash (Settings-->Editor)

<< < (3/16) > >>

mandrav:

--- Quote from: aarti_pl on March 14, 2006, 08:54:14 pm ---I got the same bug from quite a long time. It drives me crazy because before I couldn't even compile CB from source using Makefiles. Now it compiles, but it crashes when I try to open almost any dialog which is defined in resources (not only Settings-->Editor).

My Config: Ubuntu Breezy; Codeblocks svn compiled with Makefile.

BR
Aarti_pl

--- End quote ---

A forum search would have helped you from going crazy...


make clean-zipfiles
make
sudo make install

aarti_pl:
Probably I will have to get mad :(

I applied your hint and it changed nothing at all. From settings only works: Editor and Global variables.
Dialogs which doesn't work: Settings-->Environment, Settings-->Compiler and Debugger, Plugins-->Manage Plugins.
When I choose one of these dialogs I get: Error in resource - there is no handler for wxCheckList.

PS1. I recompiled the whole project to make sure that everything is ok. It also doesn't help.
PS2. I can't attach zipped logs because "upload folder is full".

BR
Aarti_pl

Michael:
Hello,

That very strange, because I have had no problems building C::B and contr.plugins both by make and by using the project file(s). You can try to fully unistall C::B and then trying to re-install it by following the wiki instructions. Anyway, you do not need to build wxWidgets, you can use the pre-installed Ubuntu package (do not forget wx-common package :)).

You can also give a try of a .deb package (look at my signature) and see if it works for you.

Best wishes,
Michael

Michael:
Hello,

Following Pecan's suggestion (and to avoid to hijack another topic), I have tried to get more info on my Settings-->Editor crash with codestats plugin (C::B rev2317). Here is the gdb output:


--- Quote ---(gdb) run
Starting program: /home/michael/devel/trunk/src/devel/codeblocks
[Thread debugging using libthread_db enabled]
[New Thread -1228880192 (LWP 13442)]

(process:13442): Gdk-WARNING **: locale not supported by Xlib

(process:13442): Gdk-WARNING **: cannot set locale modifiers
[New Thread -1236251728 (LWP 13653)]
[New Thread -1249666128 (LWP 13669)]
[New Thread -1259459664 (LWP 13670)]
[Thread -1259459664 (zombie) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1228880192 (LWP 13442)]
0xb7a05349 in wxStringBase::AllocBeforeWrite ()
   from /usr/lib/libwx_baseu-2.6.so.0
(gdb)

--- End quote ---

It seems a problem of zombie thread. I have done some tests without codestats plugin, and there still are zombie threads. So, it is probably not the cause of the crash or not directly.

[EDIT]: I have remarked that only the Editor menu has zombie threads. When opening the other Settings menu, no additional thread(s) is created, but when opening Editor (withour or with codestats plugin), two new threads are created and relatively fast, the third is exited and marked as zombie. When closing the Editor menu (without codestats plugin) the second thread is closed and marked as zombie, then another thread is created, exited and marked as zombie.

May be this fact could make problems with codestats plugins and generate the SIGSEGV. 

Best wishes,
Michael

Pecan:

--- Quote ---Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1228880192 (LWP 13442)]
0xb7a05349 in wxStringBase::AllocBeforeWrite ()
   from /usr/lib/libwx_baseu-2.6.so.0
(gdb)

--- End quote ---

Michael,

Could you do that again. Then when the "(gdb)" prompt
occurs after the SIGSEGV could you issue a backtrace
command. "bt" so we can see who is entering the
AllocBeforeWrite() segfaulted routine. You may have
to issue a number of "bt"s to see the *cause* of the error.

thanks
pecan

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version