-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Description
Without swoole
$ touch foo.php
$ php74 -n -d zend_extension=opcache -d extension=ffi -d extension=zstd -d opcache.enable=1 -d opcache.enable_cli=1 -d extension=mysqlnd -d extension=sockets -d opcache.preload=$PWD/foo.php -v
PHP 7.4.0RC4 (cli) (built: Oct 15 2019 11:28:21) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0-dev, Copyright (c) Zend Technologies
with Zend OPcache v7.4.0RC4, Copyright (c), by Zend Technologies
With swoole enabled
$ php74 -n -d zend_extension=opcache -d extension=ffi -d extension=zstd -d opcache.enable=1 -d opcache.enable_cli=1 -d extension=mysqlnd -d extension=sockets -d extension=swoole -d opcache.preload=$PWD/foo.php -v
Segmentation fault (core dumped)
(gdb) bt
#0 accel_preload (config=<optimized out>) at /usr/src/debug/php74-php-7.4.0~rc4-28.fc29.remi.x86_64/Zend/zend_types.h:442
#1 0x00007ffff6f833b5 in accel_finish_startup () at /usr/src/debug/php74-php-7.4.0~rc4-28.fc29.remi.x86_64/ext/opcache/ZendAccelerator.c:4625
#2 accel_post_startup () at /usr/src/debug/php74-php-7.4.0~rc4-28.fc29.remi.x86_64/ext/opcache/ZendAccelerator.c:3024
#3 0x0000555555923a98 in zend_post_startup () at /usr/src/debug/php74-php-7.4.0~rc4-28.fc29.remi.x86_64/Zend/zend.c:1000
#4 0x00005555558c0fcd in php_module_startup (sf=<optimized out>, additional_modules=<optimized out>, num_additional_modules=<optimized out>) at /usr/src/debug/php74-php-7.4.0~rc4-28.fc29.remi.x86_64/main/main.c:2358
#5 0x00005555559acd51 in php_cli_startup (sapi_module=<optimized out>) at /usr/src/debug/php74-php-7.4.0~rc4-28.fc29.remi.x86_64/sapi/cli/php_cli.c:407
#6 0x000055555578a41e in main (argc=21, argv=0x555555f870e0) at /usr/src/debug/php74-php-7.4.0~rc4-28.fc29.remi.x86_64/sapi/cli/php_cli.c:1319
@dstogov may have some interest for you.