luke-jr / bfgminer

Modular ASIC/FPGA miner written in C, featuring overclocking, monitoring, fan speed control and remote interface capabilities.
http://luke.dashjr.org/programs/bitcoin/files/bfgminer/
Other
1.84k stars 816 forks source link

Possible deadlock issues #832

Open ryancaicse opened 2 years ago

ryancaicse commented 2 years ago

It seems mutexp is not released before returning 422 and 427. Should it be a bug? https://github.com/luke-jr/bfgminer/blob/8e0278adbe5912436250a16a177d71e38d5792e9/driver-modminer.c#L404-L427

ryancaicse commented 2 years ago

Similar to the below. It may occur with very low probability https://github.com/luke-jr/bfgminer/blob/8e0278adbe5912436250a16a177d71e38d5792e9/driver-proxy.c#L95-L115