A minimal reproducing test case for a segfault with NIFs and dirty schedulers.
To reproduce:
$ rebar compile eunit
Distributor ID: Debian Description: Debian GNU/Linux 8.2 (jessie) Release: 8.2 Codename: jessie
Linux nif-dev 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux
Erlang/OTP 18 [erts-7.2.1] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:10] [hipe] [kernel-poll:false]