php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77211 PHP segfaults when compiled againts LibreSSL 2.8
Submitted: 2018-11-28 12:24 UTC Modified: 2021-08-22 04:22 UTC
From: pkubaj at anongoth dot pl Assigned: cmb (profile)
Status: No Feedback Package: OpenSSL related
PHP Version: 7.3.0RC6 OS: FreeBSD
Private report: No CVE-ID: None
 [2018-11-28 12:24 UTC] pkubaj at anongoth dot pl
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-08-13 11:41 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-08-13 11:41 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-08-22 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC