Assertion 'int_ptr % MEM_ALIGNMENT == 0' failed
Cannot reproduce this with Jerry test scripts but error show in IoT.js
How to reproduce:
- System: Ubuntu 14.04, 32 bit, debug build. (64bit is ok)
- Build iot.js and run test (as of today)
cd iotjs
git checkout 8c4ecc3aacd4f7639d814615b3614947618124fd
./tools/build.py
cd test
../build/i686-linux/debug/iotjs/iotjs test_net.js
- result
ICE: Assertion 'int_ptr % MEM_ALIGNMENT == 0' failed at /.../iotjs/deps/jerry/jerry-core/mem/mem-allocator.cpp(mem_compress_pointer):106.
Error: ERR_FAILED_INTERNAL_ASSERTION
- when I print the int_ptr value it's value was 81459d4
Issue is caused by opcodes array misalignment (eval_dev_rebased_on_6b8e34a9 branch). The commit 54ee526ffec14e182ec3c6c1c4ed106a355e247e should fix it.
@seanshpark, could you, please, try the updated version?
@ruben-ayrapetyan , patch works ok. please apply to master and also iotjs branch. branch 54ee526 did not work with current iot.js. may be cause of other changes. tested with iotjs branch + 54ee526ffec14e182ec3c6c1c4ed106a355e247e
@seanshpark, thank you for checking the patch.
I've applied it to the iotjs branch.
master branch doesn't contain code with the issue, as it was introduced in temporary eval implementation.
@sand1k please, check this issue, after landing of #148 and rewriting eval implementation using literal storage.
It seems like #148 and eval were landed.
I think it's ok to close this issue. iotjs branch is patched and master has new eval.