Closed
Bug 843285
Opened 12 years ago
Closed 12 years ago
emscripten test_class crashes on ARM (no Ion)
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 843911
People
(Reporter: vlad, Assigned: sstangl)
Details
(Keywords: crash, Whiteboard: [b2g-crash])
Attachments
(1 file, 1 obsolete file)
1.19 KB,
application/javascript
|
Details |
ARM shell built with ./configure; run with "./js --no-ion testcase.js" segfaults after printing a few values.
Generated testcase is attached; the original C++ source is:
#include <stdio.h>
struct Random {
enum { IM = 139968, IA = 3877, IC = 29573 };
Random() : last(42) {}
float get( float max = 1.0f ) {
last = ( last * IA + IC ) % IM;
return max * last / IM;
}
protected:
unsigned int last;
} rng1;
int main()
{
Random rng2;
int count = 0;
for (int i = 0; i < 100; i++) {
float x1 = rng1.get();
float x2 = rng2.get();
printf("%f, %f\\n", x1, x2);
if (x1 != x2) count += 1;
}
printf("*%d*\\n", count);
return 0;
}
Reporter | ||
Comment 1•12 years ago
|
||
Same testcase, just no emscripten preamble/postamble (removed printf call, wasn't necessary to trigger bug -- uses print instead).
Attachment #716170 -
Attachment is obsolete: true
Updated•12 years ago
|
Assignee | ||
Updated•12 years ago
|
Assignee: general → sstangl
Assignee | ||
Comment 2•12 years ago
|
||
Reproduces without the recent typed array changes from Bug 837347. More bisection needed.
There are also long-standing ARM-only crashes in the following jit-tests, which appear to be the same issue:
basic/testTypedArrayClamping.js
basic/testTypedArrayUint32.js
ion/typed-arrays-1.js
ion/typed-arrays-3.js
jaeger/bug679666.js
Reporter | ||
Comment 3•12 years ago
|
||
Why bisect? testTypedArrayClamping and testTypedArrayUint32 are very trivial; should be possible to just fix the bug directly, with bisecting being of academic interest only.
Assignee | ||
Comment 4•12 years ago
|
||
JaegerMonkey is missing hardfp support. (Android uses softfp, Chromebooks use hardfp.)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•