Opened 6 years ago

Closed 6 years ago

#2137 closed defect (fixed)

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

Description

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 (1)

comment:1 Changed 6 years ago by riza

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

In 5851:

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

Note: See TracTickets for help on using tickets.