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: -
From: pkubaj at anongoth dot pl Assigned:
Status: Open Package: OpenSSL related
PHP Version: 7.3.0RC6 OS: FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pkubaj at anongoth dot pl
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Mon Dec 10 08:01:24 2018 UTC