{"action":"closed","issue":{"url":"https://api.github.com/repos/Samsung/jerryscript/issues/378","labels_url":"https://api.github.com/repos/Samsung/jerryscript/issues/378/labels{/name}","comments_url":"https://api.github.com/repos/Samsung/jerryscript/issues/378/comments","events_url":"https://api.github.com/repos/Samsung/jerryscript/issues/378/events","html_url":"https://github.com/Samsung/jerryscript/issues/378","id":94668830,"number":378,"title":"Assertion 'bytes_copied > 0' failed in ecma_builtin_json_quote","user":{"login":"renatahodovan","id":3356404,"avatar_url":"https://avatars.githubusercontent.com/u/3356404?v=3","gravatar_id":"","url":"https://api.github.com/users/renatahodovan","html_url":"https://github.com/renatahodovan","followers_url":"https://api.github.com/users/renatahodovan/followers","following_url":"https://api.github.com/users/renatahodovan/following{/other_user}","gists_url":"https://api.github.com/users/renatahodovan/gists{/gist_id}","starred_url":"https://api.github.com/users/renatahodovan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renatahodovan/subscriptions","organizations_url":"https://api.github.com/users/renatahodovan/orgs","repos_url":"https://api.github.com/users/renatahodovan/repos","events_url":"https://api.github.com/users/renatahodovan/events{/privacy}","received_events_url":"https://api.github.com/users/renatahodovan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Samsung/jerryscript/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/Samsung/jerryscript/labels/ecma%20builtins","name":"ecma builtins","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":{"login":"renatahodovan","id":3356404,"avatar_url":"https://avatars.githubusercontent.com/u/3356404?v=3","gravatar_id":"","url":"https://api.github.com/users/renatahodovan","html_url":"https://github.com/renatahodovan","followers_url":"https://api.github.com/users/renatahodovan/followers","following_url":"https://api.github.com/users/renatahodovan/following{/other_user}","gists_url":"https://api.github.com/users/renatahodovan/gists{/gist_id}","starred_url":"https://api.github.com/users/renatahodovan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renatahodovan/subscriptions","organizations_url":"https://api.github.com/users/renatahodovan/orgs","repos_url":"https://api.github.com/users/renatahodovan/repos","events_url":"https://api.github.com/users/renatahodovan/events{/privacy}","received_events_url":"https://api.github.com/users/renatahodovan/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Samsung/jerryscript/milestones/2","html_url":"https://github.com/Samsung/jerryscript/milestones/ECMA%20builtins","labels_url":"https://api.github.com/repos/Samsung/jerryscript/milestones/2/labels","id":1120294,"number":2,"title":"ECMA builtins","description":"","creator":{"login":"galpeter","id":12067856,"avatar_url":"https://avatars.githubusercontent.com/u/12067856?v=3","gravatar_id":"","url":"https://api.github.com/users/galpeter","html_url":"https://github.com/galpeter","followers_url":"https://api.github.com/users/galpeter/followers","following_url":"https://api.github.com/users/galpeter/following{/other_user}","gists_url":"https://api.github.com/users/galpeter/gists{/gist_id}","starred_url":"https://api.github.com/users/galpeter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galpeter/subscriptions","organizations_url":"https://api.github.com/users/galpeter/orgs","repos_url":"https://api.github.com/users/galpeter/repos","events_url":"https://api.github.com/users/galpeter/events{/privacy}","received_events_url":"https://api.github.com/users/galpeter/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":98,"state":"open","created_at":"2015-05-20T08:01:13Z","updated_at":"2015-07-15T15:30:25Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-07-13T08:42:43Z","updated_at":"2015-07-15T15:30:25Z","closed_at":"2015-07-15T15:30:25Z","body":"###### Jerry version:\r\n    Checked revision: 13cf314\r\n    Build: debug.linux\r\n###### OS: \r\n    Ubuntu 15.04, x86_64\r\n###### Test case:\r\n```javascript\r\nJSON.stringify(\"\");\r\n```\r\n\r\n###### Backtrace:\r\n```javascript\r\nICE: Assertion 'bytes_copied > 0' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp(ecma_builtin_json_quote):1132.\r\nError: ERR_FAILED_INTERNAL_ASSERTION\r\n\r\nProgram received signal SIGABRT, Aborted.\r\n0x0000000000499b11 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32\r\n32    SYSCALL_2\r\n(gdb) bt\r\n# 0  0x0000000000499b11 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32\r\n# 1  0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=21502, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96\r\n# 2  0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175\r\n# 3  0x0000000000442455 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65\r\n# 4  0x00000000004424a4 in jerry_assert_fail (assertion=0x4b4354 \"bytes_copied > 0\", \r\n    file=0x4b3de8 \"jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp\", \r\n    function=0x49d0b0 <_ZZL23ecma_builtin_json_quoteP13ecma_string_tE8__func__.lto_priv.800> \"ecma_builtin_json_quote\", line=1132)\r\n    at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92\r\n# 5  0x0000000000475f11 in ecma_builtin_json_quote (string_p=0x7cbcd0 <_ZL13mem_heap_area.lto_priv.1056+272>)\r\n    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1132\r\n# 6  0x0000000000476ace in ecma_builtin_json_str(ecma_string_t*, ecma_object_t*, stringify_context_t*) [clone .lto_priv.797] (\r\n    key_p=0x7cbcf0 <_ZL13mem_heap_area.lto_priv.1056+304>, holder_p=0x7cbce8 <_ZL13mem_heap_area.lto_priv.1056+296>, context_p=0x7fffffffd130)\r\n    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1391\r\n# 7  0x0000000000475d65 in ecma_builtin_json_stringify (this_arg=95, arg1=138, arg2=4, arg3=4)\r\n    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1087\r\n# 8  0x0000000000473912 in ecma_builtin_json_dispatch_routine (builtin_routine_id=46, this_arg_value=95, \r\n    arguments_list=0x80bb50 <_ZL13mem_heap_area.lto_priv.1056+262032>, arguments_number=1)\r\n    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.inc.h:47\r\n# 9  0x000000000048a6e6 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_JSON, builtin_routine_id=46, this_arg_value=95, \r\n    arguments_list=0x80bb50 <_ZL13mem_heap_area.lto_priv.1056+262032>, arguments_number=1)\r\n    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:135\r\n# 10 0x0000000000489ce7 in ecma_builtin_dispatch_call (obj_p=0x7cbca0 <_ZL13mem_heap_area.lto_priv.1056+224>, this_arg_value=95, \r\n    arguments_list_p=0x80bb50 <_ZL13mem_heap_area.lto_priv.1056+262032>, arguments_list_len=1)\r\n    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414\r\n# 11 0x000000000044bbcf in ecma_op_function_call (func_obj_p=0x7cbca0 <_ZL13mem_heap_area.lto_priv.1056+224>, this_arg_value=95, \r\n    arguments_list_p=0x80bb50 <_ZL13mem_heap_area.lto_priv.1056+262032>, arguments_list_len=1)\r\n    at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:714\r\n# 12 0x000000000043ca41 in opfunc_call_n (opdata=..., int_data=0x7fffffffd510) at jerryscript/jerry-core/vm/opcodes.cpp:817\r\n# 13 0x00000000004909be in vm_loop (int_data_p=0x7fffffffd510, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466\r\n# 14 0x0000000000490c4b in vm_run_from_pos (opcodes_p=0x7cbd58 <_ZL13mem_heap_area.lto_priv.1056+408>, start_pos=1, this_binding_value=23, \r\n    lex_env_p=0x7cbbf8 <_ZL13mem_heap_area.lto_priv.1056+56>, is_strict=false, is_eval_code=false)\r\n    at jerryscript/jerry-core/vm/vm.cpp:556\r\n# 15 0x0000000000490828 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395\r\n# 16 0x000000000049926e in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373\r\n# 17 0x0000000000497e4d in main (argc=3, argv=0x7fffffffd8d8) at jerryscript/main-linux.cpp:294\r\n```"}}