Ticket #2129 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

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

comment:1 Changed 3 months ago by nanang

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

In 5829:

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

comment:2 Changed 3 months 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.