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
surfacto
Dedicated MacNNer
Join Date: Oct 2001
Location: California
Status: Offline
Reply With Quote
Jul 30, 2003, 02:12 PM
 
Please help me. I recently compiled a c++ program with gcc 3.3, hoping to run it from the terminal, but it returns a bus error. When I run it in gdb, this is the output:

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x900053e4 in strcpy ()
(gdb) edit
/bin/ex: Command not found.
(gdb) list
1539
1540 return;
1541 }
1542
1543 int main(int argc, char** argv)
1544 {
1545
1546 // first check the command line options
1547
1548 check_options(argc,argv);
(gdb)
     
hayesk
Guest
Status:
Reply With Quote
Jul 30, 2003, 03:09 PM
 
Sounds like there is no string termination character ('\0') in a string you are copying.
     
surfacto  (op)
Dedicated MacNNer
Join Date: Oct 2001
Location: California
Status: Offline
Reply With Quote
Jul 31, 2003, 02:57 PM
 
Ok, I solved the bus error problem, but now I get this:

unexpected end of setupfile ~/run_flic.set

where run_flic.set is a text file that the program reads. There must be a mystery end of file mark in this text file, but I can't find it. Does anyone know what the EOF marks are that I should be looking for?
     
   
 
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 04:28 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.,