• 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
App crashes on thread exit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

App crashes on thread exit


  • Subject: App crashes on thread exit
  • From: Fabio Genoese <email@hidden>
  • Date: Sat, 12 Oct 2002 16:20:54 +0200

Hey all,

I use a Unix tool in my Cocoa application. Since I wanted the GUI not to be blocked when calling the tool/handling output/returning output I put this stuff into a separate thread using 'detachNewThreadSelector:...'. All is fine, I get the correct output, store it in the datasource of my NSTableView and update the GUI in the AppKit thread with the NSThreadWillExitNotification. Then (!), on exititing the thread I get a crash ("...has exited due to signal 5 (SIGTRAP)."). The crash log from Apple System Profiler shows this:

Thread 2 Crashed:
#0 0x90148854 in CFRunLoopWakeUp
#1 0x9083183c in _waitForTermination
#2 0x90021428 in _pthread_body

What does that mean? I can go step by step through all code lines and the crash occurs either when I release my NSAutoreleasePool or unlock my NSLock (these are the last two lines of the thread). Any ideas?

Thanks in advance.

Fabio Genoese
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: App crashes on thread exit
      • From: Cameron Hayne <email@hidden>
  • Prev by Date: Re: Cocoa Books (was New to Cocoa)
  • Next by Date: Re: Cocoa Books (was New to Cocoa)
  • Previous by thread: Re: NSTableView cell's drawing backgrounds
  • Next by thread: Re: App crashes on thread exit
  • Index(es):
    • Date
    • Thread