• 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
Re: Xcode 4.6 breaks ARC on Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 4.6 breaks ARC on Snow Leopard


  • Subject: Re: Xcode 4.6 breaks ARC on Snow Leopard
  • From: Michael Tsai <email@hidden>
  • Date: Tue, 29 Jan 2013 12:50:21 -0500

It only crashes on 10.6. Backtrace below.

--Michael

OS Version:      Mac OS X 10.6.8 (10K549)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   ???                           	000000000000000000 0 + 0
1   com.apple.CoreFoundation      	0x00007fff8967afd0 __CFXNotificationPost + 1008
2   com.apple.CoreFoundation      	0x00007fff89667548 _CFXNotificationPostNotification + 200
3   com.apple.Foundation          	0x00007fff843c7a36 -[NSNotificationCenter postNotificationName:object:userInfo:] + 101
4   com.apple.AppKit              	0x00007fff846b744a -[NSApplication _postDidFinishNotification] + 100
5   com.apple.AppKit              	0x00007fff846b737f -[NSApplication _sendFinishLaunchingNotification] + 66
6   com.apple.AppKit              	0x00007fff8478235d -[NSApplication(NSAppleEventHandling) _handleAEOpen:] + 219
7   com.apple.AppKit              	0x00007fff84781fd9 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 77
8   com.apple.Foundation          	0x00007fff843ff0d6 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 360
9   com.apple.Foundation          	0x00007fff843fef06 _NSAppleEventManagerGenericHandler + 114
10  com.apple.AE                  	0x00007fff8704d32b aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 162
11  com.apple.AE                  	0x00007fff8704d224 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 32
12  com.apple.AE                  	0x00007fff8704d12b aeProcessAppleEvent + 210
13  com.apple.HIToolbox           	0x00007fff87626619 AEProcessAppleEvent + 48
14  com.apple.AppKit              	0x00007fff84687095 _DPSNextEvent + 1191
15  com.apple.AppKit              	0x00007fff84686801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
16  com.apple.AppKit              	0x00007fff8464c68f -[NSApplication run] + 395
17  com.apple.AppKit              	0x00007fff846453b0 NSApplicationMain + 364
18  com.c-command.Test            	0x00000001000012bc start + 52

Thread 1:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib             	0x00007fff840bcc0a kevent + 10
1   libSystem.B.dylib             	0x00007fff840beadd _dispatch_mgr_invoke + 154
2   libSystem.B.dylib             	0x00007fff840be7b4 _dispatch_queue_invoke + 185
3   libSystem.B.dylib             	0x00007fff840be2de _dispatch_worker_thread2 + 252
4   libSystem.B.dylib             	0x00007fff840bdc08 _pthread_wqthread + 353
5   libSystem.B.dylib             	0x00007fff840bdaa5 start_wqthread + 13

Thread 2:
0   libSystem.B.dylib             	0x00007fff840bda2a __workq_kernreturn + 10
1   libSystem.B.dylib             	0x00007fff840bde3c _pthread_wqthread + 917
2   libSystem.B.dylib             	0x00007fff840bdaa5 start_wqthread + 13

Thread 3:
0   libSystem.B.dylib             	0x00007fff840bda2a __workq_kernreturn + 10
1   libSystem.B.dylib             	0x00007fff840bde3c _pthread_wqthread + 917
2   libSystem.B.dylib             	0x00007fff840bdaa5 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000001  rbx: 0x000000010040e9e0  rcx: 0x00007fffffe000c0  rdx: 0x00007fff711a3340
  rdi: 0x000000010012f760  rsi: 0x0000000101019a00  rbp: 0x00007fff5fbfef40  rsp: 0x00007fff5fbfeee8
   r8: 0x0000000000000000   r9: 0x000000010012f5a0  r10: 0x0000000000000001  r11: 0x0000000000000001
  r12: 0x0000000102e0f290  r13: 0x000000010012f660  r14: 0x0000000000000000  r15: 0x000000010011a100
  rip: 0x0000000000000000  rfl: 0x0000000000010206  cr2: 0x0000000000000000

On Jan 29, 2013, at 12:43 PM, Dave Zarzycki <email@hidden> wrote:

> Michael, Does the app crash on launch on just Snow Leopard systems, or on 10.7/10.8 systems as well? What is the backtrace of the crash?
>
> davez
>
> On Jan 29, 2013, at 8:29 AM, Michael Tsai <email@hidden> wrote:
>
>> It crashes using the standard Cocoa app stationary with ARC and deployment target set to 10.6:
>>
>> @implementation AppDelegate
>>
>> - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
>> {
>>   NSMutableArray *a = [NSMutableArray array];
>>   [a addObject:@"a"];
>>   NSLog(@"%@", a);
>> }
>>
>> @end
>>
>> --Michael
>>
>>
>> On Jan 29, 2013, at 11:13 AM, Dave Zarzycki <email@hidden> wrote:
>>
>>> Thomas — Have you reduced this to a test case? Can you please share the backtrace/crash-report? It would help a lot. Thanks! — DaveZ
>>>
>>>
>>> On Jan 29, 2013, at 8:02 AM, Thomas Clement <email@hidden> wrote:
>>>
>>>> Just so you know, Xcode 4.6 breaks ARC compatibility with Snow Leopard.
>>>> Built apps crash at launch unless compiler optimizations are turned off (-O0).
>>>>
>>>> :-(
>>>>
>>>> Thomas
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>


 _______________________________________________
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


  • Follow-Ups:
    • Re: Xcode 4.6 breaks ARC on Snow Leopard
      • From: Chris Lattner <email@hidden>
References: 
 >Xcode 4.6 breaks ARC on Snow Leopard (From: Thomas Clement <email@hidden>)
 >Re: Xcode 4.6 breaks ARC on Snow Leopard (From: Dave Zarzycki <email@hidden>)
 >Re: Xcode 4.6 breaks ARC on Snow Leopard (From: Michael Tsai <email@hidden>)
 >Re: Xcode 4.6 breaks ARC on Snow Leopard (From: Dave Zarzycki <email@hidden>)

  • Prev by Date: Re: Xcode 4.6 breaks ARC on Snow Leopard
  • Next by Date: XCode 4.5.2: Finding unavailable API using MAC_OS_X_MAX_ALLOWED and the 10.8 SDK'
  • Previous by thread: Re: Xcode 4.6 breaks ARC on Snow Leopard
  • Next by thread: Re: Xcode 4.6 breaks ARC on Snow Leopard
  • Index(es):
    • Date
    • Thread