[OpenSIPS-Devel] [ opensips-Patches-3554950 ] Benchmark Module Deadlock

SourceForge.net noreply at sourceforge.net
Tue Aug 7 01:56:15 CEST 2012


Patches item #3554950, was opened at 2012-08-06 16:56
Message generated for change (Tracker Item Submitted) made by dmsanders
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3554950&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.8.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: David Sanders (dmsanders)
Assigned to: Nobody/Anonymous (nobody)
Summary: Benchmark Module Deadlock

Initial Comment:
When trying to use the benchmark module from another module (using the API bindings) there appears to be a deadlock when creating a timer. Killing the process and dumping a core revealed the process which called bm_register was stuck waiting for a lock in reset_timer (line 246).

Attached patch provides a fix by initializing the lock when it is first allocated. This removed the deadlock.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3554950&group_id=232389



More information about the Devel mailing list