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 'ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)' failed in ecma_free_string_list #2719

Closed
renatahodovan opened this issue Jan 19, 2019 · 0 comments · Fixed by #2720
Closed
Labels
bug Undesired behaviour ecma builtins Related to ECMA built-in routines

Comments

@renatahodovan
Copy link
Contributor

Jerry version:
Checked revision: c23cf417

Build command: ./tools/build.py --clean --debug --compile-flag=-m32 --profile=es2015-subset --system-allocator=on --error-messages=on --logging=on
OS:
Linux-4.15.0-43-generic-x86_64-with-Ubuntu-18.04-bionic
Test case:
JSON.stringify(URIError, valueOf, new String('abc\u2040\u2030cba'));
Backtrace:
Script Error: TypeError: The structure is cyclical.
ICE: Assertion 'ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)' failed at jerryscript/jerry-core/ecma/base/ecma-literal-storage.c(ecma_free_string_list):43.
Error: ERR_FAILED_INTERNAL_ASSERTION

Program received signal SIGABRT, Aborted.
0xf7fd5059 in __kernel_vsyscall ()
(gdb) bt
#0  0xf7fd5059 in __kernel_vsyscall ()
#1  0xf7de1832 in raise () from /lib/i386-linux-gnu/libc.so.6
#2  0xf7de2cc1 in abort () from /lib/i386-linux-gnu/libc.so.6
#3  0x5655c9ec in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-port/default/default-fatal.c:71
#4  0x5659fe80 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:58
#5  0x5659feba in jerry_assert_fail (assertion=0x565e624c "ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)", file=0x565e6200 "jerryscript/jerry-core/ecma/base/ecma-literal-storage.c", 
    function=0x565ce9c8 <__func__.3807.lto_priv.89> "ecma_free_string_list", line=43) at jerryscript/jerry-core/jrt/jrt-fatals.c:82
#6  0x565c9b3b in ecma_free_string_list (string_list_p=0x566f7590) at jerryscript/jerry-core/ecma/base/ecma-literal-storage.c:43
#7  0x565c9bd7 in ecma_finalize_lit_storage () at jerryscript/jerry-core/ecma/base/ecma-literal-storage.c:63
#8  0x565c9373 in ecma_finalize () at jerryscript/jerry-core/ecma/base/ecma-init-finalize.c:63
#9  0x565b45a4 in jerry_cleanup () at jerryscript/jerry-core/api/jerry.c:210
#10 0x565b3a57 in main (argc=3, argv=0xffffd304) at jerryscript/jerry-main/main-unix.c:874

Found by Fuzzinator with grammarinator.

@LaszloLango LaszloLango added bug Undesired behaviour ecma builtins Related to ECMA built-in routines labels Jan 21, 2019
rerobika added a commit to rerobika/jerryscript that referenced this issue Jan 21, 2019
rerobika added a commit to rerobika/jerryscript that referenced this issue Jan 21, 2019
akosthekiss pushed a commit that referenced this issue Jan 22, 2019
…2720)

This patch fixes #2719.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
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.

2 participants