So I programming an iOS game and I'm using arc4random_uniform for choosing a random powerup.
On the Sim, it works fine, but on my phone it throws this error (from the syslog):
Nov 26 13:44:26 iPhone ----[2184]: placePowerupCalled
Nov 26 13:44:26 iPhone UIKitApplication:com.yourcompany.-----[0x1f08][2184]: dyld: lazy symbol binding failed: Symbol not found: _arc4random_uniform
Nov 26 13:44:26 iPhone UIKitApplication:com.yourcompany.-----[0x1f08][2184]: Referenced from: /Applications/------.app/-----
Nov 26 13:44:26 iPhone UIKitApplication:com.yourcompany.------[0x1f08][2184]: Expected in: /usr/lib/libSystem.B.dylib
Nov 26 13:44:26 iPhone UIKitApplication:com.yourcompany.------[0x1f08][2184]: dyld: Symbol not found: _arc4random_uniform
Nov 26 13:44:26 iPhone UIKitApplication:com.yourcompany.-----[0x1f08][2184]: Referenced from: /Applications/------.app/-------
Nov 26 13:44:26 iPhone UIKitApplication:com.yourcompany.-----[0x1f08][2184]: Expected in: /usr/lib/libSystem.B.dylib
Nov 26 13:44:27 iPhone ReportCrash[2185]: Formulating crash report for process -----[2184]
Nov 26 13:44:27 iPhone com.apple.launchd[1] (UIKitApplication:com.yourcompany.-----[0x1f08][2184]): (UIKitApplication:com.yourcompany.-----[0x1f08]) Job appears to have crashed: Trace/BPT trap
Nov 26 13:44:27 iPhone SpringBoard[2161]: Application '-----' exited abnormally with signal 5: Trace/BPT trap
I'm not quite sure what the problem is. I've even included the header file arc4random should come from (#include "stdlib.h"), but that hasn't worked.
Anyone have any ideas? Thanks !:)
EDIT: I tried linking binary with the "libSystem.b.dylib" library, but that didn't work either and it's still crashing from the same error.
arc4_uniform function was added in iOS 4.3 and won't run on lower versions. Looks like you run simulator on 4.3 or higher but your device has lower iOS version.
If you plan to support your app on versions lower than 4.3, try using this instead:
arc4random() % upperBoundExclusive
It might be not as precisely random as arc4_uniform, but will work.
arc4random_uniform is not available below iOS 4.3. Luckily iOS will bind this symbol at runtime and assign it to null if it's not available (hence your "lazy symbol binding" errors).
So the best way to use arc4random_uniform is to check if it's available first, like this:
#include <stdlib.h>
...
int r = 0;
if (arc4random_uniform != NULL)
r = arc4random_uniform (100);
else
r = (arc4random() % 100);
Related
I successfully got a Today widget working in my iOS app. It works great when running the widget on the simulator or running on a device from Xcode. But it doesn't update if I install the app on a device and then run the widget (not from Xcode).
Has anyone else faced this issue? Is there a fix to this or is this a known bug? Any workarounds so I can have a bunch of beta testers check the app using Testflight and get the widget to work?
Using Xcode version 6.1.
Adding log statements tells me that all the correct methods are called. But after that a crash log is generated and the logs are very cryptic. This is what the console says
Dec 1 19:23:06 MyDevice ReportCrash[3592] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
Dec 1 19:23:06 MyDevice ReportCrash[3592] <Notice>: ReportCrash acting against PID 3591
Dec 1 19:23:06 MyDevice ReportCrash[3592] <Notice>: Formulating crash report for process MyTest[3591]
Dec 1 19:23:06 MyDevice SpringBoard[48] <Warning>: plugin com.testsaga.MyTest-Today interrupted
And a device log generated during this time lists this statement (specific to my widget - there are other processes in there as well)
Processes Name | <UUID> | CPU Time| rpages| purgeable| recent_max| lifetime_max| fds | [reason] | (state)
MyTest <84554d9818fe3e1fafa848c3fe6a34d5> 1.459 4132 0 - 8076 50 [per-process-limit] (frontmost)
Any insights? Thanks.
**I tried the answer here but it doesn't work for me.
We have a mongodb replica set, on of the member crashed with a segmentation fault. What could be causing this issue? We are running version 2.2.2.
Thanks. Here is the log from the crash.
Mon Sep 2 03:37:26 Invalid access at address: 0xfffffd7d00680038 from thread: conn2014070
Mon Sep 2 03:37:26 Got signal: 11 (Segmentation Fault).
Mon Sep 2 03:37:26 Backtrace:
0xb331b8 0x7bd48b 0x7bd695 0xfffffd7fff1d7666 0xfffffd7fff1ca35c 0x9ff980 0x873f13 0x873fcb 0x981331 0x982af2 0x92d2da 0x93183b 0x7cead0 0xb2539a 0xfffffd7ff95f364c 0xfffffd7fff1d72d4 0xfffffd7fff1d75a0
/opt/local/bin/mongod'_ZN5mongo15printStackTraceERSo+0x28 [0xb331b8]
/opt/local/bin/mongod'_ZN5mongo10abruptQuitEi+0x11b [0x7bd48b]
/opt/local/bin/mongod'_ZN5mongo24abruptQuitWithAddrSignalEiP7siginfoPv+0x125 [0x7bd695]
/lib/amd64/libc.so.1'__sighndlr+0x6 [0xfffffd7fff1d7666]
/lib/amd64/libc.so.1'call_user_handler+0x2a4 [0xfffffd7fff1ca35c]
/opt/local/bin/mongod'_ZNK5mongo6Record5touchEb+0x0 [0x9ff980]
/opt/local/bin/mongod'_ZN5mongo12ClientCursor5yieldEiPNS_6RecordE+0x63 [0x873f13]
/opt/local/bin/mongod'_ZN5mongo12ClientCursor14yieldSometimesENS0_11RecordNeedsEPb+0x6b [0x873fcb]
/opt/local/bin/mongod'_ZN5mongo14_updateObjectsEbPKcRKNS_7BSONObjES4_bbbRNS_7OpDebugEPNS_11RemoveSaverEbRKNS_24QueryPlanSelectionPolicyEb+0x9a1 [0x981331]
/opt/local/bin/mongod'_ZN5mongo13updateObjectsEPKcRKNS_7BSONObjES4_bbbRNS_7OpDebugEbRKNS_24QueryPlanSelectionPolicyE+0xa2 [0x982af2]
/opt/local/bin/mongod'_ZN5mongo14receivedUpdateERNS_7MessageERNS_5CurOpE+0x27a [0x92d2da]
/opt/local/bin/mongod'_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xe9b [0x93183b]
/opt/local/bin/mongod'_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x90 [0x7cead0]
/opt/local/bin/mongod'_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x32a [0xb2539a]
/opt/local/lib/libboost_thread.so.1.49.0'thread_proxy+0x6c [0xfffffd7ff95f364c] /lib/amd64/libc.so.1'_thrp_setup+0xbc [0xfffffd7fff1d72d4]
/lib/amd64/libc.so.1'_lwp_start+0x0 [0xfffffd7fff1d75a0]
Additionally I am seeing some assertion failures before the crash, I am not sure whether they are related. Otherwise nothing else out of the ordinary as far as I can see.
Wed Sep 4 02:19:04 [conn988803] cratefm Assertion failure !e.eoo() src/mongo/db/../bson/bsonobjbuilder.h 131
0xb331b8 0xb01e70 0x7cbe04 0x88e7ec 0x8b5f18 0x8b6b66 0x8b714a 0x978044 0x97ab32 0x931065 0x7cead0 0xb2539a 0xfffffd7fdd1a364c 0xfffffd7fff1d72d4 0xfffffd7fff1d75a0
/opt/local/bin/mongod'_ZN5mongo15printStackTraceERSo+0x28 [0xb331b8]
/opt/local/bin/mongod'_ZN5mongo12verifyFailedEPKcS1_j+0xc0 [0xb01e70]
/opt/local/bin/mongod'0x3cbe04 [0x7cbe04]
/opt/local/bin/mongod'_ZN5mongo16CmdFindAndModify3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x65c [0x88e7ec]
/opt/local/bin/mongod'_ZN5mongo12_execCommandEPNS_7CommandERKSsRNS_7BSONObjEiRNS_14BSONObjBuilderEb+0x48 [0x8b5f18]
/opt/local/bin/mongod'_ZN5mongo11execCommandEPNS_7CommandERNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0xa26 [0x8b6b66]
/opt/local/bin/mongod'_ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x37a [0x8b714a]
/opt/local/bin/mongod'_ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x34 [0x978044]
/opt/local/bin/mongod'_ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1_+0x6c2 [0x97ab32]
/opt/local/bin/mongod'_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x6c5 [0x931065]
/opt/local/bin/mongod'_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x90 [0x7cead0]
/opt/local/bin/mongod'_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x32a [0xb2539a]
/opt/local/lib/libboost_thread.so.1.49.0'thread_proxy+0x6c [0xfffffd7fdd1a364c]
/lib/amd64/libc.so.1'_thrp_setup+0xbc [0xfffffd7fff1d72d4]
/lib/amd64/libc.so.1'_lwp_start+0x0 [0xfffffd7fff1d75a0]
Make sure your client version >= server version.
Check out https://jira.mongodb.org/browse/SERVER-8105
It was a bug from the 2.6 version when updating arrays on documents with more than 128 BSON elements:
Here is the issue
As they say, it's corrected since the 2.6.1 version, so i encourage you to upgrade as i did, everything works great for me now !
I have released two versions of my App successfully
But after third version of app is released in App Store,when i downloaded from Appstore The App is getting Crashed :
When i try to launch app it is getting crashed immediately, and no crash reports were generated in Xcode Organizer.
The Same app is Working fine in IPAD/IPHONE SIMULATORS 5.0 and 4.1 versions
and also working fine when tested in IPHONE and IPAD devices with IOS 5.1.1 installed(run through XCODE).
No Major changes are given other than some image changes and Animation changes which are working fine when locally tested.
Please find below logs, please help to resolve this issue.
Jul 5 12:16:01 unknown fairplayd.N90[41] : libMobileGestalt computeUniqueDeviceID: total time for bb to return imei: 0 Jul 5
12:16:01 unknown SpringBoard[52] : Unable to obtain a task
name port right for pid 225: (os/kern) failure Jul 5 12:16:01 unknown
com.apple.launchd[1] :
(UIKitApplication:com.myCompany.myApp[0xdaa7]) Exited: Killed: 9 Jul
5 12:16:01 unknown com.apple.launchd[1] :
(UIKitApplication:com.myCompany.myApp[0xdaa7]) Throttling respawn:
Will start in 2147483647 seconds Jul 5 12:16:01 unknown
SpringBoard[52] : Application 'myApp' exited abnormally with
signal 9: Killed: 9 Jul 5 12:16:02 unknown kernel[0] :
AppleFairplayTextCrypterSession::fairplayOpen() failed, error -42110
Actually, this is not your fault. The App Store(s) has been having trouble as of late because it is serving corrupted binaries to consumers. Contact apple through iTunes connect for resolution, or wait a few days and release an update. To all developers reading this with pending application updates:
Wait, please wait!
Other symptoms of this include:
The app crashes immediately on launch (not even a splash screen shows, just black->crash).
Affected consumers are spread across many regions (not localized), but some are unaffected.
Your app/update has been approved fairly recently.
Mac apps will show "[App] is damaged and can't be opened. Delete [App] and download it again from the App Store."
The console will print: AppleFairplayTextCrypterSession::fairplayOopen() failed, error -42110
The only fix is to delete the app and reinstall (and basically pray for a working copy). Be assured, you are not the only one! Many major apps from huge companies are being affected by this issue (Angry Birds, NOOOOO).
Corroborated by:
http://www.marco.org/2012/07/04/app-store-corrupt-binaries
http://www.appleinsider.com/articles/12/07/04/developers_suspect_app_store_mix_up_led_to_corrupt_binaries.html
http://www.imore.com/2012/07/04/newly-installed-updated-apps-reportedly-crashing-launch-due-corrupt-app-store-binary-bug/
http://www.forbes.com/sites/anthonykosner/2012/07/05/apple-app-store-encryption-glitch-causes-many-new-app-updates-to-crash-see-list/
In your Locally tested Application Please Remove it in your Device
.After u update or download your updated app in App store
Trying to fix a bug on iOS 4 but when I debug it crashes with these errors:
SDK is installed in seperate directory as I need to deug 3.1.3 as well
Developer_Xcode3_2_3_iOS_SDK_4_0_1
Device is running 4.0.1
Any ideas? Cheers
[Session started at 2010-07-27 14:26:45 +0100.]
Undefined command: "Developer". Try "help".
Undefined command: "Developer". Try "help".
Undefined command: "Developer". Try "help".
Undefined command: "Developer". Try "help".
GNU gdb 6.3.50-20050815 (Apple version gdb-1470) (Thu May 27 05:54:06 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".Developer_Xcode3_2_3_iOS_SDK_4_0_1/Platforms/iPhoneOS.platform/DeviceSupport/4.0.1/Symbols/usr" /System "/Developer_Xcode3_2_3_iOS_SDK_4_0_1
Developer_Xcode3_2_3_iOS_SDK_4_0_1/Platforms/iPhoneOS.platform/DeviceSupport/4.0.1/Symbols/System" /private/var/mobile/Applications/50A5673A-2D68-4EA2-B033-2CA40C8DFC79 /Users/clearbrian/Documents/Development/IPhoneDevelopment/029.LondonBusMaps/021.Bus.v2a.RedesignWithRoutes_iOs4Recompile/Bus/build/Debug-iphoneos /var/mobile/Applications/50A5673A-2D68-4EA2-B033-2CA40C8DFC79 /Users/clearbrian/Documents/Development/IPhoneDevelopment/029.LondonBusMaps/021.Bus.v2a.RedesignWithRoutes_iOs4Recompile/Bus/build/Debug-iphoneos /Developer "/Developer_Xcode3_2_3_iOS_SDK_4_0_1
Loading program into debugger…
Undefined command: "Developer". Try "help".
Undefined command: "Developer". Try "help".
Developer_Xcode3_2_3_iOS_SDK_4_0_1/Platforms/iPhoneOS.platform/DeviceSupport/4.0.1/Symbols/Developer"
Undefined command: "Developer". Try "help".
Undefined command: "Developer". Try "help".
Developer_Xcode3_2_3_iOS_SDK_4_0_1/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin
Developer_Xcode3_2_3_iOS_SDK_4_0_1/Library/PrivateFrameworks/DevToolsInterface.framework/Resources/Xcode SSHPassKey
tty /dev/ttys001
warning: Unable to read symbols from "dyld" (prefix __dyld_) (not yet mapped into memory).
warning: Unable to read symbols from "libxml2.2.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "Foundation" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/UIKit.framework/UIKit" (file not found).
warning: Unable to read symbols from "UIKit" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics" (file not found).
warning: Unable to read symbols from "CoreGraphics" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/CFNetwork.framework/CFNetwork" (file not found).
warning: Unable to read symbols from "CFNetwork" (not yet mapped into memory).
warning: Unable to read symbols from "CoreLocation" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/MapKit.framework/MapKit" (file not found).
warning: Unable to read symbols from "MapKit" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/MessageUI.framework/MessageUI" (file not found).
warning: Unable to read symbols from "MessageUI" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices" (file not found).
warning: Unable to read symbols from "MobileCoreServices" (not yet mapped into memory).
warning: Unable to read symbols from "QuartzCore" (not yet mapped into memory).
warning: Unable to read symbols from "SystemConfiguration" (not yet mapped into memory).
warning: Unable to read symbols from "libsqlite3.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "libz.1.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "libgcc_s.1.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "libSystem.B.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "libobjc.A.dylib" (not yet mapped into memory).
warning: Unable to read symbols from "CoreFoundation" (not yet mapped into memory).
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-407-23
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
(gdb) run
Running…
[Switching to thread 11523]
[Switching to thread 11523]
gdb stack crawl at point of internal error:
0 gdb-arm-apple-darwin 0x0013117d internal_vproblem + 316
1 gdb-arm-apple-darwin 0x001313c1 internal_verror + 43
2 gdb-arm-apple-darwin 0x001313f6 align_down + 0
3 gdb-arm-apple-darwin 0x001825b1 macosx_solib_add + 959
4 gdb-arm-apple-darwin 0x00196394 remote_macosx_complete_create_or_attach + 225
5 gdb-arm-apple-darwin 0x00196a0c remote_macosx_create_inferior + 1083
6 gdb-arm-apple-darwin 0x0006f9ad run_command_1 + 660
7 gdb-arm-apple-darwin 0x0012f132 execute_command + 713
8 gdb-arm-apple-darwin 0x0001bf67 mi_execute_async_cli_command + 226
9 gdb-arm-apple-darwin 0x0001b584 captured_mi_execute_command + 371
10 gdb-arm-apple-darwin 0x0008546f catch_exception + 65
11 gdb-arm-apple-darwin 0x000188e2 mi_execute_command + 163
12 gdb-arm-apple-darwin 0x00018a87 mi_execute_command_wrapper + 50
13 gdb-arm-apple-darwin 0x0008ae51 handle_file_event + 349
14 gdb-arm-apple-darwin 0x0008a818 process_event + 131
/SourceCache/gdb/gdb-1470/src/gdb/macosx/macosx-nat-dyld.c:1547: internal-error: unrecognized shared library breakpoint
A problem internal to GDB has been detected,
further debugging may prove unreliable.
The Debugger has exited with status 1.The Debugger has exited with status 1.
Someone asked had I created symlinks
A few months ago when 3.0.1 came out I had problems getting it to work with XCode and found this help:
Topic : iPhone OS 3.0.1 does not work with xCode
http://discussions.apple.com/thread.jspa?threadID=2103502&tstart=0
So I ran this and it seemed to work.
ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1
The symbolic link no longer works so just wondering should I delete it.
Some notes on my installation layout
I have these installation directories:
Developer: 3.1.3 - works - app in AppStore
Developer3_2_Final:
Developer_4_0_Final_Xcode3_2_3:
Developer_Xcode3_2_3_iOS_SDK_4_0_1: This is the version that crashes
The only symbolic link I created was under /Developer
yet crash caused when I use Xcode in /Developer_Xcode3_2_3_iOS_SDK_4_0_1
My app was built in 3.1.3 using /Developer so am loath to remove it.
not a unix guru though am willing to dive in so any pointers gratefully received.
The /Developer_Xcode3_2_3_iOS_SDK_4_0_1 was installed yesterday and I ran the 3.1.3 against it and then debugger when running on device crashed.
So I have done nothing with any of these SDKs except create that symlink months ago and install SDKs above 3.1.3 in seperate directories till I was sure I could build against them.
I've encountered this weird behavior with my iPhone app. It runs fine on the device when being debugged with Xcode, but when it's run on the device when the device is not connected to my computer it crashes almost immediately. Needless to say, I find this a bit disconcerting since I'm not sure how to debug it.
Anyone have ideas on what's going on or how to debug this type of problem?
I looked in the crash report when I reconnect the device and get the following:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000070
Crashed Thread: 6
Thread 6 Crashed:
0 libobjc.A.dylib 0x300102ac 0x3000c000 + 17068
1 myapp 0x000033ba 0x1000 + 9146
2 myapp 0x0000adc8 0x1000 + 40392
3 Foundation 0x30553356 0x30501000 + 336726
4 Foundation 0x305025fe 0x30501000 + 5630
5 libSystem.B.dylib 0x31d6a6ea 0x31d46000 + 149226
and the console log has the following:
Sun Sep 27 19:59:50 unknown ReportCrash[455] <Notice>: Formulating crash report for process myapp[453]
Sun Sep 27 19:59:50 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.yourcompany.myapp[0x2fba]) Job appears to have crashed: Bus error
Sun Sep 27 19:59:50 unknown com.apple.mobile.lockdown[14] <Notice>: Could not receive size of message
Sun Sep 27 19:59:50 unknown lockdownd[14] <Error>: (0x834400) handle_connection: Could not receive internal message #2 from myapp Killing connection
Sun Sep 27 19:59:50 unknown SpringBoard[23] <Warning>: Application 'myapp' exited abnormally with signal 10: Bus error
Many thanks
You can always get to the line of your app where it crash. Open the terminal on the build folder and run this command:
atos -arch armv6 -o myapp.app/myapp 0x000033ba
and it will return the file and line where it was. It's somehow useful.
Just to generalize #seppo0010's answer and update it for 2011:
First off, in Xcode4, Device Logs (found in the Organizer window) will show you the thread, file, and line number of the crash, so atos may not even be necessary. The crashes can be sorted by Application, Type, and Date/Time. A typical crash would include something like the following:
Thread 1 name: Dispatch queue: someQueue
Thread 1 Crashed:
0 MyApp 0x00003e14 -[MyAppViewController someMethod:withParam1:andParam2:] (MyAppViewController.m:254)
But if you do decide to use atos, note the following:
Be sure that you change the -arch flag to match whatever architecture your code is running on. So, for my iPhone 4, I'd enter -arch armv7.
Xcode 4 places your build path in a different place, so be sure to check in Xcode > Prefs > Locations. The path to your actual build may look something like this: /Users/OldMcStopher/Library/Developer/Xcode/DerivedData/MyApp-someUglyString/Build/Products/Debug-iphoneos
The -o flag is looking for the actual binary and not just the myapp.app wrapper, so once in the Debug-iphoneos folder (or wherever your debug .app build lives), set the -o flag to MyApp.app/MyApp, like #seppo0010 properly stated.
The atos man page describes it as follows:
The atos command converts numeric addresses to their symbolic
equivalents. If full debug symbol information is available, for
example in a .app.dSYM sitting beside a .app, then the output of atos
will include file name and source line number information.
It can be found here:
http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/atos.1.html
(Or with man atos from the terminal.)