Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bus Error



On Jun 16, 2005, at 4:28 AM, Federico wrote:

 6 printf
 7 main

If you click on the "main" function in the stack trace, you can inspect what arguments are being passed to printf.


I'm guessing (you perhaps should show us relevant parts of your code (keep it short)) that you have either some problem with stdio, or you have some other problem (such as heap corruption) that printf encounters when it runs.

BTW, you will find it useful to put ALL debugging statements to stderr, using fprintf. stdout is buffered, and not output immediately.

If you want to launch your program from Xcode with command-line parameters, you will need to use Project > New Custom Executable

--
Cameron Kerr
Telecommunications Teaching Fellow & SysAdmin
email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Bus Error (From: Federico <email@hidden>)
 >Re: Bus Error (From: Markus Hitter <email@hidden>)
 >Re: Bus Error (From: Federico <email@hidden>)
 >Re: Bus Error (From: Federico <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.