Bug 244435

Summary: Freebsd 11.3 i386 www/mod_php72 crashes apache24 in openssl initialization
Product: Ports & Packages Reporter: satz
Component: Individual Port(s)Assignee: Torsten Zuehlsdorff <tz>
Status: New ---    
Severity: Affects Only Me CC: michael.osipov
Priority: --- Flags: bugzilla: maintainer-feedback? (tz)
Version: Latest   
Hardware: i386   
OS: Any   

Description satz 2020-02-26 16:09:02 UTC
Building www/mod_php72 after building lang/php72 causes apache24 to crash with the following backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x284c7150 in strcmp () from /lib/libc.so.7
(gdb) bt
#0  0x284c7150 in strcmp () from /lib/libc.so.7
#1  0x28b2acec in OBJ_NAME_init () from /lib/libcrypto.so.8
#2  0x28b219a9 in lh_insert () from /lib/libcrypto.so.8
#3  0x28b2b007 in OBJ_NAME_add () from /lib/libcrypto.so.8
#4  0x28b2a864 in EVP_add_cipher () from /lib/libcrypto.so.8
#5  0x296b1e65 in OPENSSL_init_ssl () from /usr/local/lib/libssl.so.11
#6  0x283949be in pthread_once () from /lib/libthr.so.3
#7  0x298666bb in CRYPTO_THREAD_run_once () from /usr/local/lib/libcrypto.so.11
#8  0x296b1cc6 in OPENSSL_init_ssl () from /usr/local/lib/libssl.so.11
#9  0x293cbe6d in zm_startup_openssl ()
   from /usr/local/lib/php/20170718/openssl.so
#10 0x28e27378 in zend_startup_module_ex ()
   from /usr/local/libexec/apache24/libphp7.so
#11 0x28e2776d in zend_startup_modules ()
   from /usr/local/libexec/apache24/libphp7.so
#12 0x28e33d24 in zend_hash_apply ()
   from /usr/local/libexec/apache24/libphp7.so
#13 0x28e275f5 in zend_startup_modules ()
   from /usr/local/libexec/apache24/libphp7.so
#14 0x28dc98dd in php_module_startup ()
   from /usr/local/libexec/apache24/libphp7.so
#15 0x28edf252 in zend_check_arg_type ()
   from /usr/local/libexec/apache24/libphp7.so
---Type <return> to continue, or q <return> to quit---
#16 0x28edebf2 in zend_check_arg_type ()
   from /usr/local/libexec/apache24/libphp7.so
#17 0x08094c1c in ap_run_post_config ()
#18 0x08073911 in main ()

Tried rebuilding openssl-1.1.1d and php72-openssl-7.2.28 with no difference.

Thanks.
Comment 2 Torsten Zuehlsdorff freebsd_committer 2020-03-06 23:58:35 UTC
Yes, this seems possible. You should create an issue in the PHP bug tracker. I think we will need some help of the PHP developer for this issue.