fred@exodo3:~$ erl Erlang R13A (erts-5.7) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false] Eshell V5.7 (abort with ^G) 1> compile:file("bug.core",[report_errors,report_warnings,from_core]). Function: reg/2 ./bug.core:none: internal error in beam_bool; crash reason: {{case_clause, {'EXIT', {function_clause, [{gb_trees,get_1,[{tmp,2},nil]}, {beam_bool,bopt_bool_arg,2}, {lists,mapfoldl,3}, {beam_bool,bopt_tree,3}, {beam_bool,bopt_tree,3}, {beam_bool,bopt_tree_cg,3}, {beam_bool,bopt_block,5}, {beam_bool,bopt,3}]}}}, [{compile,'-select_passes/2-anonymous-2-',2}, {compile,'-internal_comp/4-anonymous-1-',2}, {compile,fold_comp,3}, {compile,internal_comp,4}, {compile,internal,3}]} error 2>