You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original reporter: imrivera
Affected version: OTP-19.0
Fixed in version: OTP-19.1
Component: kernel
Migrated from: https://bugs.erlang.org/browse/ERL-194
When adding a code path ending with "ebin" and with 2 levels, erlang crashes, for example:
{code}
$ erl -pa /myproject/ebin
2016-07-14 12:44:06 Error in process ~p with exit value:~n~p~n
<0.36.0>
{{case_clause,[]},[{code_server,split_base,1,[{file,"code_server.erl"},{line,639}]},{code_server,archive_subdirs,1,[{file,"code_server.erl"},{line,825}]},{code_server,do_insert_name,3,[{file,"code_server.erl"},{line,819}]},{code_server,init_namedb,2,[{file,"code_server.erl"},{line,794}]},{code_server,init_namedb,1,[{file,"code_server.erl"},{line,790}]},{code_server,init,3,[{file,"code_server.erl"},{line,96}]}]}
$ erl
Erlang/OTP 19 [erts-8.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V8.0 (abort with ^G)
1> code:add_path("/myproject/ebin").
{"Kernel pid terminated",error_logger,badarg}
Crash dump is being written to: erl_crash.dump...done
Kernel pid terminated (error_logger) (badarg)
{code}
But there is no problem if the path doesn't end with "ebin":
{code}
$ erl
Erlang/OTP 19 [erts-8.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V8.0 (abort with ^G)
1> code:add_path("/myproject/test").
true
{code}
I'm creating a pull request to fix this.
The text was updated successfully, but these errors were encountered:
Original reporter:
imrivera
Affected version:
OTP-19.0
Fixed in version:
OTP-19.1
Component:
kernel
Migrated from: https://bugs.erlang.org/browse/ERL-194
The text was updated successfully, but these errors were encountered: