Bug #77211 [NEW]: PHP segfaults when compiled againts LibreSSL 2.8

From: Date: Wed, 28 Nov 2018 12:24:59 +0000
Subject: Bug #77211 [NEW]: PHP segfaults when compiled againts LibreSSL 2.8
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218175@lists.php.net to get a copy of this message
From: pkubaj at anongoth dot pl Operating system: FreeBSD PHP version: 7.3.0RC6 Package: OpenSSL related Bug Type: Bug Bug description:PHP segfaults when compiled againts LibreSSL 2.8 Description: ------------ I compiled PHP 7.3 and its openssl module against LibreSSL 2.8. When running PHP set up to load openssl module, it crashes. Only PHP 7.3 is affected, 7.2 works fine. It's enough to run php command in console to trigger this Actual result: -------------- (gdb) bt #0 0x00000008018f2f0a in reloc_jmpslot (target=18865616, where=<optimized out>, obj=<optimized out>, refobj=<optimized out>, rel=<optimized out>) at /usr/src/libexec/rtld-elf/amd64/reloc.c:400 #1 reloc_gnu_ifunc (obj=0x80191a800, flags=<optimized out>, lockstate=0x7fffffff9fd0) at /usr/src/libexec/rtld-elf/amd64/reloc.c:460 #2 0x00000008018fa046 in resolve_object_ifunc (obj=0x80191a800, flags=0, bind_now=<optimized out>, lockstate=<optimized out>) at /usr/src/libexec/rtld-elf/rtld.c:3055 #3 initlist_objects_ifunc (flags=0, list=<optimized out>, bind_now=<optimized out>, lockstate=<optimized out>) at /usr/src/libexec/rtld-elf/rtld.c:3082 #4 dlopen_object (name=0x803605000 "/usr/local/lib/php/20180731-debug/openssl.so", fd=<optimized out>, refobj=<optimized out>, lo_flags=26322944, mode=257, lockstate=<optimized out>) at /usr/src/libexec/rtld-elf/rtld.c:3499 #5 0x00000008018f6ac6 in rtld_dlopen (name=0x803605000 "/usr/local/lib/php/20180731-debug/openssl.so", fd=-1, mode=<optimized out>) at /usr/src/libexec/rtld-elf/rtld.c:3386 #6 0x000000000121cece in php_load_shlib (path=0x803605000 "/usr/local/lib/php/20180731-debug/openssl.so", errp=0x7fffffffa600) at ext/standard/dl.c:84 #7 0x000000000121d10e in php_load_extension (filename=0x803603000 "openssl.so", type=1, start_now=0) at ext/standard/dl.c:149 #8 0x00000000013a733d in php_load_php_extension_cb (arg=0x8034502d0) at main/php_ini.c:344 #9 0x000000000143d695 in zend_llist_apply (l=0x19807f0 <extension_lists+56>, func=0x13a7310 <php_load_php_extension_cb>) at Zend/zend_llist.c:182 #10 0x00000000013a6fd3 in php_ini_register_extensions () at main/php_ini.c:777 #11 0x0000000001396096 in php_module_startup (sf=0x196df60 <cli_sapi_module>, additional_modules=0x0, num_additional_modules=0) at main/main.c:2332 #12 0x0000000001585989 in php_cli_startup (sapi_module=0x196df60 <cli_sapi_module>) at sapi/cli/php_cli.c:420 #13 0x0000000001583c9c in main (argc=2, argv=0x7fffffffabd8) at sapi/cli/php_cli.c:1357 -- Edit bug report at https://bugs.php.net/bug.php?id=77211&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77211&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77211&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77211&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77211&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77211&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77211&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77211&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77211&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77211&r=support Expected behavior: https://bugs.php.net/fix.php?id=77211&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77211&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77211&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77211&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77211&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77211&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77211&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77211&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77211&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77211&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77211&r=mysqlcfg

« previous php.bugs (#218175) next »