Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#2129 closed defect (fixed)

Crash when PJ_GRP_LOCK_DEBUG is set

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

Description

The pj_grp_lock_dump() locks the same lock it is dumping and at the end releases it. Unfortunately, the release also call pj_grp_lock_dec_ref() on the lock which calls pj_grp_lock_dump() and ends up in infinite loop.

Thanks Imad Khazali for the report.

Change History (2)

comment:1 Changed 6 years ago by nanang

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

In 5829:

Fix #2129: Updated pj_grp_lock_dump() to avoid infinite recursion.

comment:2 Changed 6 years ago by nanang

In 5835:

Re #2129: Fixed compile warning on iOS of 'unused function grp_lock_dec_ref_dump()' when PJ_GRP_LOCK_DEBUG is not set.

Note: See TracTickets for help on using tickets.