FPC-compiled applications crash on iOS 5.1 when writing to stdout
Original Reporter info from Mantis: kanzels
-
Reporter name: Pavel Kanzelsberger
Original Reporter info from Mantis: kanzels
- Reporter name: Pavel Kanzelsberger
Description:
iOS application written in fps and linked in Xcode works fine when run from Xcode debugger. However when phone is restarted it is no longer working and crashing on startup.
Today I discovered what is different for app running on it's own and running from Xcode. When you connect your device to Mac and have Xcode running, it will create a temporary /Developer folder on your device and also redirect stdout/stderr:
Mar 8 10:39:46 iPhone-4 com.apple.launchd[1] &LtPos;Notice>: System: /Developer has appeared. launchd will redirect the stdout/stderr to the system log for all future job invocations.
However when you restart your device, this is no longer the case and fps app will crash right on startup. My wild guess right now is, something in RTL (related to stout) is trying to access non-existing location on the device and crashes...
Mantis conversion info:
- Mantis ID: 21440
- OS: iOS
- OS Build: 5.1
- Platform: Darwin
- Version: 2.6.0
- Monitored by: » Andru (Andru)