Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1415 closed defect (fixed)

Handle potential crash if joining worker thread fails in pjsua_destroy()

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-1.12
Component: pjsua-lib Version: 1.x-branch
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

This is to handle hypothetical situation when pj_thread_join() calls in pjsua_destroy2() fail to wait for the worker thread to terminate. In this case, we would expect the worker thread to crash because things would have been cleaned up by pjsua_destroy2().

Change History (2)

comment:1 Changed 12 years ago by bennylp

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

(In [3882]) Fixed #1415: Handle potential crash if joining worker thread fails in pjsua_destroy()

comment:2 Changed 12 years ago by bennylp

In r3883: added protection when calling log, otherwise assertion will be raised

Note: See TracTickets for help on using tickets.