• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
libobjc.A.dylib crashes in iPhoneSimulator CoreData; only with Xcode 3.2.1.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libobjc.A.dylib crashes in iPhoneSimulator CoreData; only with Xcode 3.2.1.


  • Subject: libobjc.A.dylib crashes in iPhoneSimulator CoreData; only with Xcode 3.2.1.
  • From: Erwin Hogeweg <email@hidden>
  • Date: Fri, 30 Oct 2009 21:57:23 -0400

Hi,

I am stuck with a CoreData/Unit Test  issue.  I have a test that covers a piece of code that uses the CoreData lib. The application runs just fine, both in the simulator and in a real device, and the test also runs fine in Xcode 3.1. In Xcode 3.2.1 however, the test crashes every single time, giving me the Problem Report screen, with the "otest quit unexpectedly" header.

The trace below is from the following code snippet: 

-(void)commit{
...
if (![[self managedObjectContext] save:&error]) {
...
}

There are more NSManagedObject calls that produce a similar crash though, while other calls work just fine. I have tried about everything, including verified that that managedObjectContext reference is valid. My bag of ticks is empty now...

Hope somebody can provide some insight.

Any help is highly appreciated.

Regards,

Erwin

---------- Problem Report ----------
Process:         otest [1016]
Path:            /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/Developer/usr/bin/otest
Identifier:      otest
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  bash [1011]

Date/Time:       2009-10-30 21:23:24.268 -0400
OS Version:      Mac OS X 10.6.1 (10B504)
Report Version:  6

Interval Since Last Report:          63360 sec
Crashes Since Last Report:           61
Per-App Crashes Since Last Report:   59
Anonymous UUID:                      4804DD71-EE4E-491B-A0D5-CCD5E39E4454

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000000000002d
Crashed Thread:  0

Application Specific Information:
objc_msgSend() selector name: release


Thread 0 Crashed:
0   libobjc.A.dylib               0x93245917 objc_msgSend + 23
1   CoreData                       0x01d83d92 -[_PFManagedObjectReferenceQueue _processReferenceQueue:] + 1954
2   CoreData                       0x01d8a3d5 -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 501
3   CoreData                       0x01d9f428 -[NSManagedObjectContext save:] + 120
4   Unit Tests                     0x00734c71 -[DAL commit] + 235 (DAL.m:44)
5   Unit Tests                     0x00707b72 -[PersonViewControllerTest testDuplicateEntries] + 195 (PersonViewControllerTest.m:152)
6   CoreFoundation                 0x3024a10d __invoking___ + 29
7   CoreFoundation                 0x30249ff8 -[NSInvocation invoke] + 136
8   ch.sente.SenTestingKit         0x20103d66 -[SenTestCase invokeTest] + 86
9   ch.sente.SenTestingKit         0x20103e8c -[SenTestCase performTest:] + 220
10  ch.sente.SenTestingKit         0x20103642 -[SenTest run] + 82
11  ch.sente.SenTestingKit         0x20107024 -[SenTestSuite performTest:] + 100
12  ch.sente.SenTestingKit         0x20103642 -[SenTest run] + 82
13  ch.sente.SenTestingKit         0x20107024 -[SenTestSuite performTest:] + 100
14  ch.sente.SenTestingKit         0x20103642 -[SenTest run] + 82
15  ch.sente.SenTestingKit         0x20105bfe +[SenTestProbe runTests:] + 174
16  otest                         0x000025c3 0x1000 + 5571
17  otest                         0x0000289d 0x1000 + 6301
18  otest                         0x00002296 0x1000 + 4758
19  otest                         0x00002222 0x1000 + 4642

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

This email sent to email@hidden

  • Prev by Date: Re: How to convert project from PPC to Universal Binary?
  • Next by Date: Re: Debugging memory corruption? (C++)
  • Previous by thread: Re: How to convert project from PPC to Universal Binary?
  • Next by thread: Need help with a very scary error
  • Index(es):
    • Date
    • Thread