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

SEGV in jmem_pools_finalize #3859

Closed
ArayzWang opened this issue Jun 5, 2020 · 0 comments · Fixed by #3867
Closed

SEGV in jmem_pools_finalize #3859

ArayzWang opened this issue Jun 5, 2020 · 0 comments · Fixed by #3867
Labels
bug Undesired behaviour ecma builtins Related to ECMA built-in routines

Comments

@ArayzWang
Copy link

ArayzWang commented Jun 5, 2020

JerryScript revision

c09c2c5

Build platform

Ubuntu 18.04 LTS

Build steps

python tools/build.py --profile=es2015-subset --lto=off --error-messages=on --strip=off --compile-flag=-fsanitize=address

Test case
function main() {
const v3 = {a:13.37,length:13.37};
const v6 = [13.37,13.37];
let v9 = 0;
const v10 = v6.copyWithin(v9,8,2147483649);
const v11 = -9007199254740993 == gc;
const v12 = gc(...v11,...v3);
}
main();
Execution steps

build/bin/jerry testcase.js

Output

AddressSanitizer:DEADLYSIGNAL

Backtrace

Program received signal SIGSEGV, Segmentation fault.
0x000000000053bd5f in jmem_pools_finalize ()
(gdb) bt

#0  0x000000000053bd5f in jmem_pools_finalize ()
#1  0x000000000053a7bb in jmem_finalize ()
#2  0x00000000004f2ba0 in main ()
@dbatyai dbatyai added bug Undesired behaviour ecma builtins Related to ECMA built-in routines labels Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour ecma builtins Related to ECMA built-in routines
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants