ext-uv
ext-uv copied to clipboard
Segmentation fault on PHP 8.0.1
Hi,
Simply pulled and compiled the latest branch. As soon as I enable uv.so, php is throwing segmentation fault.
System
#cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
PHP Version
#php -v
PHP 8.0.1 (cli) (built: Jan 13 2021 08:22:35) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.1, Copyright (c) Zend Technologies
Core dump
#gdb /usr/bin/php core-php.3841128
Reading symbols from /usr/bin/php...
(No debugging symbols found in /usr/bin/php)
warning: core file may not match specified executable file.
[New LWP 3841128]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `php'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 zm_startup_uv (type=<optimized out>, module_number=<optimized out>)
at /home/www/deps/php-uv/php_uv.c:2782
2782 socket_ce = *socket_ce_ptr;
(gdb) bt
#0 zm_startup_uv (type=<optimized out>, module_number=<optimized out>)
at /home/www/deps/php-uv/php_uv.c:2782
#1 0x000056301dc601d8 in zend_startup_module_ex ()
#2 0x000056301dc60270 in ?? ()
#3 0x000056301dc6d4eb in zend_hash_apply ()
#4 0x000056301dbfa366 in php_module_startup ()
#5 0x000056301dcec9f1 in ?? ()
#6 0x000056301dab0fc3 in ?? ()
#7 0x00007f4ec90e80b3 in __libc_start_main (main=0x56301dab0e20, argc=1, argv=0x7ffef190ec18,
init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffef190ec08)
at ../csu/libc-start.c:308
#8 0x000056301dab13ce in _start ()
(gdb)
If you revert the latest commit, does it work again then?
Actually yes it does.
commit 444acfb9636094c2c96d1e7b43332027f464efc5 fixes bwoebi/php-uv#85 (arginfo)
All is well