LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-21-2003, 09:34 AM   #1
Chu
Member
 
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, 01:16 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,691

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
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, 04:06 PM   #3
MartinN
Member
 
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".

Regards
Martin (with a wise guy face)
 
Old 12-21-2003, 05:11 PM   #4
h/w
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 05:15 PM.
 
Old 12-21-2003, 10:42 PM   #5
Chu
Member
 
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
 
  


Reply



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 linuxanswer Programming 2 11-10-2003 02:38 AM
Quake 3 Bus Error Morf Linux - Software 0 09-05-2003 06:11 AM
Bus error anamika123 Linux - General 2 08-01-2002 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:17 AM.

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