News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Crashing on Debian when compiling/debugging

Started by frog-x, June 06, 2005, 06:22:41 PM

Previous topic - Next topic

frog-x

Hi. I'm running a Debian Sarge system (which was originally installed via Knoppix a while ago). But Code::Blocks keeps disappearing on me, and all I get is "segmentation fault".

Specifically, this happens whenever:
I try to launch the debugger
I try to compile if I've already previously compiled it once and not deleted the object files

I've tried installing the pre-packaged deb files (mentioned elsewhere on these forums), which I believe use the gtk1 libraries. But I've also built wx with the --enable-gtk2 flag and compiled Code::Blocks myself. Both times I got the same problem :?

Any help would be gratefully received. Thanks.

rickg22

frog-x: Are the builds unicode-enabled? Code::Blocks is NOT unicode-ready yet.

mandrav

Hi frog-x. Read this and see if it applies...

Yiannis.
Be patient!
This bug will be fixed soon...

frog-x

Quote from: rickg22frog-x: Are the builds unicode-enabled? Code::Blocks is NOT unicode-ready yet.

wxWindows says it doesn't have unicode enabled. Is there anywhere else where I need to turn it off? e.g. in the Code::Blocks Makefile.unix? Or in GTK2?

When I configure wx, this is what I get:

# ./configure --enable-gtk2  
<--- snip --->
Configured wxWindows 2.4.2 for `i686-pc-linux-gnu'

 Which GUI toolkit should wxWindows use?                 GTK
 Should wxWindows be compiled in debug mode?             no
 Should wxWindows be linked as a shared library?         yes
 Should wxWindows be compiled in Unicode mode?           no
 What level of wxWindows compatibility should be enabled?
                                      wxWindows 2.0      no
                                      wxWindows 2.2      yes
 Which libraries should wxWindows use?
                                      jpeg               sys
                                      png                sys
                                      regex              sys
                                      tiff               sys
                                      zlib               sys

frog-x

Quote from: mandravRead this and see if it applies...

Thanks! That's just what I was looking for.

I edited regexp.c, regexp.h and headers.c and that seems to have stopped the crashes. I guess now I need to get it working with dependencies...

Thanks for the help.

mandrav

QuoteI guess now I need to get it working with dependencies...
You do that and submit a patch ;)

Yiannis.
Be patient!
This bug will be fixed soon...

frog-x

As for the reason why it's using the function from libc6, I'm presuming that it's something odd to do with WX loading the shared libraries at run-time. WXwindows itself seems to sometimes use the regcomp() function from libc6, so that might already have been loaded and just get re-used when needed. Sorry that I don't have a more definite answer.

But what I don't understand is why changing the name to myregcomp() breaks something. The regcomp() function doesn't get called from anywhere else does it? I'm afraid I'm not really sure what the dependency stuff is supposed to do, so I haven't had time to verify that it gets broken...