[erlang-bugs] Crash on attempted use of float_to_binary/2
Steve Davis
steven.charles.davis@REDACTED
Tue Jan 27 15:04:32 CET 2009
Hi,
During my learning process I was trying to convert floats to binary, I
inadvisedly tried the following:
to_binary(X) when is_float(X) -> erlang:float_to_binary(X, 64).
I do understand that this BIF has been removed, and it did throw an
expected "erlang:float_to_binary/2 not defined" error BUT within 20
seconds of running that code my PC "bluescreened" (for the first time in
over 3 years).
I am not at all certain it's reproducible but I don't want to risk
trying it again on my machine... but I do strongly suspect that the
underlying c code for this bif remains, and this caused the observed result.
System details:
Erlang R12B-5/erts 5.6.5
Windows XP SP3
Acer Ferrari 3400 (a laptop)
Regards,
Steve
More information about the erlang-bugs
mailing list