[php-src] Issue #10601: Apache crashes on module startup with SIGSEGV

From: Date: Wed, 15 Feb 2023 16:25:10 +0000
Subject: [php-src] Issue #10601: Apache crashes on module startup with SIGSEGV
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243737@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10601 Author: HeenaBansal2009 ### Description Apache configuration. - CentOS Linux release 7.6.1810 (Core) - Server version: Apache/2.4.6 (CentOS) - PHP 7.3.15 Server version: Apache/2.4.6 (CentOS) Server built: Jan 27 2023 17:36:29 Server's Module Magic Number: 20120211:24 Server loaded: APR 1.4.8, APR-UTIL 1.5.2 Compiled using: APR 1.4.8, APR-UTIL 1.5.2 Architecture: 64-bit Server MPM: worker threaded: yes (fixed thread count) forked: yes (variable process count) Server compiled with.... -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=256 -D HTTPD_ROOT="/etc/httpd" -D SUEXEC_BIN="/usr/sbin/suexec" -D DEFAULT_PIDLOG="/run/httpd/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" I am using mod_php with MPM worker and PHP 7.3 compiled with ZTS. ``` backtrace: (gdb) bt #0 0x00007f4cc79e1456 in zm_activate_xx (type=1, module_number=27) at xx.c :752 #1 0x00007f4cd49fe313 in zend_activate_modules () at /root/php-7.3.15/Zend/zend_API.c:2611 #2 0x00007f4cd4933773 in php_request_startup () at /root/php-7.3.15/main/main.c:1829 #3 0x00007f4cd4ad81ae in php_apache_request_ctor (r=0x7f4ca8002970, ctx=0x7f4ca8007730) at /root/php-7.3.15/sapi/apache2handler/sapi_apache2.c:534 #4 0x00007f4cd4ad89e2 in php_handler (r=0x7f4ca8002970) at /root/php-7.3.15/sapi/apache2handler/sapi_apache2.c:650 #5 0x0000557e762c3050 in ap_run_handler () #6 0x0000557e762c3599 in ap_invoke_handler () #7 0x0000557e762d851a in ap_process_async_request () #8 0x0000557e762d8802 in ap_process_request () #9 0x0000557e762d4662 in ap_process_http_connection () #10 0x0000557e762cc680 in ap_run_process_connection () #11 0x00007f4ccb30676b in worker_thread () from /etc/httpd/modules/mod_mpm_worker.so #12 0x00007f4cd5ef2ea5 in start_thread (arg=0x7f4cc712f700) at pthread_create.c:307 #13 0x00007f4cd5a17b0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 (gdb) f 1 #1 0x00007f4cd49fe313 in zend_activate_modules () at /root/php-7.3.15/Zend/zend_API.c:2611 2611 if (module->request_startup_func(module->type, module->module_number)==FAILURE) { (gdb) list 2606 zend_module_entry **p = module_request_startup_handlers; 2607 2608 while (*p) { 2609 zend_module_entry *module = *p; 2610 2611 if (module->request_startup_func(module->type, module->module_number)==FAILURE) { 2612 zend_error(E_WARNING, "request_startup() for %s module failed", module->name); 2613 exit(1); 2614 } 2615 p++; ``` ### PHP Version PHP 7.3.15 ### Operating System CentOS

« previous php.bugs (#243737) next »