• 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
Crash in CFRunLoopWakeUp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash in CFRunLoopWakeUp


  • Subject: Crash in CFRunLoopWakeUp
  • From: Mark Allan <email@hidden>
  • Date: Thu, 3 Sep 2009 23:41:50 +0100

Hi all,

I've been battling with this intermittent crash for about two weeks now and can't figure it out for the life of me. I've got try/catch blocks around nearly all my code, and definitely around any code which runs in a separate thread, but it's not catching whatever causes this crash. Also, I'm not even convinced it's my threads causing the crash as this one happened while a modal sheet was being displayed, before any of my external threads got started.

I'm fairly sure it's not a leak or a double-free - I've tried running with NSZombieEnabled, NSDebugEnabled, Malloc Guard, run the Clang Static Analyser over it and it's not showing anything up.

If I set NSExceptionHandlingMask to 63 in the terminal before launching my app, I get the following lines appearing in the console when a crash would have happened, and the application keeps running. The problem is, I can't seem to catch the exception anywhere.

NSExceptionHandler has recorded the following exception:
NSUncaughtSystemExceptionException -- Uncaught system exception: signal 5
Stack trace: 0x94f340a9 0x95294e3b 0x94f33b11 0xc0f2a 0xc121e
0x911502bb 0xffffffff 0x932e2556 0x91115155 0x91115012



Here's the crash log I mentioned earlier. It's an intermittent crash and I'm going crazy trying to debug it. Can anyone offer me any insight at all please? Should I just burn an ADC support ticket and be done with it?


Many thanks for any help or suggestions you can give me.

Mark


Version: 2.0 (200) Code Type: PPC (Native) Parent Process: launchd [65]

Date/Time:       2009-08-27 11:32:25.003 -0700
OS Version:      Mac OS X 10.5.8 (9L30)
Report Version:  6
Anonymous UUID:

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000090d5c02c
Crashed Thread:  6

Thread 0:
0 libSystem.B.dylib 0x95ece1f8 mach_msg_trap + 8
1 libSystem.B.dylib 0x95ed511c mach_msg + 56
2 com.apple.CoreFoundation 0x90d61394 CFRunLoopRunSpecific + 1812
3 com.apple.HIToolbox 0x938a3b14 RunCurrentEventLoopInMode + 264
4 com.apple.HIToolbox 0x938a3938 ReceiveNextEventCommon + 412
5 com.apple.HIToolbox 0x938ead04 IsUserStillTracking(MenuSelectData*, unsigned char*) + 472
6 com.apple.HIToolbox 0x938d47a0 TrackMenuCommon(MenuSelectData&, unsigned char*) + 3180
7 com.apple.HIToolbox 0x938cf854 MenuSelectCore(MenuData*, Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) + 228
8 com.apple.HIToolbox 0x938cf3bc _HandleMenuSelection2 + 388
9 com.apple.AppKit 0x93147c54 _NSHandleCarbonMenuEvent + 188
10 com.apple.AppKit 0x930bd728 _DPSNextEvent + 1848
11 com.apple.AppKit 0x930bcbfc -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 112
12 com.apple.AppKit 0x930b689c -[NSApplication run] + 744
13 com.apple.AppKit 0x93087298 NSApplicationMain + 440
14 uk.co.markallan.myapp 0x000027f8 _start + 756
15 uk.co.markallan.myapp 0x000024fc start + 44


Thread 1:
0 libSystem.B.dylib 0x95ece278 semaphore_timedwait_signal_trap + 8
1 libSystem.B.dylib 0x95f11368 _pthread_cond_wait + 1320
2 com.apple.Foundation 0x9037f1a0 -[NSCondition waitUntilDate:] + 384
3 com.apple.Foundation 0x9037efcc -[NSConditionLock lockWhenCondition:beforeDate:] + 268
4 com.apple.AppKit 0x931189cc -[NSUIHeartBeat _heartBeatThread:] + 664
5 com.apple.Foundation 0x90341d84 __NSThread__main__ + 1004
6 libSystem.B.dylib 0x95f100c4 _pthread_start + 316


Thread 2:
0 libSystem.B.dylib 0x95ece1f8 mach_msg_trap + 8
1 libSystem.B.dylib 0x95ed511c mach_msg + 56
2 com.apple.CoreFoundation 0x90d61394 CFRunLoopRunSpecific + 1812
3 com.apple.Foundation 0x90398d50 + [NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 280
4 com.apple.Foundation 0x90341d84 __NSThread__main__ + 1004
5 libSystem.B.dylib 0x95f100c4 _pthread_start + 316


Thread 3:
0 libSystem.B.dylib 0x95ece1f8 mach_msg_trap + 8
1 libSystem.B.dylib 0x95ed511c mach_msg + 56
2 com.apple.CoreFoundation 0x90d61394 CFRunLoopRunSpecific + 1812
3 com.apple.CFNetwork 0x94de63b0 CFURLCacheWorkerThread(void*) + 288
4 libSystem.B.dylib 0x95f100c4 _pthread_start + 316


Thread 4:
0   libSystem.B.dylib             	0x95f31d74 select$DARWIN_EXTSN + 12
1   com.apple.CoreFoundation      	0x90d6c808 __CFSocketManager + 764

Thread 5:
0 libSystem.B.dylib 0x95f0f904 kevent + 12
1 com.apple.CoreFoundation 0x90d38a48 __monitor_file_descriptor__ + 240


Thread 6 Crashed:
0   com.apple.CoreFoundation      	0x90d5c02c CFRunLoopWakeUp + 156
1   com.apple.Foundation          	0x903ad0e4 _backgroundActivity + 440

Thread 6 crashed with PPC Thread State 32:
srr0: 0x90d5c02c srr1: 0x0002d030 dar: 0xf0299ee4 dsisr: 0x42000000
r0: 0x10000004 r1: 0xf0299d50 r2: 0x00000018 r3: 0x10000003
r4: 0x00000011 r5: 0x00000018 r6: 0x00000000 r7: 0x00000000
r8: 0x00000000 r9: 0x00000000 r10: 0x00000000 r11: 0xa098568c
r12: 0x95ece1f0 r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19: 0x00000000
r20: 0x00000000 r21: 0x00000000 r22: 0x00000000 r23: 0x00000000
r24: 0x00000000 r25: 0xa097ff98 r26: 0x00007f0b r27: 0x00000001
r28: 0xf0299df8 r29: 0x000001fe r30: 0x001b4cd0 r31: 0x90d5bf98
cr: 0x24000004 xer: 0x00000000 lr: 0x90d5c008 ctr: 0x95ece1f0
vrsave: 0x00000000


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Crash in CFRunLoopWakeUp
      • From: Greg Parker <email@hidden>
  • Prev by Date: Re: NSBundle from an URL.
  • Next by Date: Re: NSBundle from an URL.
  • Previous by thread: Re: NSBundle from an URL.
  • Next by thread: Re: Crash in CFRunLoopWakeUp
  • Index(es):
    • Date
    • Thread