Closed ycaibb closed 3 years ago
The lock q->lock is not released before the return. https://github.com/LibtraceTeam/libtrace/blob/d827850a048405324dcdb39feeee8b3dd01378a6/lib/data-struct/deque.c#L92-L107
The lock libtrace->libtrace_lock is not released before the return. https://github.com/LibtraceTeam/libtrace/blob/5350b4a95985969b2dff2f7c677968acb6d29744/lib/trace_parallel.c#L2259-L2265
The lock b->lock is not released before the return. https://github.com/LibtraceTeam/libtrace/blob/d827850a048405324dcdb39feeee8b3dd01378a6/lib/data-struct/buckets.c#L190-L211
The lock q->lock is not released before the return. https://github.com/LibtraceTeam/libtrace/blob/d827850a048405324dcdb39feeee8b3dd01378a6/lib/data-struct/deque.c#L63-L74
The lock v->lock is not released before the return. https://github.com/LibtraceTeam/libtrace/blob/d827850a048405324dcdb39feeee8b3dd01378a6/lib/data-struct/vector.c#L51-L63
The mutex is not released before the return. https://github.com/LibtraceTeam/libtrace/blob/5350b4a95985969b2dff2f7c677968acb6d29744/lib/trace.c#L1730-L1744
The lock trace->libtrace_lock is not released before the thread goes die. https://github.com/LibtraceTeam/libtrace/blob/5350b4a95985969b2dff2f7c677968acb6d29744/lib/trace_parallel.c#L954-L968
The lock q->lock is not released before the return.
Hi, developers @salcock @rsanger
Any comments would be highly appreciated. Thank you.
Best Regards,
Fixed by #196 -- thanks again.
Hi, developers, thank you for your checking. I found several improper locking in the below codes due to the unreleased locks.