Opened 15 years ago

Closed 15 years ago

#933 closed defect (fixed)

Incoming OPTIONS may trigger assertion if it arrives when PJSUA-LIB is being shutdown (thanks Johan Lantz for the report)

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


When an OPTION request arrives while PJSUA-LIB is being shutdown, it may trigger assertion error depending on the timing of the request. This is because the media endpoint has been destroyed.

The assertion:

*** ASSERTION FAILED in ..\src\pjmedia\endpoint.c(304):
endpt && pool && p_sdp && stream_cnt

Thanks Johan Lantz for the report.

Change History (1)

comment:1 Changed 15 years ago by bennylp

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

In r2871:

  • destroy the media subsystem after busy_sleep(1000) in the shutdown sequence
  • also handle the case when OPTIONS arrives just when PJSUA-LIB is being initialized and media transport is not ready (in this case just reply OPTIONS without message body)
Note: See TracTickets for help on using tickets.