1> meck:new(lists, [passthrough, unstick]).
Crash dump was written to: erl_crash.dump
The code server called the unloaded module `lists'
I'm getting the same when mocking os or filename.
I think there are a few modules that have this problem, as the compiler (which Meck uses internally) relies on them.
The only practical solution I see to this problem is to not use the compiler, which would be tricky indeed.