<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 16, 2016 at 11:18 AM, John Doe <span dir="ltr"><<a href="mailto:donpedrothird@gmail.com" target="_blank">donpedrothird@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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></blockquote><div><br></div><div>You'll need to supply more details. Most importantly, what version of Erlang are you using? And second, if you can supply a pointer to your code or you can post it in a pastebin, that would be helpful (or feel free to point me to it in a private reply if you don't want to share it publicly), but if not, the more detail you can share about what your code is doing, the better.</div><div><br></div><div>--steve</div></div></div></div>