<div dir="ltr">Hello,<div>I'm getting the following error in a dirty NIF library which keeps segfaulting:</div><div><br></div><div><div>beam/erl_process.c:3313: Lock check assertion "!erts_smp_lc_runq_is_locked(rq)" failed!</div><div>Currently these locks are locked by the dirty io scheduler 2 thread:</div><div>  'run_queue:-1[mutex](beam/erl_process.h:2134)'</div></div><div><br></div><div>The library is using enif_rwlock_ functions for synchronization.<br></div><div>What could be the possible reason for this error?</div><div><br></div><div><br></div></div>