Author Topic: Crashing on Debian when compiling/debugging  (Read 8983 times)

frog-x

  • Guest
Crashing on Debian when compiling/debugging
« on: June 06, 2005, 06:22:41 pm »
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.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Crashing on Debian when compiling/debugging
« Reply #1 on: June 06, 2005, 07:31:03 pm »
frog-x: Are the builds unicode-enabled? Code::Blocks is NOT unicode-ready yet.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Crashing on Debian when compiling/debugging
« Reply #2 on: June 06, 2005, 10:29:54 pm »
Hi frog-x. Read this and see if it applies...

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

frog-x

  • Guest
Crashing on Debian when compiling/debugging
« Reply #3 on: June 07, 2005, 01:18:31 pm »
Quote from: rickg22
frog-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:
Code

# ./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

  • Guest
Crashing on Debian when compiling/debugging
« Reply #4 on: June 07, 2005, 01:23:54 pm »
Quote from: mandrav
Read 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.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Crashing on Debian when compiling/debugging
« Reply #5 on: June 07, 2005, 06:21:07 pm »
Quote
I 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

  • Guest
Crashing on Debian when compiling/debugging
« Reply #6 on: June 10, 2005, 07:29:07 pm »
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...