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

Crash in NSFileManager


  • Subject: Crash in NSFileManager
  • From: David <email@hidden>
  • Date: Sat, 8 Nov 2008 14:57:02 -0500

I'm trying to understand a crash log a customer sent me.
Some sections that seem of interest are included at the end of this note.

This is a universal application using GC on Leopard. If I'm reading it
correctly, it looks like the application was being run on a PowerPC
machine with Leopard.

My application is invoking NSFileManager copyPath:toPath:handler:
It is possible that the user picked some weird value for toPath but it
must exist because they picked it using NSOpenPanel.

How or why can this be causing a crash? Especially inside
NSFIleManager dealing with retain in a GC application?

Is this a Cocoa bug? Are there things I can do to prevent this crash?

Are there other things I should be looking at in the crash log to help
figure out what may have gone wrong?

Thanks


Code Type:       PPC (Native)
Parent Process:  launchd [119]

OS Version:      Mac OS X 10.5.5 (9F33)
Report Version:  6

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

Application Specific Information:
objc[8909]: garbage collection is ON

Thread 10 Crashed:
0   com.apple.CoreFoundation      	0x9069ebd0 __CFTypeCollectionRetain + 76
1   com.apple.CoreFoundation      	0x906709cc CFDictionaryAddValue + 684
2   com.apple.CoreFoundation      	0x90670f4c CFDictionaryCreate + 104
3   com.apple.Foundation          	0x921a2458 -[NSFileManager
_replicatePath:atPath:operation:fileMap:handler:] + 280
4   com.apple.Foundation          	0x921a2318 -[NSFileManager
copyPath:toPath:handler:] + 220
5   ...oadreachsoftware.archiveMac	0x00008318 -[RestoreController
copyFiles:] + 1212
6   com.apple.Foundation          	0x920ecb78 __NSThread__main__ + 1004
7   libSystem.B.dylib             	0x90e21658 _pthread_start + 316

Thread 10 crashed with PPC Thread State 32:
  srr0: 0x9069ebd0  srr1: 0x0200f030   dar: 0x00000005 dsisr: 0x40000000
    r0: 0xa0029174    r1: 0xf048fd00    r2: 0xa002eb8c    r3: 0xa0029174
    r4: 0x00000000    r5: 0x00000000    r6: 0x50a05000    r7: 0x50a05000
    r8: 0x50a05000    r9: 0x01000000   r10: 0x00000003   r11: 0xa0029fc0
   r12: 0x9069eb84   r13: 0x00000000   r14: 0x00000000   r15: 0x00000000
   r16: 0x010615c0   r17: 0x00000000   r18: 0x00000000   r19: 0x00000000
   r20: 0x013834d0   r21: 0x00000000   r22: 0x01020250   r23: 0x010fe9f0
   r24: 0x01020250   r25: 0xf048fe80   r26: 0xa0029174   r27: 0xa024e030
   r28: 0x00000000   r29: 0xa024e030   r30: 0x00000000   r31: 0x9069eb8c
    cr: 0x28002422   xer: 0x00000000    lr: 0x9069eb8c   ctr: 0x9069eb84
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 NSFileManager
      • From: "Adam R. Maxwell" <email@hidden>
    • Re: Crash in NSFileManager
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Idea on how to implement a concept...
  • Next by Date: Re: Crash in NSFileManager
  • Previous by thread: Re: Idea on how to implement a concept...
  • Next by thread: Re: Crash in NSFileManager
  • Index(es):
    • Date
    • Thread