Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-21-2003, 10:34 AM   #1
Registered: Nov 2003
Location: Australia
Distribution: Slackware 9.1
Posts: 166

Rep: Reputation: 30
Bus Error?

I don't really know what to say/ask...

I try to run a binary a friend gave me, and I get this:
chu@darkstar:~/downloads$ ./server
Bus error

I've never seen, or heard of a Bus Error before.. If anyone knows anything, please help me.
Old 12-21-2003, 02:16 PM   #2
Registered: Aug 2002
Posts: 17,828

Rep: Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401Reputation: 2401
So what kind of application is server? Not enough information, the error isn't specific enough. Have you asked your friend who gave you the program?
Old 12-21-2003, 05:06 PM   #3
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Please let me excel, now that I for once have a chance. I think that Chu is running Linux on something other than an x86 machine. Is that correct?

A bus error is when you try to access 32 bit data that is not aligned on 4 byte boundaries. Some CPUs refuse to do that, but not an x86. An x86 machine will read the 4 bytes but in two consecutive fetches from RAM.

In short; this is a program error similar to a "Segmentation Fault".

Martin (with a wise guy face)
Old 12-21-2003, 06:11 PM   #4
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
a-ha! i got a bus error on my solaris machine yday. it was cos of a for loop (so check your loops) i had written which was trying to go beyond the limits(indexes) i had set. ask your friend to check that, or send u the src? so, as martinn said, its akin to a segmentation fault - ur trying to access mem you shouldnt.

Last edited by h/w; 12-21-2003 at 06:15 PM.
Old 12-21-2003, 11:42 PM   #5
Registered: Nov 2003
Location: Australia
Distribution: Slackware 9.1
Posts: 166

Original Poster
Rep: Reputation: 30
Well it seems that the problem was:

The binary was on an FTP I started downloading the binary, but I cancelled it half-way through.
I tried to run the half-downloaded version and got the Bus Error.
I later went back and downloaded the full binary and it works fine.
Sorry I didn't state my standing very well.

Thanks for the answers


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 04:56 PM
Bus error? doodykimo Linux - Newbie 2 03-30-2005 05:33 AM
Bus error linuxanswer Programming 2 11-10-2003 03:38 AM
Quake 3 Bus Error Morf Linux - Software 0 09-05-2003 07:11 AM
Bus error anamika123 Linux - General 2 08-01-2002 05:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:11 PM.

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