Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#239 Benchmark Module Deadlock

1.8.x
closed-fixed
modules (179)
5
2012-08-07
2012-08-06
David Sanders
No

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.

Discussion

  • Hi David,

    Thanks for the patch, I uploaded on SVN trunk, 1.8 and 1.7

    Best regards,
    Bogdan

     
    • assigned_to: nobody --> bogdan_iancu
    • status: open --> closed-fixed