[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Squeak3D crash on 64bits VM (#468)

Nicolas Cellier notifications at github.com
Mon Jan 13 22:20:56 UTC 2020


We also have a few UB associated with those negative values
I compiled the VM with CFLAGS, LDFLAGS, BFLAGS and DYFLAGS:
` 		-fsanitize=undefined \`

Then got:
```
../../platforms/Cross/plugins/Squeak3D/b3dMain.c:1249:29: runtime error: left shift of negative value -8
../../platforms/Cross/plugins/Squeak3D/b3dMain.c:1251:25: runtime error: left shift of negative value -8
../../platforms/Cross/plugins/Squeak3D/b3dDraw.c:316:33: runtime error: left shift of negative value -18279
../../platforms/Cross/plugins/Squeak3D/b3dDraw.c:317:33: runtime error: left shift of negative value -18279
../../platforms/Cross/plugins/Squeak3D/b3dDraw.c:318:33: runtime error: left shift of negative value -18279
../../platforms/Cross/plugins/Squeak3D/b3dMain.c:775:40: runtime error: -4.36761e+10 is outside the range of representable values of type 'int'
```

I do not think that it is the source of problem, but yet another potential problem in the future in case of aggressive C compiler optimization... 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/468#issuecomment-573900400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20200113/2957739b/attachment.html>


More information about the Vm-dev mailing list