LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-02-2006, 10:05 PM   #1
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Rep: Reputation: 30
Bus Error


I found a lot of posts regarding this. They talked about Netscape.
I cross-compiled a program from a PC to a SBC. When I ran it, it said "Bus
Error"
Just one curious question, if I have lo in disk space, will it
also come up with this error?
When I first compiled this software (Berkeley DB)
, the final executable was a script file. So I copied
.lib/lt-excxx_example_database_read to the SBC, but now the program on
the SBC had this error. So how to resolve it if even the BDB example
failed, I tried , at build_unix ,typing ../dist/configure --enable-cxx
--prefix=/usr/local --host=armbe-linux
make
make excxx_example_database_load
etc

And another thin' is I had configured before with a previous installation of PC Berkeley DB on
the same installation dir. (frankly, I installed many applications carelessly but didn't have time to fix it)
How was that going to affect the cross compiling installation? is it a
good idea to do so?
How do you see what dependencies (packages) on the system and how do
you check disk space?
remarks: My application runs okay on my PC/Linux.
Thanks
Jack
 
Old 03-03-2006, 05:07 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Bus error is usually very close to 'segmentation fault'. The thing is where it actually failed. If you have a debugger, you may try to run the program in it and see where it occurs. Then, looking in the code, you should be able to tell if it makes sense or not. If not, it's probably a compilation problem.

Edit: One more thing... If a program works on PC/Linux, it doesn't mean it wil run on any other platform. Bugs may actually occur on certain platforms, type sizes change (what can cause problems) etc.

Last edited by Mara; 03-03-2006 at 05:09 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bus error bratch Linux - Software 6 07-04-2005 03:56 PM
Bus error? doodykimo Linux - Newbie 2 03-30-2005 04:33 AM
Bus Error? Chu Linux - Newbie 4 12-21-2003 10:42 PM
Bus error linuxanswer Programming 2 11-10-2003 02:38 AM
Bus error anamika123 Linux - General 2 08-01-2002 04:52 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration