PJThread register fails when I unplug/plugin head phones

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm not exactly sure how this thread register stuff works, it seems like it has something to do with it as play_thread_initialized does equal 1 which means pj_thread_is_registered is ether wrong or pj_thread_register has a problem. As I said, I have no idea how this stuff works so I can't really find the problem as easily as some of the people who have been contributing can.

On Nov 4, 2010, at 8:46 AM, Mr. Gecko wrote:

> I did that, and now I'm getting a different crash that still is "failed assertion `thread->signature1 != 0xDEAFBEEF || thread->signature2 != 0xDEADC0DE || (thread->thread == pthread_self())'" I'll try and debug this myself, but if you can figure it out before me, that'll be great.
> 
> Thread 0:  Dispatch queue: com.apple.main-thread
> 0   libSystem.B.dylib             	0x901a10fa mach_msg_trap + 10
> 1   libSystem.B.dylib             	0x901a1867 mach_msg + 68
> 2   com.apple.CoreFoundation      	0x97508faf __CFRunLoopRun + 2079
> 3   com.apple.CoreFoundation      	0x97508094 CFRunLoopRunSpecific + 452
> 4   com.apple.CoreFoundation      	0x97507ec1 CFRunLoopRunInMode + 97
> 5   com.apple.HIToolbox           	0x96cd8f9c RunCurrentEventLoopInMode + 392
> 6   com.apple.HIToolbox           	0x96cd8d51 ReceiveNextEventCommon + 354
> 7   com.apple.HIToolbox           	0x96cd8bd6 BlockUntilNextEventMatchingListInMode + 81
> 8   com.apple.AppKit              	0x91bc5a89 _DPSNextEvent + 847
> 9   com.apple.AppKit              	0x91bc52ca -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
> 10  com.apple.AppKit              	0x91b8755b -[NSApplication run] + 821
> 11  com.apple.AppKit              	0x91b7f5ed NSApplicationMain + 574
> 12  com.MrGeckosMedia.VoiceMac    	0x00002b17 _start + 209
> 13  com.MrGeckosMedia.VoiceMac    	0x00002a45 start + 41
> 
> Thread 1:
> 0   libSystem.B.dylib             	0x901c69d2 __workq_kernreturn + 10
> 1   libSystem.B.dylib             	0x901c6f68 _pthread_wqthread + 941
> 2   libSystem.B.dylib             	0x901c6b86 start_wqthread + 30
> 
> Thread 2:  Dispatch queue: com.apple.libdispatch-manager
> 0   libSystem.B.dylib             	0x901c7942 kevent + 10
> 1   libSystem.B.dylib             	0x901c805c _dispatch_mgr_invoke + 215
> 2   libSystem.B.dylib             	0x901c7519 _dispatch_queue_invoke + 163
> 3   libSystem.B.dylib             	0x901c72be _dispatch_worker_thread2 + 240
> 4   libSystem.B.dylib             	0x901c6d41 _pthread_wqthread + 390
> 5   libSystem.B.dylib             	0x901c6b86 start_wqthread + 30
> 
> Thread 3:
> 0   libSystem.B.dylib             	0x901a10fa mach_msg_trap + 10
> 1   libSystem.B.dylib             	0x901a1867 mach_msg + 68
> 2   com.apple.CoreFoundation      	0x97508faf __CFRunLoopRun + 2079
> 3   com.apple.CoreFoundation      	0x97508094 CFRunLoopRunSpecific + 452
> 4   com.apple.CoreFoundation      	0x97507ec1 CFRunLoopRunInMode + 97
> 5   com.apple.Foundation          	0x92fbc42c +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 329
> 6   com.apple.Foundation          	0x92f838d4 -[NSThread main] + 45
> 7   com.apple.Foundation          	0x92f83884 __NSThread__main__ + 1499
> 8   libSystem.B.dylib             	0x901ce81d _pthread_start + 345
> 9   libSystem.B.dylib             	0x901ce6a2 thread_start + 34
> 
> Thread 4:
> 0   libSystem.B.dylib             	0x901c69d2 __workq_kernreturn + 10
> 1   libSystem.B.dylib             	0x901c6f68 _pthread_wqthread + 941
> 2   libSystem.B.dylib             	0x901c6b86 start_wqthread + 30
> 
> Thread 5:
> 0   libSystem.B.dylib             	0x901dc8da select$DARWIN_EXTSN$NOCANCEL + 10
> 1   libSystem.B.dylib             	0x90274d67 select + 92
> 2   com.MrGeckosMedia.VoiceBase   	0x00088102 pj_sock_select + 161
> 3   com.MrGeckosMedia.VoiceBase   	0x00082c73 pj_ioqueue_poll + 408
> 4   com.MrGeckosMedia.VoiceBase   	0x000bade4 worker_proc + 52
> 5   com.MrGeckosMedia.VoiceBase   	0x00084001 thread_main + 153
> 6   libSystem.B.dylib             	0x901ce81d _pthread_start + 345
> 7   libSystem.B.dylib             	0x901ce6a2 thread_start + 34
> 
> Thread 6:
> 0   libSystem.B.dylib             	0x901dc8da select$DARWIN_EXTSN$NOCANCEL + 10
> 1   libSystem.B.dylib             	0x90274d67 select + 92
> 2   com.MrGeckosMedia.VoiceBase   	0x00088102 pj_sock_select + 161
> 3   com.MrGeckosMedia.VoiceBase   	0x00082c73 pj_ioqueue_poll + 408
> 4   com.MrGeckosMedia.VoiceBase   	0x00109caf pjsip_endpt_handle_events2 + 269
> 5   com.MrGeckosMedia.VoiceBase   	0x00157552 pjsua_handle_events + 80
> 6   com.MrGeckosMedia.VoiceBase   	0x00154fd5 worker_thread + 27
> 7   com.MrGeckosMedia.VoiceBase   	0x00084001 thread_main + 153
> 8   libSystem.B.dylib             	0x901ce81d _pthread_start + 345
> 9   libSystem.B.dylib             	0x901ce6a2 thread_start + 34
> 
> Thread 7:
> 0   libSystem.B.dylib             	0x901c0086 select$DARWIN_EXTSN + 10
> 1   com.apple.CoreFoundation      	0x9754880d __CFSocketManager + 1085
> 2   libSystem.B.dylib             	0x901ce81d _pthread_start + 345
> 3   libSystem.B.dylib             	0x901ce6a2 thread_start + 34
> 
> Thread 8:
> 0   com.MrGeckosMedia.VoiceBase   	0x001723d7 spectral_mul_accum + 297
> 1   com.MrGeckosMedia.VoiceBase   	0x00170832 speex_echo_cancellation + 1702
> 2   com.MrGeckosMedia.VoiceBase   	0x000b1512 speex_aec_cancel_echo + 190
> 3   com.MrGeckosMedia.VoiceBase   	0x000b8a0b pjmedia_echo_cancel + 54
> 4   com.MrGeckosMedia.VoiceBase   	0x000b8915 pjmedia_echo_capture + 132
> 5   com.MrGeckosMedia.VoiceBase   	0x000cc04b rec_cb + 93
> 6   com.MrGeckosMedia.VoiceBase   	0x000a6652 input_callback + 542
> 7   ...pple.audio.units.Components	0x7000bc3e AUGenericOutputEntry + 7751
> 8   com.apple.audio.CoreAudio     	0x9055c454 HP_IOProc::Call(AudioTimeStamp const&, AudioTimeStamp const&, AudioBufferList const*, AudioTimeStamp const&, AudioBufferList*) + 374
> 9   com.apple.audio.CoreAudio     	0x9055c1ba IOA_Device::CallIOProcs(AudioTimeStamp const&, AudioTimeStamp const&, AudioTimeStamp const&) + 370
> 10  com.apple.audio.CoreAudio     	0x9055bfb6 HP_IOThread::PerformIO(AudioTimeStamp const&, double) + 620
> 11  com.apple.audio.CoreAudio     	0x9055939a HP_IOThread::WorkLoop() + 2506
> 12  com.apple.audio.CoreAudio     	0x905589cb HP_IOThread::ThreadEntry(HP_IOThread*) + 17
> 13  com.apple.audio.CoreAudio     	0x905588e2 CAPThread::Entry(CAPThread*) + 140
> 14  libSystem.B.dylib             	0x901ce81d _pthread_start + 345
> 15  libSystem.B.dylib             	0x901ce6a2 thread_start + 34
> 
> Thread 9 Crashed:
> 0   libSystem.B.dylib             	0x9020e28e __semwait_signal_nocancel + 10
> 1   libSystem.B.dylib             	0x9020e172 nanosleep$NOCANCEL$UNIX2003 + 166
> 2   libSystem.B.dylib             	0x9028903a usleep$NOCANCEL$UNIX2003 + 61
> 3   libSystem.B.dylib             	0x902aa6f0 abort + 105
> 4   com.MrGeckosMedia.VoiceBase   	0x001939b4 0x4d000 + 1337780
> 5   com.MrGeckosMedia.VoiceBase   	0x00083e14 pj_thread_register + 197
> 6   com.MrGeckosMedia.VoiceBase   	0x000a68a4 output_renderer + 128
> 7   ...pple.audio.units.Components	0x70008c2f 0x70000000 + 35887
> 8   ...pple.audio.units.Components	0x70009830 0x70000000 + 38960
> 9   ...pple.audio.units.Components	0x70008d08 0x70000000 + 36104
> 10  ....audio.toolbox.AudioToolbox	0x96417f5b AudioConverterChain::CallInputProc(unsigned long) + 881
> 11  ....audio.toolbox.AudioToolbox	0x96417a83 AudioConverterChain::FillBufferFromInputProc(unsigned long*, CABufferList*) + 95
> 12  ....audio.toolbox.AudioToolbox	0x96417a11 BufferedAudioConverter::GetInputBytes(unsigned long, unsigned long&, CABufferList const*&) + 199
> 13  ....audio.toolbox.AudioToolbox	0x964178cd CBRConverter::RenderOutput(CABufferList*, unsigned long, unsigned long&, AudioStreamPacketDescription*) + 129
> 14  ....audio.toolbox.AudioToolbox	0x96417677 BufferedAudioConverter::FillBuffer(unsigned long&, AudioBufferList&, AudioStreamPacketDescription*) + 315
> 15  ....audio.toolbox.AudioToolbox	0x964179ea BufferedAudioConverter::GetInputBytes(unsigned long, unsigned long&, CABufferList const*&) + 160
> 16  ....audio.toolbox.AudioToolbox	0x964178cd CBRConverter::RenderOutput(CABufferList*, unsigned long, unsigned long&, AudioStreamPacketDescription*) + 129
> 17  ....audio.toolbox.AudioToolbox	0x96417677 BufferedAudioConverter::FillBuffer(unsigned long&, AudioBufferList&, AudioStreamPacketDescription*) + 315
> 18  ....audio.toolbox.AudioToolbox	0x964177df AudioConverterChain::RenderOutput(CABufferList*, unsigned long, unsigned long&, AudioStreamPacketDescription*) + 157
> 19  ....audio.toolbox.AudioToolbox	0x96417677 BufferedAudioConverter::FillBuffer(unsigned long&, AudioBufferList&, AudioStreamPacketDescription*) + 315
> 20  ....audio.toolbox.AudioToolbox	0x964173ec AudioConverterFillComplexBuffer + 268
> 21  ...pple.audio.units.Components	0x70008df5 0x70000000 + 36341
> 22  ...pple.audio.units.Components	0x700082b4 0x70000000 + 33460
> 23  ...pple.audio.units.Components	0x70006b64 0x70000000 + 27492
> 24  ...pple.audio.units.Components	0x700057c3 0x70000000 + 22467
> 25  ...pple.audio.units.Components	0x7000b9fb AUGenericOutputEntry + 7172
> 26  com.apple.audio.CoreAudio     	0x9055c454 HP_IOProc::Call(AudioTimeStamp const&, AudioTimeStamp const&, AudioBufferList const*, AudioTimeStamp const&, AudioBufferList*) + 374
> 27  com.apple.audio.CoreAudio     	0x9055c1ba IOA_Device::CallIOProcs(AudioTimeStamp const&, AudioTimeStamp const&, AudioTimeStamp const&) + 370
> 28  com.apple.audio.CoreAudio     	0x9055bfb6 HP_IOThread::PerformIO(AudioTimeStamp const&, double) + 620
> 29  com.apple.audio.CoreAudio     	0x9055939a HP_IOThread::WorkLoop() + 2506
> 30  com.apple.audio.CoreAudio     	0x905589cb HP_IOThread::ThreadEntry(HP_IOThread*) + 17
> 31  com.apple.audio.CoreAudio     	0x905588e2 CAPThread::Entry(CAPThread*) + 140
> 32  libSystem.B.dylib             	0x901ce81d _pthread_start + 345
> 33  libSystem.B.dylib             	0x901ce6a2 thread_start + 34



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux