jerryscript
jerryscript copied to clipboard
Assertion 's == 0' failed in ecma_number_to_utf8_string
Jerry version:
Checked revision: 210ba6d
Build: debug.linux
OS:
Ubuntu 15.10, x86_64
Test case:
new String(Number.MAX_VALUE)
Backtrace:
ICE: Assertion 's == 0' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-conversion.c(ecma_number_to_utf8_string):1273.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x000000000048575d in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
(gdb) bt
#0 0x000000000048575d in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041d3f1 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041d032 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x000000000041d079 in jerry_assert_fail (assertion=0x49c4ec "s == 0",
file=0x49c2d0 "jerryscript/jerry-core/ecma/base/ecma-helpers-conversion.c",
function=0x48c5b0 <__func__.3096.lto_priv.420> "ecma_number_to_utf8_string", line=1273)
at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6 0x000000000043ba34 in ecma_number_to_utf8_string (num=1.7976931348623157e+308, buffer_p=0x7fffffffc850 "8e+308", buffer_size=64)
at jerryscript/jerry-core/ecma/base/ecma-helpers-conversion.c:1273
#7 0x000000000043bf48 in ecma_new_ecma_string_from_number (num=1.7976931348623157e+308)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.c:264
#8 0x00000000004341ff in ecma_op_to_string (value=625) at jerryscript/jerry-core/ecma/operations/ecma-conversion.c:361
#9 0x000000000042e109 in ecma_op_create_string_object (arguments_list_p=0x7fffffffcb94, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-string-object.c:61
#10 0x00000000004180e4 in ecma_builtin_string_dispatch_construct (arguments_list_p=0x7fffffffcb94, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string.c:149
#11 0x0000000000474618 in ecma_builtin_dispatch_construct (obj_p=0x8b2230 <mem_heap+432>, arguments_list_p=0x7fffffffcb94, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:63
#12 0x0000000000431e43 in ecma_op_function_construct (func_obj_p=0x8b2230 <mem_heap+432>, arguments_list_p=0x7fffffffcb94, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:846
#13 0x00000000004809f6 in opfunc_construct.lto_priv.785 (frame_ctx_p=0x7fffffffcc10) at jerryscript/jerry-core/vm/vm.c:437
#14 0x0000000000476a87 in vm_execute (frame_ctx_p=0x7fffffffcc10, arg_p=0x0, arg_list_len=0)
at jerryscript/jerry-core/vm/vm.c:2436
#15 0x0000000000476b0d in vm_run_with_inline_stack (frame_ctx_p=0x7fffffffcc10, arg_p=0x0, arg_list_len=1)
at jerryscript/jerry-core/vm/vm.c:2467
#16 0x0000000000476cf5 in vm_run (bytecode_header_p=0x8b2248 <mem_heap+456>, this_binding_value=35, lex_env_p=0x8b20b8 <mem_heap+56>, is_eval_code=false,
arg_list_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2541
#17 0x00000000004804f7 in vm_run_global (error_value_p=0x7fffffffccf8) at jerryscript/jerry-core/vm/vm.c:190
#18 0x0000000000483af3 in jerry_run (error_value_p=0x7fffffffce90) at jerryscript/jerry-core/jerry.c:1759
#19 0x0000000000481cc5 in main (argc=3, argv=0x7fffffffd388) at jerryscript/main-unix.c:511
Works on current master (97be8bf).