Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion 'uint_ptr % JMEM_ALIGNMENT == 0' in jmem_decompress_pointer #4399

Closed
owl337 opened this issue Jan 2, 2021 · 0 comments · Fixed by #4415
Closed

Assertion 'uint_ptr % JMEM_ALIGNMENT == 0' in jmem_decompress_pointer #4399

owl337 opened this issue Jan 2, 2021 · 0 comments · Fixed by #4415
Assignees
Labels
bug Undesired behaviour

Comments

@owl337
Copy link

owl337 commented Jan 2, 2021

JerryScript revision

2faafa4

Build platform

Ubuntu 18.04.5 LTS(Linux 4.15.0-119-generic x86_64)

Build steps
./tools/build.py --clean --debug --compile-flag=-fsanitize=address \
--compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \
--compile-flag=-fno-common --compile-flag=-g --strip=off \
--system-allocator=on --logging=on --linker-flag=-fuse-ld=gold \
--error-messages=on --profile=es2015-subset  --builddir=$PWD/build
Test case

var obj0 = {};
var obj1 = {};
var obj2 = [];
var obj3 = new Proxy(Function(), { get: function(o, k) { get.push(k); return o[k]; }});
var obj4 = new Error();
var obj5 = JSON;

var values = [
    [ obj0, 0 ],
    [ obj1, 1 ],
    [ obj2, 2 ],
    [ obj3, 3 ],
    [ obj4, 4 ],
    [ obj5, 5 ],
    [ obj4, 4 ],
    [ obj3, 3 ],
    [ obj2, 2 ],
    [ obj1, 1 ],
    [ obj0, 0 ],
];
var map = new WeakMap(values);
Output
ICE: Assertion 'uint_ptr % JMEM_ALIGNMENT == 0' failed at /root/jerryscript/jerry-core/jmem/jmem-allocator.c(jmem_decompress_pointer):222.
Error: ERR_FAILED_INTERNAL_ASSERTION
Aborted

Credits: Found by chong from OWL337.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants