iPhone 上无法解释的分段错误
在设备中运行我们的应用程序时,我遇到了这个非常令人不安的问题。调试方案一切顺利,但使用分发配置文件(带有用于代码签名的 AdHoc 证书的配置文件)应用程序崩溃,并且我在设备登录中遇到的唯一错误是:
Tue Oct 4 10:49:44 unknown com.apple.debugserver-48[670] <Warning>: 21 [029e/0803]: RNBRunLoopLaunchInferior DNBProcessLaunch() returned error: 'DRHT'
Tue Oct 4 10:49:44 unknown com.apple.debugserver-48[670] <Warning>: error: failed to launch process (null): failed to get the task for process 672
Tue Oct 4 10:49:44 unknown com.apple.debugserver-48[670] <Warning>: 22 [029e/1403]: error: ::read ( 4, 0x2fee59f0, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Tue Oct 4 10:49:44 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.oos.kraken[0x3f17]) Bug: launchd_core_logic.c:3252 (24226):3
Tue Oct 4 10:49:44 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.oos.kraken[0x3f17]) Bug: launchd_core_logic.c:2681 (24226):10
Tue Oct 4 10:49:44 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.oos.kraken[0x3f17]) Working around 5020256. Assuming the job crashed.
Tue Oct 4 10:49:44 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.oos.kraken[0x3f17]) Job appears to have crashed: Segmentation fault
Tue Oct 4 10:49:44 unknown SpringBoard[24] <Warning>: Application '11870.com' exited abnormally with signal 11: Segmentation fault
我真的迷路了,不知道什么可能正在发生。 “似乎崩溃了”是什么意思?它不知道应用程序何时出现问题吗?
以前有人遇到过这个问题吗?我正在使用 xcode 4,设备是 iphone 3G,尽管它也发生在 iphone 4 中。
PD:我尝试过 Zombies,但没有成功。
I'm having this very disturbing problem when running our app in the device. Everything goes fine with the Debug scheme but with the Distribution profile (the one with the AdHoc certificate for code signing) the app crashes and the only error I get in the device's login this one:
Tue Oct 4 10:49:44 unknown com.apple.debugserver-48[670] <Warning>: 21 [029e/0803]: RNBRunLoopLaunchInferior DNBProcessLaunch() returned error: 'DRHT'
Tue Oct 4 10:49:44 unknown com.apple.debugserver-48[670] <Warning>: error: failed to launch process (null): failed to get the task for process 672
Tue Oct 4 10:49:44 unknown com.apple.debugserver-48[670] <Warning>: 22 [029e/1403]: error: ::read ( 4, 0x2fee59f0, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Tue Oct 4 10:49:44 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.oos.kraken[0x3f17]) Bug: launchd_core_logic.c:3252 (24226):3
Tue Oct 4 10:49:44 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.oos.kraken[0x3f17]) Bug: launchd_core_logic.c:2681 (24226):10
Tue Oct 4 10:49:44 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.oos.kraken[0x3f17]) Working around 5020256. Assuming the job crashed.
Tue Oct 4 10:49:44 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.oos.kraken[0x3f17]) Job appears to have crashed: Segmentation fault
Tue Oct 4 10:49:44 unknown SpringBoard[24] <Warning>: Application '11870.com' exited abnormally with signal 11: Segmentation fault
I'm really lost and have no idea of what can be happening. What does it mean by " APPEARS to have crashed" doesn't it know when there is a problem with an app?
Anybody came across this problem before? I am using xcode 4 and the device is an iphone 3G although it also happens in an iphone 4.
PD: I've tried Zombies with no luck.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
最后,解决办法是重新启动 iPhone,因为一些数据已损坏。重新启动后一切正常。
应该想到经典的“你尝试过将其关闭然后再打开吗?”
In the end, the solution was to restart the iPhone, since some data got corrupted. After the reboot everything was working normally.
Should have thought of the classic "Have you tried turning it off and on again?"
在运行 5.1.1 的 iPad 1 上安装临时版本时,我遇到了类似的分段错误。事实证明,您无法在包含 Arm64 的 iOS6 之前的任何版本上安装临时版本。我从“有效架构”中删除了 Arm64,重新构建,然后临时构建可以在 iPad 1 上正常安装。
I had a similar segmentation fault when installing an ad-hoc build onto an iPad 1 running 5.1.1. Turns out you can't install an ad-hoc build on anything before iOS6 that includes Arm64. I removed Arm64 from "Valid Architectures", rebuilt, and the ad-hoc build then installs fine on the iPad 1.
我遇到了类似的看似随机的崩溃,尤其是。在 3G 测试设备上。该应用程序在调试模式下工作得很好,但是崩溃开始出现在临时构建中。
在我的例子中,“解决方案”是禁用发布/临时构建的大多数(如果不是全部)编译器优化。
I ran into similar seemingly random crashes, esp. on an 3G test device. The app worked just fine in debug mode, however the crashes started to appear in adhoc builds.
The "solution" in my case was to disable most, if not all, compiler optimizations for the release/adhoc builds.