[Vm-dev] FloatMathPlugin crash on 64-bit VM

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Wed May 11 06:19:13 UTC 2016


Hi Levente,
I have forgotten where do we load the FloatMathPluginTests from?

Could it be related to:
http://lists.squeakfoundation.org/pipermail/vm-dev/2010-December/006302.html

fdlibm uses pointer aliasing, so special compiler flags are mandatory on
modern C compiler to make it work
http://lists.squeakfoundation.org/pipermail/squeak-dev/2013-February/168890.html

Once I proposed simple changes to "fix" the library
http://lists.squeakfoundation.org/pipermail/vm-dev/2010-December/006350.html

Note that 64bits also require -D__LITTLE_ENDIAN flag on 64bits
http://lists.squeakfoundation.org/pipermail/vm-dev/2010-December/006352.html

Nicolas

2016-05-10 23:52 GMT+02:00 Levente Uzonyi <leves at caesar.elte.hu>:

>
> Hi All,
>
> Evaluating any of the three lines below will make the VM (64-bit 3684 on
> linux) crash:
>
> FloatMathPluginTests basicNew cos: -7.384669756559583e-194
> FloatMathPluginTests basicNew sin: -7.384669756559583e-194
> FloatMathPluginTests basicNew tan: -7.384669756559583e-194
>
> There's no crash with the 32-bit VM.
>
> Levente
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160511/32e97620/attachment.htm


More information about the Vm-dev mailing list