Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#1594 closed defect (duplicate)

Deadlock between TURN and ioqueue locks

Reported by: nanang Owned by: bennylp
Priority: normal Milestone: release-2.1
Component: pjnath Version: trunk
Keywords: Cc:
Backport to 1.x milestone: release-1.16 Backported: yes

Description

Scenario:

  • Thread 1 is about to send TURN packet:
    1. pj_turn_session_sendto() acquired TURN session lock
    2. pj_ioqueue_sendto() tries to acquire TURN sock key lock
  • Thread 2 is receiving TURN packet:
    1. ioqueue_dispatch_read_event() acquired TURN sock key lock
    2. pj_turn_session_on_rx_pkt() tries to acquire TURN session lock

Change History (2)

comment:1 Changed 6 years ago by bennylp

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

This should have been fixed by #1617

comment:2 Changed 6 years ago by ming

  • Backported set
Note: See TracTickets for help on using tickets.