jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Assertion 'int_ptr % MEM_ALIGNMENT == 0' failed

Open seanshpark opened this issue 11 years ago • 6 comments

Cannot reproduce this with Jerry test scripts but error show in IoT.js

How to reproduce:

  1. System: Ubuntu 14.04, 32 bit, debug build. (64bit is ok)
  2. 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
  1. 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
  1. when I print the int_ptr value it's value was 81459d4

seanshpark avatar Jun 04 '15 05:06 seanshpark

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 avatar Jun 04 '15 09:06 ruben-ayrapetyan

@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 avatar Jun 05 '15 05:06 seanshpark

@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.

ruben-ayrapetyan avatar Jun 05 '15 10:06 ruben-ayrapetyan

@sand1k please, check this issue, after landing of #148 and rewriting eval implementation using literal storage.

egavrin avatar Jun 05 '15 21:06 egavrin

It seems like #148 and eval were landed.

ILyoan avatar Jun 15 '15 01:06 ILyoan

I think it's ok to close this issue. iotjs branch is patched and master has new eval.

seanshpark avatar Jun 15 '15 05:06 seanshpark