{"action":"closed","issue":{"url":"https://api.github.com/repos/Samsung/jerryscript/issues/1080","repository_url":"https://api.github.com/repos/Samsung/jerryscript","labels_url":"https://api.github.com/repos/Samsung/jerryscript/issues/1080/labels{/name}","comments_url":"https://api.github.com/repos/Samsung/jerryscript/issues/1080/comments","events_url":"https://api.github.com/repos/Samsung/jerryscript/issues/1080/events","html_url":"https://github.com/Samsung/jerryscript/issues/1080","id":155700655,"number":1080,"title":"Segmentation fault in mem_pools_alloc (from ecma_alloc_number)","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/memory%20management","name":"memory management","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Samsung/jerryscript/milestones/3","html_url":"https://github.com/Samsung/jerryscript/milestones/Maintenance%20of%20ECMA%20functionality","labels_url":"https://api.github.com/repos/Samsung/jerryscript/milestones/3/labels","id":1188988,"number":3,"title":"Maintenance of ECMA functionality","description":"","creator":{"login":"egavrin","id":782710,"avatar_url":"https://avatars.githubusercontent.com/u/782710?v=3","gravatar_id":"","url":"https://api.github.com/users/egavrin","html_url":"https://github.com/egavrin","followers_url":"https://api.github.com/users/egavrin/followers","following_url":"https://api.github.com/users/egavrin/following{/other_user}","gists_url":"https://api.github.com/users/egavrin/gists{/gist_id}","starred_url":"https://api.github.com/users/egavrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egavrin/subscriptions","organizations_url":"https://api.github.com/users/egavrin/orgs","repos_url":"https://api.github.com/users/egavrin/repos","events_url":"https://api.github.com/users/egavrin/events{/privacy}","received_events_url":"https://api.github.com/users/egavrin/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":205,"state":"open","created_at":"2015-07-01T13:20:58Z","updated_at":"2016-07-08T11:02:24Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-05-19T10:11:04Z","updated_at":"2016-07-08T11:02:24Z","closed_at":"2016-07-08T11:02:24Z","body":"###### Jerry version:\r\n    Checked revision: e1c8a2e\r\n    Build: debug.linux\r\n###### OS: \r\n    Ubuntu 15.10, x86_64\r\n###### Test case:\r\n```javascript\r\n((new RegExp(\"}\").constructor)(\"a\", \"g\").constructor)(undefined).constructor.prototype.toString();\r\nnew Date(\"2015-07-09T12:13:14.121+01:30\").toISOString();\r\nRegExp(new RegExp(\"a\", \"g\")).constructor(\"\").constructor.prototype.compile(RegExp.prototype);\r\nnew Date(\"2015-09-17\").getUTCFullYear();\r\n```\r\nThe place of the segfault is the same as in #1072 but the reason (at least the traces) looks different.\r\n\r\n###### Backtrace:\r\n```\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x000000000047a61d in mem_pools_alloc () at jerryscript/jerry-core/mem/mem-poolman.c:147\r\n147     mem_free_chunk_p = chunk_p->next_p;\r\n#0  0x000000000047a61d in mem_pools_alloc () at jerryscript/jerry-core/mem/mem-poolman.c:147\r\n#1  0x000000000044a0dc in ecma_alloc_number () at jerryscript/jerry-core/ecma/base/ecma-alloc.c:92\r\n#2  0x0000000000442505 in ecma_create_float_number (ecma_number=1442448000000) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.c:346\r\n#3  0x000000000044262a in ecma_make_number_value (ecma_number=1442448000000) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.c:412\r\n#4  0x000000000046421c in ecma_builtin_date_parse (this_arg=2323, arg=2002) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date.c:383\r\n#5  0x00000000004645d9 in ecma_builtin_date_dispatch_construct (arguments_list_p=0x7fffffffcbd4, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date.c:505\r\n#6  0x00000000004748bc in ecma_builtin_dispatch_construct (obj_p=0x8b37c0 <mem_heap+1856>, arguments_list_p=0x7fffffffcbd4, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:153\r\n#7  0x0000000000431b10 in ecma_op_function_construct (func_obj_p=0x8b37c0 <mem_heap+1856>, arguments_list_p=0x7fffffffcbd4, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:844\r\n#8  0x000000000047aed1 in opfunc_construct.lto_priv.798 (frame_ctx_p=0x7fffffffcc50) at jerryscript/jerry-core/vm/vm.c:437\r\n#9  0x000000000047a139 in vm_execute (frame_ctx_p=0x7fffffffcc50, arg_p=0x0, arg_list_len=0) at jerryscript/jerry-core/vm/vm.c:2509\r\n#10 0x000000000047a1bf in vm_run_with_inline_stack.lto_priv.796 (frame_ctx_p=0x7fffffffcc50, arg_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2540\r\n#11 0x00000000004766d0 in vm_run (bytecode_header_p=0x8b3378 <mem_heap+760>, this_binding_value=35, lex_env_p=0x8b30b8 <mem_heap+56>, is_eval_code=false, arg_list_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2614\r\n#12 0x000000000047a9d2 in vm_run_global (error_value_p=0x7fffffffcd38) at jerryscript/jerry-core/vm/vm.c:190\r\n#13 0x000000000048194a in jerry_run (error_value_p=0x7fffffffced0) at jerryscript/jerry-core/jerry.c:1748\r\n#14 0x000000000047fbc2 in main (argc=2, argv=0x7fffffffd3c8) at jerryscript/main-unix.c:511\r\n```"}}
{"actor":{"display_login":"LaszloLango"}}