EXC_BAD_ACCESS in Xcode 4.3.1 when running tests in iOS 5 simulator
| Originator: | stig | ||
| Number: | rdar://11033943 | Date Originated: | 12-Mar-2012 11:29 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Version 4.3 (4E109) |
| Classification: | Reproducible: | Always |
12-Mar-2012 11:29 PM Stig Brautaset:
Summary:
Tests, even the ones created by default for a newly created iOS static library, fail to run in iOS 5 simulator on Xcode 4.3.1. (They _do_ run correctly in iOS 4.3 simulator.)
Steps to Reproduce:
1. Create new iOS Static library named "Foo"
2. Include unit tests
3. Without changing any of the code, run tests in iPhone (or iPad) simulator
Expected Results:
Error saying "Unit tests are not implemented yet in FooTests"
Actual Results:
Error saying EXC_BAD_ACCESS
Stack trace from lldb:
(lldb) bt
* thread #1: tid = 0x2107, 0x00000000 otest, stop reason = EXC_BAD_ACCESS (code=2, address=0x0)
frame #0: 0x00000000 otest
frame #1: 0x9a3b5ef3 libsystem_kernel.dylib`mig_get_reply_port + 12
frame #2: 0x9a3af70c libsystem_kernel.dylib`mach_ports_lookup + 33
frame #3: 0x0103a124 libxpc_sim.dylib`_xpc_domain_init_local + 59
frame #4: 0x01037eb1 libxpc_sim.dylib`_libxpc_initializer + 46
frame #5: 0x8fe94203 dyld`ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 251
frame #6: 0x8fe93d68 dyld`ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 64
frame #7: 0x8fe912c8 dyld`ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 256
frame #8: 0x8fe9125e dyld`ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 150
frame #9: 0x8fe9125e dyld`ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 150
frame #10: 0x8fe9125e dyld`ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 150
frame #11: 0x8fe9125e dyld`ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 150
frame #12: 0x8fe92268 dyld`ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 62
frame #13: 0x8fe86664 dyld`dyld::initializeMainExecutable() + 166
frame #14: 0x8fe8af99 dyld`dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**) + 2238
frame #15: 0x8fe842ef dyld`dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*) + 637
(lldb)
Regression:
Yes. The tests _do_ run correctly in the iOS 4.3 simulator.
Notes:
Errors in Console:
12/03/2012 23:27:52.139 com.apple.debugserver-170: 1 +0.000000 sec [4fbf/0303]: error: ::ptrace (request = PT_THUPDATE, pid = 0x4fc0, tid = 0x2107, signal = 0) err = Resource busy (0x00000010)
12/03/2012 23:27:52.141 com.apple.debugserver-170: 2 +0.001920 sec [4fbf/0303]: error: ::task_info ( target_task = 0x1c03, flavor = TASK_BASIC_INFO, task_info_out => 0x7fff6e9d3070, task_info_outCnt => 10 ) err = (ipc/send) invalid destination port (0x10000003)
12/03/2012 23:27:52.149 Xcode: [MT] DVTAssertions: Warning in /SourceCache/IDEKit/IDEKit-1202/Framework/Classes/Editor/IDEEditorContext.m:600
Details: Lost history for x-xcode-disassembly://stack_frame?processID=20416&threadID=1&frameID=0
Object: <IDEEditorContext: 0x4024ac2a0>
Method: -_greatestDocumentAncestorWasForgotten
Thread: <NSThread: 0x40010a220>{name = (null), num = 1}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
12/03/2012 23:27:52.351 Xcode: Error launching simulated application: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "Unknown error." UserInfo=0x403b602c0 {NSLocalizedDescription=Unknown error., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}
12/03/2012 23:27:52.892 com.apple.debugserver-170: debugserver-170 for x86_64.
12/03/2012 23:27:52.893 com.apple.debugserver-170: Listening to port 18518...
12/03/2012 23:27:52.989 com.apple.debugserver-170: Got a connection, waiting for process information for launching or attaching.
12/03/2012 23:27:53.020 com.apple.debugserver-170: Got a connection, waiting for debugger instructions.
12/03/2012 23:27:53.614 Xcode: Bookmark failed to issue extension for item (depth=1): No such file or directory
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!