| Author |
Message |
|
| Guest |
Posted: Mon Jun 28, 2010 11:24 am |
|
|
|
Guest
|
On Sat, Jun 26, 2010 at 2:05 PM, Paul Guyot <pguyot@kallisys.net> wrote:
> Hello,
>
> I noticed the following reproduceable crash (segment fault) on R14A with HiPE and crypto 2.0 on both MacOS X 64bits build and FreeBSD 64bits build. It may be related to the fact that crypto now uses NIF.
>
> hipe_crash.erl:
> ----
> -module(hipe_crash).
> -export([crash/0]).
>
> crash() ->
> |
|
|
| Back to top |
|
| Guest |
Posted: Mon Jun 28, 2010 11:24 am |
|
|
|
Guest
|
Hello,
I noticed the following reproduceable crash (segment fault) on R14A with HiPE and crypto 2.0 on both MacOS X 64bits build and FreeBSD 64bits build. It may be related to the fact that crypto now uses NIF.
hipe_crash.erl:
----
-module(hipe_crash).
-export([crash/0]).
crash() ->
ok = application:start(crypto),
Stage1 = crypto:sha("test"),
crypto:sha(Stage1).
----
erlc +native hipe_crash.erl
erl -eval 'hipe_crash:crash()'
Compiling without +native does not yield a crash.
crypto:sha("test") is <<169,74,143,229,204,177,155,166,28,76,8,115,211,145,233,135,152,47,187,211>>, yet the following code does not crash :
ok = application:start(crypto),
crypto:sha(<<169,74,143,229,204,177,155,166,28,76,8,115,211,145,233,135,152,47,187,211>>).
Regards,
Paul
________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Jun 28, 2010 11:24 am |
|
|
|
Guest
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|