DynamoRIO / dynamorio

Dynamic Instrumentation Tool Platform
Other
2.59k stars 552 forks source link

i#6666: Avoid hang when analyzer worker returns early #6667

Closed derekbruening closed 5 months ago

derekbruening commented 5 months ago

Adds a call to set_active(false) on the output stream when an analyzer worker thread returns early due to an error. This frees up the current input and avoids a hang in the scheduler after the error is printed.

Adds a unit test which hangs without this fix.

Fixes #6666