Bug 233224 - security/php73-openssl: segfaults with Libressl
Summary: security/php73-openssl: segfaults with Libressl
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Torsten Zuehlsdorff
URL: https://bugs.php.net/bug.php?id=77211
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-14 14:54 UTC by Piotr Kubaj
Modified: 2018-12-19 15:14 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (tz)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2018-11-14 14:54:10 UTC
When this port is compiled with LibreSSL, it makes php segfault.

PHP72 works fine.

(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
Comment 1 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2018-11-28 10:57:49 UTC
This should be locked in the PHP Bug-Tracker https://bugs.php.net/. Please open a ticket there and link it here.
Comment 2 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2018-12-19 08:38:07 UTC
Sadly i don't see any activity in the PHP bugtracker. Does this issue still persists after PHP 7.3.0?
Comment 3 Piotr Kubaj freebsd_committer freebsd_triage 2018-12-19 15:14:37 UTC
Yes, this bug seems to be fixed, but I have other problems with 7.3.0.

If I can't solve it, I'll report another bug.