Re: Mysterious threads & ObjectAlloc crashes
Re: Mysterious threads & ObjectAlloc crashes
- Subject: Re: Mysterious threads & ObjectAlloc crashes
- From: Brian Webster <email@hidden>
- Date: Mon, 21 Jan 2002 13:05:16 -0600
On Sunday, January 20, 2002, at 07:56 PM, cocoa-dev-
email@hidden wrote:
Puzzled by the appearance of the mysterious threads, I started a new
project with virtually no code and built and ran it. According to
Thread Viewer, it too spawned the two additional threads, but in this
case both survived to show up in gdb:
Mysterious Thread 1
#0 0x700343e8 in semaphore_wait_trap ()
#1 0x700342c8 in pthread_join ()
#2 0x001fc214 in ?? ()
#3 0x00000000 in ?? ()
warning: ppc_frame_chain_valid: stack pointer from 0x204fc0 to 0x13a8c0
grows upward; assuming invalid
Mysterious Thread 2
#0 0x7003f4c8 in semaphore_wait_signal_trap ()
#1 0x7003f2c8 in _pthread_cond_wait ()
#2 0x70250ab0 in TSWaitOnCondition ()
#3 0x702ae124 in MPRemoteCall ()
#4 0x001fc29c in ?? ()
#5 0x7002054c in _pthread_body ()
warning: ppc_frame_chain_valid: stack frame from 0x285eb0 to 0x702ae058
larger than 65536 bytes; assuming invalid
So my question is, is this normal? What are these threads doing?
Thinking back to an earlier incarnation of my app a few months ago, I
remember there always being only one (the main) thread in my app when I
checked in gdb, so surely these extra threads are anomalous... What
should I do about it?
Well, in a normal Cocoa app, I know that there is usually at
least one thread that gets created that shows up that deals with
updating throbbing buttons and progress indicator.
NSUIHeartBeat usually shows up in the stack trace somewhere. My
guess is that Mysterious Thread 1 is probably this thread. As
for the other thread, it looks like some sort of daemon waiting
for interprocess communication. Listening for Apple Events
perhaps? I dunno.
Anyway, I never did get to the cause of my similar problem, and
the only suggestion I got was to file a bug report on
ObjectAlloc.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster