View Bug Details

IDProjectCategoryView StatusLast Update
0002784DCP-o-maticBugspublic2024-05-08 00:48
Reportercarl Assigned Tocarl  
PriorityurgentSeveritymajorReproducibilitysometimes
Status resolvedResolutionfixed 
Summary0002784: Deadlock when destroying ~J2KEncoder when the writer queue is full
Description

~J2KEncoder() calls terminate_threads(), which interrupts encoder threads and joins them.

But one thread is in _full_condition.wait() in Writer::write(), where the caller ::encoder_thread() has disabled interruption. So that thread is waiting but the interrupt didn't have any effect.

TagsNo tags attached.
Branch2784-deadlock
Estimated weeks required
Estimated work requiredUndecided

Activities

carl

2024-05-05 20:34

administrator   ~0006393

Test added to 2784-deadlock

carl

2024-05-05 21:15

administrator   ~0006394

Fix added to 2784-deadlock - needs tests to be run.

carl

2024-05-08 00:48

administrator   ~0006395

32d04ddb5c583938f470ed74bda8a50cc2ec9960

Bug History

Date Modified Username Field Change
2024-03-01 22:37 carl New Bug
2024-03-01 22:37 carl Assigned To => carl
2024-03-01 22:37 carl Status new => confirmed
2024-05-05 20:34 carl Branch => 2784-deadlock
2024-05-05 20:34 carl Estimated work required => Undecided
2024-05-05 20:34 carl Status confirmed => in progress
2024-05-05 20:34 carl Note Added: 0006393
2024-05-05 21:15 carl Note Added: 0006394
2024-05-08 00:48 carl Status in progress => resolved
2024-05-08 00:48 carl Resolution open => fixed
2024-05-08 00:48 carl Note Added: 0006395