Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Floating point exception when calculating modulus #12198

Closed
gzm0 opened this issue May 5, 2014 · 2 comments
Closed

Floating point exception when calculating modulus #12198

gzm0 opened this issue May 5, 2014 · 2 comments

Comments

@gzm0
Copy link

gzm0 commented May 5, 2014

The following crashes phantom.js 1.9.0 on Ubuntu 13.10 (saucy)

var x = -2147483648; // uint32 min value
var y = -1;
console.log(x % y);

Floating point exception (core dumped)

Core dump will follow asap.

@gzm0
Copy link
Author

gzm0 commented May 5, 2014

Core dump in base64: https://gist.github.com/gzm0/3118b5769fe84e4ac164

@vitallium
Copy link
Collaborator

Please upgrade to PhantomJS 2. 1.9.x is no longer supported, and known to have many crasher bugs that are fixed in 2 version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants