Opened 14 years ago

Closed 14 years ago

#1108 closed defect (fixed)

DNS deadlock (thanks Bogdan Krakowski for the report)

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-1.8
Component: pjlib-util Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

Stack trace:

Thread 0:
0   libSystem.B.dylib    b4 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib    ed92 semaphore_wait_signal + 2
2   libSystem.B.dylib    a4 pthread_mutex_lock + 248
3   AbcdVoip             e8 pj_mutex_lock (os_core_unix.c:1195)
4   AbcdVoip             ba8 pj_dns_resolver_start_query (resolver.c:709)
5   AbcdVoip              pj_dns_srv_resolve (srv_resolver.c:148)
6   AbcdVoip             b6398 pjsip_resolve (sip_resolve.c:364)
7   AbcdVoip             c109c pjsip_endpt_resolve (sip_endpoint.c:1043)
8   AbcdVoip             c4168 pjsip_endpt_send_request_stateless (sip_util.c:1360)
9   AbcdVoip             b1db4 tsx_send_msg (sip_transaction.c:1913)
10  AbcdVoip             b2008 tsx_on_state_null (sip_transaction.c:2097)
11  AbcdVoip             b3d84 pjsip_tsx_send_msg (sip_transaction.c:1590)
12  AbcdVoip             c27a4 pjsip_endpt_send_request (sip_util_statefull.c:114)
13  AbcdVoip             d4864 pjsip_regc_send (sip_reg.c:1210)
14  AbcdVoip             e9a04 pjsua_acc_set_registration (pjsua_acc.c:1272)
15  AbcdVoip             eb294 pjsua_acc_add (pjsua_acc.c:330)
16  AbcdVoip             a0 -[CpcAccountImpl registerWithSipServerImpl]
17  Foundation           c86 __NSFireDelayedPerform + 362
18  CoreFoundation       a54 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 8
19  CoreFoundation       ede __CFRunLoopDoTimer + 854
20  CoreFoundation       e __CFRunLoopRun + 1082
21  CoreFoundation       d8e4 CFRunLoopRunSpecific + 224
22  CoreFoundation       d7ec CFRunLoopRunInMode + 52
23  GraphicsServices     e8 GSEventRunModal + 108
24  GraphicsServices      GSEventRun + 56
25  UIKit                a0 -[UIApplication _run] + 396
26  UIKit                e10 UIApplicationMain + 664
27  AbcdVoip             e8 main (main.m:13)
28  AbcdVoip             b8 start + 32

Thread 1:
0   libSystem.B.dylib    dc4c kevent + 24
1   libSystem.B.dylib    d6e44 _dispatch_mgr_invoke + 88
2   libSystem.B.dylib    d6894 _dispatch_queue_invoke + 96
3   libSystem.B.dylib    d6a34 _dispatch_worker_thread2 + 120
4   libSystem.B.dylib    ad82 _pthread_wqthread + 258
5   libSystem.B.dylib    fcc start_wqthread + 0

Thread 2:
0   libSystem.B.dylib     mach_msg_trap + 20
1   libSystem.B.dylib     mach_msg + 44
2   CoreFoundation       c8 __CFRunLoopServiceMachPort + 88
3   CoreFoundation        __CFRunLoopRun + 350
4   CoreFoundation       d8e4 CFRunLoopRunSpecific + 224
5   CoreFoundation       d7ec CFRunLoopRunInMode + 52
6   WebCore               RunWebThread(void*) + 362
7   libSystem.B.dylib    a986 _pthread_start + 242
8   libSystem.B.dylib    e4 thread_start + 0

Thread 3:
0   libSystem.B.dylib     mach_msg_trap + 20
1   libSystem.B.dylib     mach_msg + 44
2   CoreFoundation       c8 __CFRunLoopServiceMachPort + 88
3   CoreFoundation        __CFRunLoopRun + 350
4   CoreFoundation       d8e4 CFRunLoopRunSpecific + 224
5   CoreFoundation       d7ec CFRunLoopRunInMode + 52
6   AudioToolbox         f9e GenericRunLoopThread::RunLoop() + 30
7   AudioToolbox         a TRunLoop<AQClient>::Entry(void*) + 90
8   AudioToolbox         c86 CAPThread::Entry(CAPThread*) + 138
9   libSystem.B.dylib    a986 _pthread_start + 242
10  libSystem.B.dylib    e4 thread_start + 0

Thread 4:
0   libSystem.B.dylib    a20 select$DARWIN_EXTSN + 20
1   CoreFoundation       e70 __CFSocketManager + 540
2   libSystem.B.dylib    a986 _pthread_start + 242
3   libSystem.B.dylib    e4 thread_start + 0

Thread 5:
0   libSystem.B.dylib    a20 select$DARWIN_EXTSN + 20
1   libSystem.B.dylib    a00 select + 28
2   AbcdVoip             e75c pj_sock_select (sock_select.c:110)
3   AbcdVoip             d148 pj_ioqueue_poll (ioqueue_select.c:693)
4   AbcdVoip             e740 worker_proc (endpoint.c:264)
5   AbcdVoip             a0 thread_main (os_core_unix.c:475)
6   libSystem.B.dylib    a986 _pthread_start + 242
7   libSystem.B.dylib    e4 thread_start + 0

Thread 6:
0   libSystem.B.dylib    b4 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib    ed92 semaphore_wait_signal + 2
2   libSystem.B.dylib    a4 pthread_mutex_lock + 248
3   AbcdVoip             e8 pj_mutex_lock (os_core_unix.c:1195)
4   AbcdVoip             ea190 regc_cb (pjsua_acc.c:1006)
5   AbcdVoip             d3b54 call_callback (sip_reg.c:730)
6   AbcdVoip             d5064 tsx_callback (sip_reg.c:1148)
7   AbcdVoip             b1768 tsx_set_state (sip_transaction.c:1108)
8   AbcdVoip             b3b2c send_msg_callback (sip_transaction.c:1754)
9   AbcdVoip             c3790 stateless_send_transport_cb (sip_util.c:1129)
10  AbcdVoip             c3c0c stateless_send_resolver_callback (sip_util.c:1319)
11  AbcdVoip             b667c srv_resolver_cb (sip_resolve.c:502)
12  AbcdVoip              dns_callback (srv_resolver.c:669)
13  AbcdVoip             c on_read_complete (resolver.c:1385)
14  AbcdVoip             cc1c ioqueue_dispatch_read_event (ioqueue_common_abs.c:725)
15  AbcdVoip             d310 pj_ioqueue_poll (ioqueue_select.c:765)
16  AbcdVoip             c1350 pjsip_endpt_handle_events2 (sip_endpoint.c:719)
17  AbcdVoip             e5e80 pjsua_handle_events (pjsua_core.c:1461)
18  AbcdVoip             e76fc worker_thread (pjsua_core.c:553)
19  AbcdVoip             a0 thread_main (os_core_unix.c:475)
20  libSystem.B.dylib    a986 _pthread_start + 242
21  libSystem.B.dylib    e4 thread_start + 0

Change History (1)

comment:1 Changed 14 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

(In [3298]) Fixed #1108: deadlock in DNS resolver (thanks Bogdan Krakowski for the report)

Note: See TracTickets for help on using tickets.