Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > bus error

bus error
Thread Tools
LordRPI
Fresh-Faced Recruit
Join Date: Aug 2001
Status: Offline
Reply With Quote
Dec 28, 2001, 11:37 PM
 
... long and rocky road with sourceforge...

Ok, so i finally got this proggie (libmpeg2 and mpeg2dec) to compile with the altivec code... but when I run it with AltiVec, it gives me an error that says "bus error" and then terminates. When AltiVec is flagged to be turned off on the command line, the proggie works.

Is the problem in sourceforges AltiVec code, or have I not passed the right arguments into CC... I'm using -faltivec...

TIA,
David
     
beamso
Fresh-Faced Recruit
Join Date: Nov 2001
Location: Melboune, Australia
Status: Offline
Reply With Quote
Jan 9, 2002, 06:54 AM
 
Originally posted by LordRPI:
<STRONG>... long and rocky road with sourceforge...

Ok, so i finally got this proggie (libmpeg2 and mpeg2dec) to compile with the altivec code... but when I run it with AltiVec, it gives me an error that says "bus error" and then terminates. When AltiVec is flagged to be turned off on the command line, the proggie works.

Is the problem in sourceforges AltiVec code, or have I not passed the right arguments into CC... I'm using -faltivec...

TIA,
David</STRONG>
I thought a bus error was a fancy name for a segmentation fault, but don't hold me to that definition.
     
parallax
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Jan 9, 2002, 11:29 AM
 
Looks like there's a slight difference between the segfault and bus errors. I just tested, and when I tried to write to (int *)0, it gave a bus error, and when I incremented a pointer beyond its bounds it gave a segfault.

It may have something to do with kernel vs. hardware detection, but that's just a total guess.
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
   
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 08:42 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,