Bug #76791 [Fbk->Opn]: coredump in libphp7.so`sapi_register_post_entry

From: Date: Sun, 18 Nov 2018 22:35:58 +0000
Subject: Bug #76791 [Fbk->Opn]: coredump in libphp7.so`sapi_register_post_entry
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218019@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76791&edit=1 ID: 76791 Updated by: cmb@php.net Reported by: petr dot sumbera at oracle dot com Summary: coredump in libphp7.so`sapi_register_post_entry -Status: Feedback +Status: Open Type: Bug Package: Apache2 related Operating System: Solaris PHP Version: 7.1.21 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2018-09-24 10:38:16] petr dot sumbera at oracle dot com I have tested with PHP 7.2.10 and I'm no longer able to reproduce the issue. ------------------------------------------------------------------------ [2018-09-09 23:17:07] ab@php.net Thanks for the report. Please give 7.2 a try, as it received substantial fixes for thread safety. If same is reproducible with 7.2 or above, please use a debug build of PHP and post a backtrace. Thanks. ------------------------------------------------------------------------ [2018-08-24 17:27:36] petr dot sumbera at oracle dot com libphp7.so`sapi_register_post_entry: save %sp, -0xc0, %sp libphp7.so`sapi_register_post_entry+4: sethi %hi(0x273c00), %l7 libphp7.so`sapi_register_post_entry+8: call -0x3534ec <0x1ffeec01972c28> libphp7.so`sapi_register_post_entry+0xc:add %l7, 0x2ec, %l7 libphp7.so`sapi_register_post_entry+0x10: sethi %hi(0x0), %o0 libphp7.so`sapi_register_post_entry+0x14: add %o0, 0x38, %o0 libphp7.sosapi_register_post_entry+0x18: call +0x274bfc <PLT=libc.so.1__tls_get_addr> libphp7.so`sapi_register_post_entry+0x1c: add %l7, %o0, %o0 libphp7.so`sapi_register_post_entry+0x20: ldx [%o0], %g4 libphp7.so`sapi_register_post_entry+0x24: sethi %hi(0x0), %g1 libphp7.so`sapi_register_post_entry+0x28: ldx [%g4], %g5 <====== libphp7.so`sapi_register_post_entry+0x2c: xor %g1, 0xe0, %g1 ------------------------------------------------------------------------ [2018-08-24 17:04:38] petr dot sumbera at oracle dot com Description: ------------ While running Apache 2.4.34 with PHP 7.1.21. Every time I sent HUP signal to Apache HTTP server (e.g. pkill -HUP httpd) it cores dump with following stack: ffffff9de4bbf9b1 libphp7.so`sapi_register_post_entry+0x28(1ffeec01f4bd88, 7, 1ffeec01cc38f8, 1, 0, 0) ffffff9de4bbfa71 libphp7.so`sapi_register_post_entries+0x34(1ffeec01f4bd88, 8, 1ffeec01cc38f8, 1, 0, 0) ffffff9de4bbfb21 libphp7.so`php_setup_sapi_content_types+0x1c(0, 0, b400, 1ffeec08827958, 1ffeec08b210a8, 38) ffffff9de4bbfbd1 libphp7.so`ts_allocate_id+0x174(400000be991b5c30, 0, 1, 2, 8, 900000be9914c1a0) ffffff9de4bbfc91 libphp7.so`php_apache_server_startup+0xa4(b00000be9908e038, 600000be990e6038, 38, 1ffeec08b210a8, 0, 1ffeec01f4c0d0) ffffff9de4bbfd51 ap_run_post_config+0x58(b00000be9908e038, 600000be990e6038, d00000be990f2038, 200000be990de120, 100200, 100000) ffffff9de4bbfe01 main+0x122c(1001b6000, 100000, 100038d20, 100200000, 400000be9908a130, 1001b6460) ffffff9de4bbff61 _start+0x108(0, 0, 0, 0, 0, 1001ac000) Particularly it seems to fail on first part of the condition: SAPI_API int sapi_register_post_entry(sapi_post_entry *post_entry) { if (SG(sapi_started) && EG(current_execute_data)) { ~~~~~~~~~~~~~~~~ ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76791&edit=1

« previous php.bugs (#218019) next »