-
Notifications
You must be signed in to change notification settings - Fork 688
Closed
Labels
bugUndesired behaviourUndesired behaviourecma builtinsRelated to ECMA built-in routinesRelated to ECMA built-in routines
Milestone
Description
Jerry version:
Checked revision: 6038173
Build: debug.linux
OS:
Ubuntu 15.04, x86_64
Test case:
String.prototype.trim.call('\uf389');Backtrace:
ICE: Assertion '!lit_utf8_iterator_is_eos (&iter)' failed at jerryscript/jerry-core/lit/lit-strings.cpp(lit_utf8_string_code_unit_at):640.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000004a0aa2 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x00000000004a0aa2 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=5522, 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 0x000000000044059a in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x00000000004405e9 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4c1290 "!lit_utf8_iterator_is_eos (&iter)",
file=0x4c11b0 "jerryscript/jerry-core/lit/lit-strings.cpp",
function=0x4a0fb0 <_ZZ28lit_utf8_string_code_unit_atPKhjjE8__func__.lto_priv.1089> "lit_utf8_string_code_unit_at", line=640)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000049a656 in lit_utf8_string_code_unit_at (utf8_buf_p=0x812b10 <_ZL13mem_heap_area.lto_priv.1058+261968> "\357\216\211", utf8_buf_size=3,
code_unit_offset=1) at jerryscript/jerry-core/lit/lit-strings.cpp:640
#6 0x0000000000481c03 in ecma_builtin_string_prototype_object_trim (this_arg=306)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.cpp:815
#7 0x000000000047fd60 in ecma_builtin_string_prototype_dispatch_routine (builtin_routine_id=140, this_arg_value=306, arguments_list=0x0, arguments_number=0)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.inc.h:79
#8 0x0000000000495f16 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_STRING_PROTOTYPE, builtin_routine_id=140, this_arg_value=306,
arguments_list=0x0, arguments_number=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:55
#9 0x0000000000495601 in ecma_builtin_dispatch_call (obj_p=0x7d2cd8 <_ZL13mem_heap_area.lto_priv.1058+280>, this_arg_value=306, arguments_list_p=0x0,
arguments_list_len=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414
#10 0x000000000044c8cf in ecma_op_function_call (func_obj_p=0x7d2cd8 <_ZL13mem_heap_area.lto_priv.1058+280>, this_arg_value=306, arguments_list_p=0x0,
arguments_list_len=0) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:787
#11 0x0000000000487dee in ecma_builtin_function_prototype_object_call (this_arg=143, arguments_list_p=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>,
arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-function-prototype.cpp:210
#12 0x00000000004876f6 in ecma_builtin_function_prototype_dispatch_routine (builtin_routine_id=193, this_arg_value=143,
arguments_list=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-function-prototype.inc.h:63
#13 0x0000000000495fb2 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_FUNCTION_PROTOTYPE, builtin_routine_id=193, this_arg_value=143,
arguments_list=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:108
#14 0x0000000000495601 in ecma_builtin_dispatch_call (obj_p=0x7d2df0 <_ZL13mem_heap_area.lto_priv.1058+560>, this_arg_value=143,
arguments_list_p=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414
#15 0x000000000044c8cf in ecma_op_function_call (func_obj_p=0x7d2df0 <_ZL13mem_heap_area.lto_priv.1058+560>, this_arg_value=143,
arguments_list_p=0x812b50 <_ZL13mem_heap_area.lto_priv.1058+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:787
#16 0x000000000043d28a in opfunc_call_n (opdata=..., int_data=0x7fffffffd530) at jerryscript/jerry-core/vm/opcodes.cpp:866
#17 0x000000000049d97c in vm_loop (int_data_p=0x7fffffffd530, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#18 0x000000000049dc09 in vm_run_from_pos (opcodes_p=0x7d2d58 <_ZL13mem_heap_area.lto_priv.1058+408>, start_pos=1, this_binding_value=23,
lex_env_p=0x7d2bf8 <_ZL13mem_heap_area.lto_priv.1058+56>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#19 0x000000000049d7e6 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#20 0x000000000049fe6f in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375
#21 0x000000000049ea1a in main (argc=3, argv=0x7fffffffd8f8) at jerryscript/main-linux.cpp:294Metadata
Metadata
Assignees
Labels
bugUndesired behaviourUndesired behaviourecma builtinsRelated to ECMA built-in routinesRelated to ECMA built-in routines