Ticket #2137 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

Race condition in 183 re transmission can result in a deadlock

Reported by: riza Owned by: bennylp
Priority: normal Milestone: release-2.8
Component: pjsip Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no


INVITE session (pjsip_inv_session) pjsip_tx_data field (last_answer) is an object shared with pjsip_transaction.last_tsx.

Since it's a shared object, modifying it might trigger a deadlock. The deadlock can be prevented by cloning the pjsip_tx_data and avoid the use of shared object.

Here is the link to the original report:

Thanks to Richard Mudgett for the patch.

Change History

comment:1 Changed 4 months ago by riza

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

In 5851:

Fixed #2137: Race condition in 183 re-transmission can result in a deadlock.

Note: See TracTickets for help on using tickets.