kripken/emscripten — Issue #225: Heap access error in s_0_0.test_the_bullet
Author: ehsan
Created: 2012-02-08 16:40:06+00:00
State: open

I get this in s_0_0.test_the_bullet in my use_ar branch:

`uncaught exception: Warning: Reading an invalid value at 7473 :: SAFE_HEAP_ACCESS(7473,"i32",0)@/tmp/emscripten_temp/src.cpp.o.js:337
SAFE_HEAP_LOAD(7473,"%class.btManifoldPoint.2*",0,0)@/tmp/emscripten_temp/src.cpp.o.js:376
__ZN15btManifoldPointC1Ev((void 0))@/tmp/emscripten_temp/src.cpp.o.js:10478
__ZN20btPersistentManifoldC2EPvS0_iff(5294848,10298704,10300144,0,0.034641015377090495,999999984306749400)@/tmp/emscripten_temp/src.cpp.o.js:30377
__ZN20btPersistentManifoldC1EPvS0_iff(5294848,10298704,10300144,0,0.034641015377090495,999999984306749400)@/tmp/emscripten_temp/src.cpp.o.js:29143
()@/tmp/emscripten_temp/src.cpp.o.js:29710
__ZN21btCollisionDispatcher14getNewManifoldEPvS0_(10292056,10298704,10300144)@/tmp/emscripten_temp/src.cpp.o.js:29710
__ZN23btConvexConvexAlgorithm16processCollisionEP17btCollisionObjectS1_RK16btDispatcherInfoP16btManifoldResult(9964368,10298704,10300144,10298020,5871)@/tmp/emscripten_temp/src.cpp.o.js:60051
()@/tmp/emscripten_temp/src.cpp.o.js:29470
__ZN21btCollisionDispatcher19defaultNearCallbackER16btBroadphasePairRS_RK16btDispatcherInfo(10297728,10292056,10298020)@/tmp/emscripten_temp/src.cpp.o.js:29470
__ZN23btCollisionPairCallback14processOverlapER16btBroadphasePair(5803,10297728)@/tmp/emscripten_temp/src.cpp.o.js:30292
__ZN28btHashedOverlappingPairCache26processAllOverlappingPairsEP17btOverlapCallbackP12btDispatcher(10297632,5803,10292056)@/tmp/emscripten_temp/src.cpp.o.js:117303
()@/tmp/emscripten_temp/src.cpp.o.js:30444
__ZN21btCollisionDispatcher25dispatchAllCollisionPairsEP22btOverlappingPairCacheRK16btDispatcherInfoP12btDispatcher(10292056,10297632,10298020,10292056)@/tmp/emscripten_temp/src.cpp.o.js:30444
()@/tmp/emscripten_temp/src.cpp.o.js:50173
__ZN16btCollisionWorld33performDiscreteCollisionDetectionEv(10297992)@/tmp/emscripten_temp/src.cpp.o.js:50173
()@/tmp/emscripten_temp/src.cpp.o.js:171699
__ZN23btDiscreteDynamicsWorld28internalSingleStepSimulationEf(10297992,0.01666666753590107)@/tmp/emscripten_temp/src.cpp.o.js:171699
()@/tmp/emscripten_temp/src.cpp.o.js:171570
__ZN23btDiscreteDynamicsWorld14stepSimulationEfif(10297992,0.01666666753590107,10,0.01666666753590107)@/tmp/emscripten_temp/src.cpp.o.js:171570
()@/tmp/emscripten_temp/src.cpp.o.js:1251
_main(1,5293716,0)@/tmp/emscripten_temp/src.cpp.o.js:1251
callMain([object Array])@/tmp/emscripten_temp/src.cpp.o.js:233146
run()@/tmp/emscripten_temp/src.cpp.o.js:236308
@/tmp/emscripten_temp/src.cpp.o.js:236323`

The ll file can be found here: http://people.mozilla.org/~eakhgari/bullet_s00.ll.gz. The generated js is here: http://people.mozilla.org/~eakhgari/bullet_s00.js.gz.