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_number_is_nan (res)' failed in lexer_parse_number #339

Closed
renatahodovan opened this issue Jul 8, 2015 · 1 comment
Closed
Labels
bug Undesired behaviour ecma core Related to core ECMA functionality

Comments

@renatahodovan
Copy link
Contributor

Jerry version:
Checked revision: 146ac15
Build: debug.linux
OS:
Ubuntu 15.04, x86_64
Test case:
y = 4e;
Backtrace:
ICE: Assertion '!ecma_number_is_nan (res)' failed at jerryscript/jerry-core/parser/js/lexer.cpp(lexer_parse_number):943.
Error: ERR_FAILED_INTERNAL_ASSERTION

Program received signal SIGABRT, Aborted.
0x0000000000497a28 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32    SYSCALL_2
(gdb) bt
#0  0x0000000000497a28 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1  0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=32682, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2  0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3  0x0000000000447ae3 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4  0x0000000000447b32 in jerry_assert_fail (assertion=0x4a4011 "!ecma_number_is_nan (res)", file=0x4a35e0 "jerryscript/jerry-core/parser/js/lexer.cpp", 
    function=0x49fc10 <_ZZL18lexer_parse_numbervE8__func__.lto_priv.177> "lexer_parse_number", line=943) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5  0x000000000041ba82 in lexer_parse_number() [clone .lto_priv.171] () at jerryscript/jerry-core/parser/js/lexer.cpp:943
#6  0x0000000000411ae0 in lexer_parse_token () at jerryscript/jerry-core/parser/js/lexer.cpp:1241
#7  0x0000000000412916 in lexer_next_token() () at jerryscript/jerry-core/parser/js/lexer.cpp:1483
#8  0x000000000044ad92 in skip_token() [clone .lto_priv.539] () at jerryscript/jerry-core/parser/js/parser.cpp:102
#9  0x000000000044afd2 in skip_newlines() [clone .lto_priv.535] () at jerryscript/jerry-core/parser/js/parser.cpp:135
#10 0x00000000004466c2 in preparse_scope (is_global=true) at jerryscript/jerry-core/parser/js/parser.cpp:3005
#11 0x0000000000446784 in parse_source_element_list(bool) [clone .lto_priv.566] (is_global=true) at jerryscript/jerry-core/parser/js/parser.cpp:3049
#12 0x0000000000446949 in parser_parse_program (source_p=0x6c8780 <_ZL13source_buffer.lto_priv.1092> "y = 4e;\n", source_size=8, in_function=false, in_eval=false, is_strict=false, out_opcodes_p=0x7fffffffdcb0)
    at jerryscript/jerry-core/parser/js/parser.cpp:3120
#13 0x0000000000446ac8 in parser_parse_script (source=0x6c8780 <_ZL13source_buffer.lto_priv.1092> "y = 4e;\n", source_size=8, opcodes_p=0x7fffffffdcb0)
    at jerryscript/jerry-core/parser/js/parser.cpp:3189
#14 0x0000000000497138 in jerry_parse (source_p=0x6c8780 <_ZL13source_buffer.lto_priv.1092> "y = 4e;\n", source_size=8) at jerryscript/jerry-core/jerry.cpp:1341
#15 0x0000000000495d45 in main (argc=3, argv=0x7fffffffdf58) at jerryscript/main-linux.cpp:285
@egavrin egavrin self-assigned this Jul 8, 2015
@egavrin egavrin added bug Undesired behaviour ecma core Related to core ECMA functionality labels Jul 8, 2015
@egavrin egavrin assigned ruben-ayrapetyan and unassigned egavrin Jul 10, 2015
ILyoan added a commit to ILyoan/jerryscript that referenced this issue Oct 19, 2015
JerryScript-DCO-1.0-Signed-off-by: Ilyong Cho ily.cho@samsung.com
ILyoan added a commit to ILyoan/jerryscript that referenced this issue Oct 19, 2015
JerryScript-DCO-1.0-Signed-off-by: Ilyong Cho ily.cho@samsung.com
ILyoan added a commit to ILyoan/jerryscript that referenced this issue Oct 21, 2015
JerryScript-DCO-1.0-Signed-off-by: Ilyong Cho ily.cho@samsung.com
ILyoan added a commit to ILyoan/jerryscript that referenced this issue Oct 21, 2015
Related issue: jerryscript-project#339

JerryScript-DCO-1.0-Signed-off-by: Ilyong Cho ily.cho@samsung.com
ILyoan added a commit to ILyoan/jerryscript that referenced this issue Oct 23, 2015
Related issue: jerryscript-project#339

JerryScript-DCO-1.0-Signed-off-by: Ilyong Cho ily.cho@samsung.com
@ILyoan
Copy link
Contributor

ILyoan commented Oct 23, 2015

Closing as fixed by 31ae097

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

No branches or pull requests

4 participants