-
Notifications
You must be signed in to change notification settings - Fork 677
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 'buff_index <= buff_size' failed in ecma_builtin_number_prototype_object_to_string #445
Labels
Milestone
Comments
Probably a related crash with the following test: new Number(865/23561782344444444444444444444444444444444*44444444444444444444444444444444444444444444444444444444444444444444444561856134).toString(3); Backtrace: Program received signal SIGSEGV, Segmentation fault.
0x000000000048353a in ecma_builtin_number_prototype_object_to_string(unsigned int, unsigned int const*, unsigned int) [clone .lto_priv.857] (this_arg=151,
arguments_list_p=0x813b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-number-prototype.cpp:195
195 buff[buff_index++] = (lit_utf8_byte_t) (whole % radix);
(gdb) bt
# 0 0x000000000048353a in ecma_builtin_number_prototype_object_to_string(unsigned int, unsigned int const*, unsigned int) [clone .lto_priv.857] (
this_arg=151, arguments_list_p=0x813b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-number-prototype.cpp:195
# 1 0x0000000000482cac in ecma_builtin_number_prototype_dispatch_routine (builtin_routine_id=103, this_arg_value=151,
arguments_list=0x813b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-number-prototype.inc.h:47
# 2 0x000000000049670c in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_NUMBER_PROTOTYPE, builtin_routine_id=103, this_arg_value=151,
arguments_list=0x813b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:91
# 3 0x0000000000495d8f in ecma_builtin_dispatch_call (obj_p=0x7d3c90 <_ZL13mem_heap_area.lto_priv.1061+208>, this_arg_value=151,
arguments_list_p=0x813b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414
# 4 0x000000000044c91b in ecma_op_function_call (func_obj_p=0x7d3c90 <_ZL13mem_heap_area.lto_priv.1061+208>, this_arg_value=151,
arguments_list_p=0x813b50 <_ZL13mem_heap_area.lto_priv.1061+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:787
# 5 0x000000000043d1d6 in opfunc_call_n (opdata=..., int_data=0x7fffffffd510) at jerryscript/jerry-core/vm/opcodes.cpp:866
# 6 0x000000000049e10a in vm_loop (int_data_p=0x7fffffffd510, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
# 7 0x000000000049e397 in vm_run_from_pos (opcodes_p=0x7d3d58 <_ZL13mem_heap_area.lto_priv.1061+408>, start_pos=1, this_binding_value=23,
lex_env_p=0x7d3bf8 <_ZL13mem_heap_area.lto_priv.1061+56>, is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:556
# 8 0x000000000049df74 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
# 9 0x00000000004a05fd in jerry_run () at jerryscript/jerry-core/jerry.cpp:1375
# 10 0x000000000049f1a8 in main (argc=2, argv=0x7fffffffd8d8) at jerryscript/main-linux.cpp:294 |
LaszloLango
added
bug
Undesired behaviour
ecma builtins
Related to ECMA built-in routines
labels
Aug 4, 2015
Closing as fix was landed into master and the assert doesn't occur now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jerry version:
OS:
Test case:
Backtrace:
The text was updated successfully, but these errors were encountered: