gustavo-iniguez-goya / opensnitch

OpenSnitch is a GNU/Linux application firewall
GNU General Public License v3.0
395 stars 20 forks source link

A deadlock when using ftrace #69

Closed themighty1 closed 4 years ago

themighty1 commented 4 years ago

I tried to use process-monitor-method fstrace and encountered a mutex deadlock. The offending line is this:

https://github.com/gustavo-iniguez-goya/opensnitch/blob/bc26ca4afd3d2b07f0d5a57b05cc3fad2b0ea2f9/daemon/procmon/process.go#L56-L65

After Lock()ing it calls Start() where another Lock() will be called.

gustavo-iniguez-goya commented 4 years ago

Correct, thank you!