{"action":"opened","issue":{"url":"https://api.github.com/repos/m6w6/ext-raphf/issues/5","repository_url":"https://api.github.com/repos/m6w6/ext-raphf","labels_url":"https://api.github.com/repos/m6w6/ext-raphf/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/m6w6/ext-raphf/issues/5/comments","events_url":"https://api.github.com/repos/m6w6/ext-raphf/issues/5/events","html_url":"https://github.com/m6w6/ext-raphf/issues/5","id":188742835,"number":5,"title":"Segfault in php_persistent_handle_cleanup","user":{"login":"rcanavan","id":4719149,"avatar_url":"https://avatars.githubusercontent.com/u/4719149?v=3","gravatar_id":"","url":"https://api.github.com/users/rcanavan","html_url":"https://github.com/rcanavan","followers_url":"https://api.github.com/users/rcanavan/followers","following_url":"https://api.github.com/users/rcanavan/following{/other_user}","gists_url":"https://api.github.com/users/rcanavan/gists{/gist_id}","starred_url":"https://api.github.com/users/rcanavan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcanavan/subscriptions","organizations_url":"https://api.github.com/users/rcanavan/orgs","repos_url":"https://api.github.com/users/rcanavan/repos","events_url":"https://api.github.com/users/rcanavan/events{/privacy}","received_events_url":"https://api.github.com/users/rcanavan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-11T11:44:15Z","updated_at":"2016-11-11T11:44:15Z","closed_at":null,"body":"We're using rahpf-2.0.0, propro-2.0.1 and ext-http master (0d62d1283), and we're getting occassional segfaults in some of our integration tests, but so far not in production. The segfaults are not easily or deterministically reproducable.\r\n\r\n```\r\n=== Backtrace 'php-fpm' '/home/fit/core.22016'\r\n[New LWP 22016]\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib64/libthread_db.so.1\".\r\n269\t/root/build/build/src/external/php-7.0.12/Zend/zend_string.h: No such file or directory.\r\nCore was generated by `php-fpm: pool fit                                                             '.\r\nProgram terminated with signal 11, Segmentation fault.\r\n#0  zend_string_release (s=0xfffffffe) at /root/build/build/src/external/php-7.0.12/Zend/zend_string.h:269\r\n\r\nThread 1 (Thread 0x7f0eedc59840 (LWP 22016)):\r\n#0  zend_string_release (s=0xfffffffe) at /root/build/build/src/external/php-7.0.12/Zend/zend_string.h:269\r\nNo locals.\r\n#1  _zend_hash_del_el_ex (prev=<optimized out>, p=<optimized out>, idx=<optimized out>, ht=<optimized out>) at /root/build/build/src/external/php-7.0.12/Zend/zend_hash.c:1020\r\nNo locals.\r\n#2  _zend_hash_del_el (p=0x1a8d968, idx=0, ht=0x19ca2d0) at /root/build/build/src/external/php-7.0.12/Zend/zend_hash.c:1050\r\n        prev = <optimized out>\r\n#3  zend_hash_apply_with_argument (ht=ht@entry=0x19ca2d0, apply_func=apply_func@entry=0x7f0ee3fa0d00 <php_persistent_handle_apply_cleanup_ex>, argument=0xfd76d0) at /root/build/build/src/external/php-7.0.12/Zend/zend_hash.c:1563\r\n        idx = 0\r\n        p = 0x1a8d968\r\n        result = <optimized out>\r\n#4  0x00007f0ee3fa0076 in php_persistent_handle_apply_cleanup (p=<optimized out>, arg=<optimized out>) at /root/build/build/src/external/raphf-2.0.0/src/php_raphf_api.c:199\r\n        rf = <optimized out>\r\n        list = 0x19ca2d0\r\n#5  0x00000000006f58c6 in zend_hash_apply_with_argument (ht=ht@entry=0xfd7690, apply_func=apply_func@entry=0x7f0ee3fa0060 <php_persistent_handle_apply_cleanup>, argument=argument@entry=0xfd76d0) at /root/build/build/src/external/php-7.0.12/Zend/zend_hash.c:1560\r\n        idx = 83\r\n        p = 0x1845550\r\n        result = <optimized out>\r\n#6  0x00007f0ee3fa15fb in php_persistent_handle_cleanup (name=<optimized out>, ident=ident@entry=0x0) at /root/build/build/src/external/raphf-2.0.0/src/php_raphf_api.c:481\r\n        provider = 0xfd7690\r\n#7  0x00007f0ee74e13a3 in zm_shutdown_http_client_curl (type=type@entry=1, module_number=module_number@entry=26) at /root/build/build/src/external/pecl_http-3.1.0beta1/src/php_http_client_curl.c:2607\r\nNo locals.\r\n#8  0x00007f0ee74d43c7 in zm_shutdown_http (type=1, module_number=26) at /root/build/build/src/external/pecl_http-3.1.0beta1/src/php_http.c:176\r\nNo locals.\r\n#9  0x00000000006e5587 in module_destructor (module=module@entry=0xed79c0) at /root/build/build/src/external/php-7.0.12/Zend/zend_API.c:2503\r\nNo locals.\r\n#10 0x00000000006dc04c in module_destructor_zval (zv=<optimized out>) at /root/build/build/src/external/php-7.0.12/Zend/zend.c:615\r\n        module = 0xed79c0\r\n#11 0x00000000006f4e0d in _zend_hash_del_el_ex (prev=<optimized out>, p=<optimized out>, idx=<optimized out>, ht=<optimized out>) at /root/build/build/src/external/php-7.0.12/Zend/zend_hash.c:1026\r\n        tmp = {value = {lval = 15563200, dval = 7.6892424593564882e-317, counted = 0xed79c0, str = 0xed79c0, arr = 0xed79c0, obj = 0xed79c0, res = 0xed79c0, ref = 0xed79c0, ast = 0xed79c0, zv = 0xed79c0, ptr = 0xed79c0, ce = 0xed79c0, func = 0xed79c0, ww = {w1 = 15563200, w2 = 0}}, u1 = {v = {type = 17 '\\021', type_flags = 0 '\\000', const_flags = 0 '\\000', reserved = 0 '\\000'}, type_info = 17}, u2 = {var_flags = 0, next = 0, cache_slot = 0, lineno = 0, num_args = 0, fe_pos = 0, fe_iter_idx = 0}}\r\n#12 _zend_hash_del_el (p=0xe869d0, idx=27, ht=0xcd5480 <module_registry>) at /root/build/build/src/external/php-7.0.12/Zend/zend_hash.c:1050\r\n        prev = <optimized out>\r\n#13 zend_hash_graceful_reverse_destroy (ht=ht@entry=0xcd5480 <module_registry>) at /root/build/build/src/external/php-7.0.12/Zend/zend_hash.c:1502\r\n        idx = 27\r\n        p = 0xe869d0\r\n#14 0x00000000006e352c in zend_destroy_modules () at /root/build/build/src/external/php-7.0.12/Zend/zend_API.c:1982\r\nNo locals.\r\n#15 0x00000000006dd5fa in zend_shutdown () at /root/build/build/src/external/php-7.0.12/Zend/zend.c:840\r\nNo locals.\r\n#16 0x000000000065ba5b in php_module_shutdown () at /root/build/build/src/external/php-7.0.12/main/main.c:2381\r\nNo locals.\r\n#17 0x000000000042cde8 in main (argc=<optimized out>, argv=<optimized out>) at /root/build/build/src/external/php-7.0.12/sapi/fpm/fpm/fpm_main.c:2021\r\n        exit_status = 0\r\n        c = <optimized out>\r\n        use_extended_info = <optimized out>\r\n        file_handle = {handle = {fd = -366612480, fp = 0x7f0eea25f000, stream = {handle = 0x7f0eea25f000, isatty = 0, mmap = {len = 34, pos = 0, map = 0x0, buf = 0x7f0eedc62000 <Address 0x7f0eedc62000 out of bounds>, old_handle = 0x0, old_closer = 0x0}, reader = 0x677cc0 <_php_stream_read>, fsizer = 0x659430 <php_zend_stream_fsizer>, closer = 0x659410 <php_zend_stream_mmap_closer>}}, filename = 0x7f0eea202000 \"(  \\352\\016\\177\", opened_path = 0x0, type = ZEND_HANDLE_MAPPED, free_filename = 0 '\\000'}\r\n        orig_optind = <optimized out>\r\n        orig_optarg = <optimized out>\r\n        ini_entries_len = <optimized out>\r\n        max_requests = 500\r\n        requests = <optimized out>\r\n        fcgi_fd = <optimized out>\r\n        fpm_config = <optimized out>\r\n        fpm_prefix = <optimized out>\r\n        fpm_pid = <optimized out>\r\n        test_conf = <optimized out>\r\n        force_daemon = <optimized out>\r\n        force_stderr = <optimized out>\r\n        php_information = <optimized out>\r\n        php_allow_to_run_as_root = <optimized out>\r\n        __func__ = \"main\"\r\n===================================================================================================\r\n=== PHP backtrace 'php-fpm' '/home/fit/core.22016'\r\n[New LWP 22016]\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib64/libthread_db.so.1\".\r\n269\t/root/build/build/src/external/php-7.0.12/Zend/zend_string.h: No such file or directory.\r\nCore was generated by `php-fpm: pool fit                                                             '.\r\nProgram terminated with signal 11, Segmentation fault.\r\n#0  zend_string_release (s=0xfffffffe) at /root/build/build/src/external/php-7.0.12/Zend/zend_string.h:269\r\n```"}}
{"actor":{"display_login":"rcanavan"}}