Author Topic: Bus error after installation  (Read 6751 times)

Offline jambli

  • Single posting newcomer
  • *
  • Posts: 6
Bus error after installation
« on: January 17, 2010, 05:14:54 am »
Hello everyone,

When attempting to run code blocks on a ubuntu 9.10 64 bit system I get the following error:

Code
jatone@jatone-desktop:~/Desktop/codeblocks-8.02$ codeblocks
Bus error

Digging a little deeper and using gdb to run codeblocks I get the following output:

Code
jatone@jatone-desktop:~/Desktop$ gdb codeblocks
(gdb) run
Starting program: /usr/bin/codeblocks

Program received signal SIGBUS, Bus error.
0x00007ffff7df68f0 in ?? () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0  0x00007ffff7df68f0 in ?? () from /lib64/ld-linux-x86-64.so.2
#1  0x00007ffff7de596d in ?? () from /lib64/ld-linux-x86-64.so.2
#2  0x00007ffff7de73a8 in ?? () from /lib64/ld-linux-x86-64.so.2
#3  0x00007ffff7deb46d in ?? () from /lib64/ld-linux-x86-64.so.2
#4  0x00007ffff7ded386 in ?? () from /lib64/ld-linux-x86-64.so.2
#5  0x00007ffff7debb64 in ?? () from /lib64/ld-linux-x86-64.so.2
#6  0x00007ffff7de27c7 in ?? () from /lib64/ld-linux-x86-64.so.2
#7  0x00007ffff7df43e7 in ?? () from /lib64/ld-linux-x86-64.so.2
#8  0x00007ffff7de038d in ?? () from /lib64/ld-linux-x86-64.so.2
#9  0x00007ffff7ddfaf8 in ?? () from /lib64/ld-linux-x86-64.so.2
#10 0x0000000000000001 in ?? ()
#11 0x00007fffffffe659 in ?? ()
#12 0x0000000000000000 in ?? ()

Finally when trying to compile from src I get the following error, I'm not sure if this error is related in anyway (doubtful):

Code
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libwx_gtk2u_core-2.8.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[3]: *** [libcodeblocks.la] Error 1
make[3]: Leaving directory `/home/jatone/Desktop/codeblocks-8.02/src/sdk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jatone/Desktop/codeblocks-8.02/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jatone/Desktop/codeblocks-8.02/src'
make: *** [all-recursive] Error 1

This isn't a memory space issue the system has 2gigs of ram and it occurs even when no other programs are active.
Any help would be appreciated.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Bus error after installation
« Reply #1 on: January 17, 2010, 10:44:23 am »
Install wxgtk-dev or something like that for the build error.
Then rerun configure with --enable-debug option to get meaningful backtrace.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Bus error after installation
« Reply #2 on: January 17, 2010, 12:50:02 pm »
Jambli, perhaps you could install the "-debug" or "-debuginfo" packages to get a more usefull backtrace ?
Kernel Extremist - PedroM power ©

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Bus error after installation
« Reply #3 on: January 17, 2010, 01:31:29 pm »
What's the output of
Code
file -L /usr/lib/libwx_gtk2u_core-2.8.so

Offline jambli

  • Single posting newcomer
  • *
  • Posts: 6
Re: Bus error after installation
« Reply #4 on: January 17, 2010, 05:47:51 pm »
While writing this up and fiddling with the wxgtk2.8 libraries the problem was resolved and the ubuntu package started working.

The compiling from source problem has changed though. Basically now its telling saying things like
Code
error: 'wxTimerEvent' has not been declared
error: invalid use of incomplete type 'struct wxXmlResourceHandler'
etc etc etc. But since the package is working not really too worried about compiling from source at this point. Thanks for your help guys.