Today I updated the php from 7.4.7 to 7.4.8 and the application on phalcon4 gives a 502 error.
Details
run phalcon servo logs Segmentation fault (core dumped)
nginx logs[error] 1843#1843: *1636 recv() failed (104: Connection reset by peer) while reading response header from upstream
php-fpm logs [pool www] child 31495 exited on signal 11 (SIGSEGV - core dumped) after 2.853970 seconds from start
I repeat, on version 7.4.7 everything is ok.
Does anyone have such problems?
UPD: Crash occurs in those places where there is work with the database. I created a new project, there is nothing there, except for one model, without a search in the database everything is ok, with the search it crashes
@sinbadxiii MySql database?
Would it be possible to generate a stacktrace?
@sinbadxiii MySql database?
yes
Would it be possible to generate a stacktrace?
I'll try now if I succeed)
@ruudboon It will be useful?
sudo gdb /usr/sbin/php-fpm7.4 /tmp/coredump-php-fpm7.4.6424
GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/php-fpm7.4...(no debugging symbols found)...done.
[New LWP 6424]
[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-fpm: pool www '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00005588d20ce4b6 in _efree ()
(gdb) BT
Undefined command: "BT". Try "help".
(gdb) bt
#0 0x00005588d20ce4b6 in _efree ()
#1 0x00007f42100aa00f in zephir_method_exists_ex () from /usr/lib/php/20190902/phalcon.so
#2 0x00007f4210297202 in zim_Phalcon_Mvc_Model___construct () from /usr/lib/php/20190902/phalcon.so
#3 0x00007f420e0799f5 in tideways_xhprof_execute_internal (execute_data=0x7f421f014a00, return_value=0x7ffd6cb140b0)
at /home/sinbad/www/php_extension/php-xhprof-extension/tideways_xhprof.c:170
#4 0x00007f421e72c39d in xdebug_execute_internal (current_execute_data=0x7f421f014a00, return_value=0x7ffd6cb140b0)
at ./build-7.4/src/base/base.c:464
#5 0x00005588d20e670c in zend_call_function ()
#6 0x00005588d20fdf9d in zend_fcall_info_call ()
#7 0x00007f4210113606 in zephir_create_instance_params.isra () from /usr/lib/php/20190902/phalcon.so
#8 0x00007f42101af720 in zim_Phalcon_Mvc_Model_Manager_load () from /usr/lib/php/20190902/phalcon.so
#9 0x00007f420e0799f5 in tideways_xhprof_execute_internal (execute_data=0x7f421f0149a0, return_value=0x7ffd6cb14b30)
at /home/sinbad/www/php_extension/php-xhprof-extension/tideways_xhprof.c:170
#10 0x00007f421e72c39d in xdebug_execute_internal (current_execute_data=0x7f421f0149a0, return_value=0x7ffd6cb14b30)
at ./build-7.4/src/base/base.c:464
#11 0x00005588d20e670c in zend_call_function ()
#12 0x00007f42100ad503 in zephir_call_user_function () from /usr/lib/php/20190902/phalcon.so
#13 0x00007f42100ade6a in zephir_call_class_method_aparams.part () from /usr/lib/php/20190902/phalcon.so
#14 0x00007f4210441361 in zim_Phalcon_Mvc_Model_Query__prepareSelect () from /usr/lib/php/20190902/phalcon.so
#15 0x00007f420e0799f5 in tideways_xhprof_execute_internal (execute_data=0x7f421f014950, return_value=0x7ffd6cb15760)
at /home/sinbad/www/php_extension/php-xhprof-extension/tideways_xhprof.c:170
#16 0x00007f421e72c39d in xdebug_execute_internal (current_execute_data=0x7f421f014950, return_value=0x7ffd6cb15760)
at ./build-7.4/src/base/base.c:464
#17 0x00005588d20e670c in zend_call_function ()
#18 0x00007f42100ad503 in zephir_call_user_function () from /usr/lib/php/20190902/phalcon.so
#19 0x00007f42100ade6a in zephir_call_class_method_aparams.part () from /usr/lib/php/20190902/phalcon.so
#20 0x00007f42102bde82 in zim_Phalcon_Mvc_Model_Query_parse () from /usr/lib/php/20190902/phalcon.so
---Type <return> to continue, or q <return> to quit---return
#21 0x00007f420e0799f5 in tideways_xhprof_execute_internal (execute_data=0x7f421f014900, return_value=0x7ffd6cb15e40)
at /home/sinbad/www/php_extension/php-xhprof-extension/tideways_xhprof.c:170
#22 0x00007f421e72c39d in xdebug_execute_internal (current_execute_data=0x7f421f014900, return_value=0x7ffd6cb15e40)
at ./build-7.4/src/base/base.c:464
#23 0x00005588d20e670c in zend_call_function ()
#24 0x00007f42100ad503 in zephir_call_user_function () from /usr/lib/php/20190902/phalcon.so
#25 0x00007f42100ade6a in zephir_call_class_method_aparams.part () from /usr/lib/php/20190902/phalcon.so
#26 0x00007f42102a4e93 in zim_Phalcon_Mvc_Model_Query_execute () from /usr/lib/php/20190902/phalcon.so
#27 0x00007f420e0799f5 in tideways_xhprof_execute_internal (execute_data=0x7f421f0148b0, return_value=0x7ffd6cb16470)
at /home/sinbad/www/php_extension/php-xhprof-extension/tideways_xhprof.c:170
#28 0x00007f421e72c39d in xdebug_execute_internal (current_execute_data=0x7f421f0148b0, return_value=0x7ffd6cb16470)
at ./build-7.4/src/base/base.c:464
#29 0x00005588d20e670c in zend_call_function ()
#30 0x00007f42100ad503 in zephir_call_user_function () from /usr/lib/php/20190902/phalcon.so
#31 0x00007f42100ade6a in zephir_call_class_method_aparams.part () from /usr/lib/php/20190902/phalcon.so
#32 0x00007f4210101f7a in zim_Phalcon_Mvc_Model_find () from /usr/lib/php/20190902/phalcon.so
#33 0x00007f420e0799f5 in tideways_xhprof_execute_internal (execute_data=0x7f421f014860, return_value=0x7f421f0147f0)
at /home/sinbad/www/php_extension/php-xhprof-extension/tideways_xhprof.c:170
#34 0x00007f421e72c39d in xdebug_execute_internal (current_execute_data=0x7f421f014860, return_value=0x7f421f0147f0)
at ./build-7.4/src/base/base.c:464
#35 0x00005588d1f4782a in ?? ()
#36 0x00005588d2179e3b in execute_ex ()
#37 0x00007f420e079257 in tideways_xhprof_execute_ex (execute_data=0x7f421f014730)
at /home/sinbad/www/php_extension/php-xhprof-extension/tideways_xhprof.c:198
#38 0x00007f421e72bb6c in xdebug_execute_ex (execute_data=0x7f421f014730) at ./build-7.4/src/base/base.c:380
#39 0x00005588d20e64f3 in zend_call_function ()
#40 0x00007f42100aba3f in zephir_call_user_func_array_noex () from /usr/lib/php/20190902/phalcon.so
---Type <return> to continue, or q <return> to quit---return
#41 0x00007f42101ac4ad in zim_Phalcon_Dispatcher_AbstractDispatcher_callActionMethod () from /usr/lib/php/20190902/phalcon.so
#42 0x00007f420e0799f5 in tideways_xhprof_execute_internal (execute_data=0x7f421f0146b0, return_value=0x7ffd6cb174f0)
at /home/sinbad/www/php_extension/php-xhprof-extension/tideways_xhprof.c:170
#43 0x00007f421e72c39d in xdebug_execute_internal (current_execute_data=0x7f421f0146b0, return_value=0x7ffd6cb174f0)
at ./build-7.4/src/base/base.c:464
#44 0x00005588d20e670c in zend_call_function ()
#45 0x00007f42100ad503 in zephir_call_user_function () from /usr/lib/php/20190902/phalcon.so
#46 0x00007f42100ade6a in zephir_call_class_method_aparams.part () from /usr/lib/php/20190902/phalcon.so
#47 0x00007f421047f34f in zim_Phalcon_Dispatcher_AbstractDispatcher_dispatch () from /usr/lib/php/20190902/phalcon.so
#48 0x00007f420e0799f5 in tideways_xhprof_execute_internal (execute_data=0x7f421f014660, return_value=0x7ffd6cb17ce0)
at /home/sinbad/www/php_extension/php-xhprof-extension/tideways_xhprof.c:170
#49 0x00007f421e72c39d in xdebug_execute_internal (current_execute_data=0x7f421f014660, return_value=0x7ffd6cb17ce0)
at ./build-7.4/src/base/base.c:464
#50 0x00005588d20e670c in zend_call_function ()
#51 0x00007f42100ad503 in zephir_call_user_function () from /usr/lib/php/20190902/phalcon.so
#52 0x00007f42100ade6a in zephir_call_class_method_aparams.part () from /usr/lib/php/20190902/phalcon.so
#53 0x00007f4210372bb9 in zim_Phalcon_Mvc_Application_handle () from /usr/lib/php/20190902/phalcon.so
#54 0x00007f420e0799f5 in tideways_xhprof_execute_internal (execute_data=0x7f421f014600, return_value=0x7f421f0145d0)
at /home/sinbad/www/php_extension/php-xhprof-extension/tideways_xhprof.c:170
#55 0x00007f421e72c39d in xdebug_execute_internal (current_execute_data=0x7f421f014600, return_value=0x7f421f0145d0)
at ./build-7.4/src/base/base.c:464
#56 0x00005588d1f4782a in ?? ()
#57 0x00005588d2179e3b in execute_ex ()
#58 0x00007f420e079257 in tideways_xhprof_execute_ex (execute_data=0x7f421f014540)
at /home/sinbad/www/php_extension/php-xhprof-extension/tideways_xhprof.c:198
#59 0x00007f421e72bb6c in xdebug_execute_ex (execute_data=0x7f421f014540) at ./build-7.4/src/base/base.c:380
#60 0x00005588d1f477c3 in ?? ()
---Type <return> to continue, or q <return> to quit---return
#61 0x00005588d2179e3b in execute_ex ()
#62 0x00007f420e079257 in tideways_xhprof_execute_ex (execute_data=0x7f421f014020)
at /home/sinbad/www/php_extension/php-xhprof-extension/tideways_xhprof.c:198
#63 0x00007f421e72bb6c in xdebug_execute_ex (execute_data=0x7f421f014020) at ./build-7.4/src/base/base.c:380
#64 0x00005588d21812c2 in zend_execute ()
#65 0x00005588d20f4b72 in zend_execute_scripts ()
#66 0x00005588d2093900 in php_execute_script ()
#67 0x00005588d1f509c3 in ?? ()
#68 0x00007f422253cb97 in __libc_start_main (main=0x5588d1f4fba0, argc=4, argv=0x7ffd6cb1aef8, init=<optimized out>,
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd6cb1aee8) at ../csu/libc-start.c:310
#69 0x00005588d1f5184a in _start ()
Same problem here...
I have also experienced this issue and in my case it appears to be caused when I run apt update to update php7.4-phalcon with the latest PHP 7.4.8 update. I get a hard "Service Unavailable" 503 page with the text "The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later."
I have a PHP 7.4 server that doesn't run Phalcon and it updated to PHP 7.4.8 just fine.
Luckily for me I was able to roll back to last night's backup and recover or else I would be down hard right now.
Can confirm this. Plesk rolled out 7.4.8 last night, and since then, I experience the 503 too. Ubuntu 18.04 here.
€dit: Works well with 7.3.20.
solved by:
sudo dpkg -i /var/cache/apt/archives/php*7.4.7*
and, to prevent upgrade create /etc/apt/preferences.d/php with:
Package: php7.4*
Pin: origin ""
Pin: version 7.4.7*
Pin-Priority: 1111
~PHP 7.4.8 and Phalcon 4.0.5 works without any issue.~
PHP 7.4.8 and Phalcon 4.0.5 works without any issue.
I'm facing the explained issue with php 7.4.8 (Ondrej built) with Phalcon 4.0.5
PHP 7.4.8 and Phalcon 4.0.6 I get the same error in the version.
$paginator->paginate();
When I run the function it gets 502 error.
I'm facing the explained issue with php 7.4.8 (Ondrej built) with Phalcon 4.0.5
You are right, after more tests same problem!
I've made some tests and I've upgraded my phalcon extension to 4.0.6 (latest) version and I can't reproduce problems I've faced.
I've faced two problems:
Now everything works fine but while I've installed phalcon via pecl I've received some errors and "Segmentation fault" in end of the process. Here is my command to update phalcon and it's output
root@gtsvetanov-ROG:/usr/lib/php/20190902# pecl install phalcon && pecl uninstall -r phalcon
Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187
Notice: Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187
Call Stack:
0.0002 414568 1. {main}() /usr/share/php/peclcmd.php:0
0.0012 482992 2. require_once('/usr/share/php/pearcmd.php') /usr/share/php/peclcmd.php:31
0.0335 1930584 3. PEAR_Command_Install->run() /usr/share/php/pearcmd.php:316
0.0335 1930584 4. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:270
0.0468 3097464 5. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:666
0.0493 3356496 6. PEAR_Downloader_Package->initialize() /usr/share/php/PEAR/Downloader.php:296
0.0494 3356560 7. PEAR_Downloader_Package->_fromString() /usr/share/php/PEAR/Downloader/Package.php:189
0.0497 3359352 8. PEAR_Downloader->_getPackageDownloadUrl() /usr/share/php/PEAR/Downloader/Package.php:1706
0.0525 3544472 9. PEAR_REST_10->getDownloadURL() /usr/share/php/PEAR/Downloader.php:870
0.0525 3544960 10. PEAR_REST->retrieveData() /usr/share/php/PEAR/REST/10.php:74
0.0526 3544960 11. PEAR_REST->useLocalCache() /usr/share/php/PEAR/REST.php:80
Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187
Notice: Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187
Call Stack:
0.0002 414568 1. {main}() /usr/share/php/peclcmd.php:0
0.0012 482992 2. require_once('/usr/share/php/pearcmd.php') /usr/share/php/peclcmd.php:31
0.0335 1930584 3. PEAR_Command_Install->run() /usr/share/php/pearcmd.php:316
0.0335 1930584 4. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:270
0.0468 3097464 5. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:666
0.0493 3356496 6. PEAR_Downloader_Package->initialize() /usr/share/php/PEAR/Downloader.php:296
0.0494 3356560 7. PEAR_Downloader_Package->_fromString() /usr/share/php/PEAR/Downloader/Package.php:189
0.0497 3359352 8. PEAR_Downloader->_getPackageDownloadUrl() /usr/share/php/PEAR/Downloader/Package.php:1706
0.0525 3544472 9. PEAR_REST_10->getDownloadURL() /usr/share/php/PEAR/Downloader.php:870
0.3132 3550464 10. PEAR_REST_10->_returnDownloadURL() /usr/share/php/PEAR/REST/10.php:120
0.3132 3550544 11. PEAR_REST->retrieveCacheFirst() /usr/share/php/PEAR/REST/10.php:266
0.3132 3550640 12. PEAR_REST->retrieveData() /usr/share/php/PEAR/REST.php:66
0.3132 3550640 13. PEAR_REST->useLocalCache() /usr/share/php/PEAR/REST.php:80
Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187
Notice: Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187
Call Stack:
0.0002 414568 1. {main}() /usr/share/php/peclcmd.php:0
0.0012 482992 2. require_once('/usr/share/php/pearcmd.php') /usr/share/php/peclcmd.php:31
0.0335 1930584 3. PEAR_Command_Install->run() /usr/share/php/pearcmd.php:316
0.0335 1930584 4. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:270
0.0468 3097464 5. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:666
0.0493 3356496 6. PEAR_Downloader_Package->initialize() /usr/share/php/PEAR/Downloader.php:296
0.0494 3356560 7. PEAR_Downloader_Package->_fromString() /usr/share/php/PEAR/Downloader/Package.php:189
0.0497 3359352 8. PEAR_Downloader->_getPackageDownloadUrl() /usr/share/php/PEAR/Downloader/Package.php:1706
0.0525 3544472 9. PEAR_REST_10->getDownloadURL() /usr/share/php/PEAR/Downloader.php:870
0.3132 3550464 10. PEAR_REST_10->_returnDownloadURL() /usr/share/php/PEAR/REST/10.php:120
0.6319 3554552 11. PEAR_REST->retrieveCacheFirst() /usr/share/php/PEAR/REST/10.php:273
0.6319 3554648 12. PEAR_REST->retrieveData() /usr/share/php/PEAR/REST.php:66
0.6319 3554648 13. PEAR_REST->useLocalCache() /usr/share/php/PEAR/REST.php:80
Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187
Notice: Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187
Call Stack:
0.0002 414568 1. {main}() /usr/share/php/peclcmd.php:0
0.0012 482992 2. require_once('/usr/share/php/pearcmd.php') /usr/share/php/peclcmd.php:31
0.0335 1930584 3. PEAR_Command_Install->run() /usr/share/php/pearcmd.php:316
0.0335 1930584 4. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:270
0.0468 3097464 5. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:666
0.0493 3356496 6. PEAR_Downloader_Package->initialize() /usr/share/php/PEAR/Downloader.php:296
0.0494 3356560 7. PEAR_Downloader_Package->_fromString() /usr/share/php/PEAR/Downloader/Package.php:189
0.0497 3359352 8. PEAR_Downloader->_getPackageDownloadUrl() /usr/share/php/PEAR/Downloader/Package.php:1706
0.0525 3544472 9. PEAR_REST_10->getDownloadURL() /usr/share/php/PEAR/Downloader.php:870
0.3132 3550464 10. PEAR_REST_10->_returnDownloadURL() /usr/share/php/PEAR/REST/10.php:120
0.8654 3571768 11. PEAR_REST->retrieveCacheFirst() /usr/share/php/PEAR/REST/10.php:280
0.8654 3571864 12. PEAR_REST->retrieveData() /usr/share/php/PEAR/REST.php:66
0.8655 3571864 13. PEAR_REST->useLocalCache() /usr/share/php/PEAR/REST.php:80
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187
Notice: Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187
Call Stack:
0.0002 414568 1. {main}() /usr/share/php/peclcmd.php:0
0.0012 482992 2. require_once('/usr/share/php/pearcmd.php') /usr/share/php/peclcmd.php:31
0.0335 1930584 3. PEAR_Command_Install->run() /usr/share/php/pearcmd.php:316
0.0335 1930584 4. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:270
0.0468 3097464 5. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:666
1.4516 3883376 6. PEAR_Downloader_Package->detectDependencies() /usr/share/php/PEAR/Downloader.php:412
1.4516 3883752 7. PEAR_Downloader_Package->_detect2() /usr/share/php/PEAR/Downloader/Package.php:380
1.4516 3883752 8. PEAR_Downloader_Package->_detect2Dep() /usr/share/php/PEAR/Downloader/Package.php:466
1.4517 3884880 9. PEAR_Downloader->_getDepPackageDownloadUrl() /usr/share/php/PEAR/Downloader/Package.php:637
1.4523 3892120 10. PEAR_REST_10->getDepDownloadURL() /usr/share/php/PEAR/Downloader.php:1028
1.4523 3892576 11. PEAR_REST->retrieveData() /usr/share/php/PEAR/REST/10.php:137
1.4523 3892576 12. PEAR_REST->useLocalCache() /usr/share/php/PEAR/REST.php:80
Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187
Notice: Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187
Call Stack:
0.0002 414568 1. {main}() /usr/share/php/peclcmd.php:0
0.0012 482992 2. require_once('/usr/share/php/pearcmd.php') /usr/share/php/peclcmd.php:31
0.0335 1930584 3. PEAR_Command_Install->run() /usr/share/php/pearcmd.php:316
0.0335 1930584 4. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:270
0.0468 3097464 5. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:666
1.4516 3883376 6. PEAR_Downloader_Package->detectDependencies() /usr/share/php/PEAR/Downloader.php:412
1.4516 3883752 7. PEAR_Downloader_Package->_detect2() /usr/share/php/PEAR/Downloader/Package.php:380
1.4516 3883752 8. PEAR_Downloader_Package->_detect2Dep() /usr/share/php/PEAR/Downloader/Package.php:466
1.4517 3884880 9. PEAR_Downloader->_getDepPackageDownloadUrl() /usr/share/php/PEAR/Downloader/Package.php:637
1.4523 3892120 10. PEAR_REST_10->getDepDownloadURL() /usr/share/php/PEAR/Downloader.php:1028
1.6923 3901048 11. PEAR_REST_10->_returnDownloadURL() /usr/share/php/PEAR/REST/10.php:242
1.6923 3901112 12. PEAR_REST->retrieveCacheFirst() /usr/share/php/PEAR/REST/10.php:266
1.6923 3901208 13. PEAR_REST->retrieveData() /usr/share/php/PEAR/REST.php:66
1.6923 3901208 14. PEAR_REST->useLocalCache() /usr/share/php/PEAR/REST.php:80
Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187
Notice: Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187
Call Stack:
0.0002 414568 1. {main}() /usr/share/php/peclcmd.php:0
0.0012 482992 2. require_once('/usr/share/php/pearcmd.php') /usr/share/php/peclcmd.php:31
0.0335 1930584 3. PEAR_Command_Install->run() /usr/share/php/pearcmd.php:316
0.0335 1930584 4. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:270
0.0468 3097464 5. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:666
1.4516 3883376 6. PEAR_Downloader_Package->detectDependencies() /usr/share/php/PEAR/Downloader.php:412
1.4516 3883752 7. PEAR_Downloader_Package->_detect2() /usr/share/php/PEAR/Downloader/Package.php:380
1.4516 3883752 8. PEAR_Downloader_Package->_detect2Dep() /usr/share/php/PEAR/Downloader/Package.php:466
1.4517 3884880 9. PEAR_Downloader->_getDepPackageDownloadUrl() /usr/share/php/PEAR/Downloader/Package.php:637
1.4523 3892120 10. PEAR_REST_10->getDepDownloadURL() /usr/share/php/PEAR/Downloader.php:1028
1.6923 3901048 11. PEAR_REST_10->_returnDownloadURL() /usr/share/php/PEAR/REST/10.php:242
2.0661 3904808 12. PEAR_REST->retrieveCacheFirst() /usr/share/php/PEAR/REST/10.php:273
2.0662 3904904 13. PEAR_REST->retrieveData() /usr/share/php/PEAR/REST.php:66
2.0662 3904904 14. PEAR_REST->useLocalCache() /usr/share/php/PEAR/REST.php:80
Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187
Notice: Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187
Call Stack:
0.0002 414568 1. {main}() /usr/share/php/peclcmd.php:0
0.0012 482992 2. require_once('/usr/share/php/pearcmd.php') /usr/share/php/peclcmd.php:31
0.0335 1930584 3. PEAR_Command_Install->run() /usr/share/php/pearcmd.php:316
0.0335 1930584 4. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:270
0.0468 3097464 5. PEAR_Downloader->download() /usr/share/php/PEAR/Command/Install.php:666
1.4516 3883376 6. PEAR_Downloader_Package->detectDependencies() /usr/share/php/PEAR/Downloader.php:412
1.4516 3883752 7. PEAR_Downloader_Package->_detect2() /usr/share/php/PEAR/Downloader/Package.php:380
1.4516 3883752 8. PEAR_Downloader_Package->_detect2Dep() /usr/share/php/PEAR/Downloader/Package.php:466
1.4517 3884880 9. PEAR_Downloader->_getDepPackageDownloadUrl() /usr/share/php/PEAR/Downloader/Package.php:637
1.4523 3892120 10. PEAR_REST_10->getDepDownloadURL() /usr/share/php/PEAR/Downloader.php:1028
1.6923 3901048 11. PEAR_REST_10->_returnDownloadURL() /usr/share/php/PEAR/REST/10.php:242
2.4759 3909472 12. PEAR_REST->retrieveCacheFirst() /usr/share/php/PEAR/REST/10.php:280
2.4759 3909568 13. PEAR_REST->retrieveData() /usr/share/php/PEAR/REST.php:66
2.4760 3909568 14. PEAR_REST->useLocalCache() /usr/share/php/PEAR/REST.php:80
downloading phalcon-4.0.6.tgz ...
Starting to download phalcon-4.0.6.tgz (895,880 bytes)
.................................................................................................................................................................................done: 895,880 bytes
downloading psr-1.0.0.tgz ...
Starting to download psr-1.0.0.tgz (27,096 bytes)
...done: 27,096 bytes
26 source files, building
running: phpize
Configuring for:
PHP Api Version: 20190902
Zend Module Api No: 20190902
Zend Extension Api No: 320190902
building in /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0
running: /tmp/pear/temp/psr/configure --with-php-config=/usr/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20190902
checking for PHP installed headers prefix... /usr/include/php/20190902
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable psr support... yes, shared
checking for a sed that does not truncate output... /bin/sed
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/php_psr.c -o php_psr.lo
mkdir .libs
cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/php_psr.c -fPIC -DPIC -o .libs/php_psr.o
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_cache.c -o psr_cache.lo
cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_cache.c -fPIC -DPIC -o .libs/psr_cache.o
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_container.c -o psr_container.lo
cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_container.c -fPIC -DPIC -o .libs/psr_container.o
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_http_message.c -o psr_http_message.lo
cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_http_message.c -fPIC -DPIC -o .libs/psr_http_message.o
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_link.c -o psr_link.lo
cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_link.c -fPIC -DPIC -o .libs/psr_link.o
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_log.c -o psr_log.lo
cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_log.c -fPIC -DPIC -o .libs/psr_log.o
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_simple_cache.c -o psr_simple_cache.lo
cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_simple_cache.c -fPIC -DPIC -o .libs/psr_simple_cache.o
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_http_server_handler.c -o psr_http_server_handler.lo
cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_http_server_handler.c -fPIC -DPIC -o .libs/psr_http_server_handler.o
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_http_server_middleware.c -o psr_http_server_middleware.lo
cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_http_server_middleware.c -fPIC -DPIC -o .libs/psr_http_server_middleware.o
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_http_factory.c -o psr_http_factory.lo
cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_http_factory.c -fPIC -DPIC -o .libs/psr_http_factory.o
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_http_client.c -o psr_http_client.lo
cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_http_client.c -fPIC -DPIC -o .libs/psr_http_client.o
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_event_dispatcher.c -o psr_event_dispatcher.lo
cc -I. -I/tmp/pear/temp/psr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/psr/psr_event_dispatcher.c -fPIC -DPIC -o .libs/psr_event_dispatcher.o
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=link cc -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/include -I/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/main -I/tmp/pear/temp/psr -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o psr.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/modules php_psr.lo psr_cache.lo psr_container.lo psr_http_message.lo psr_link.lo psr_log.lo psr_simple_cache.lo psr_http_server_handler.lo psr_http_server_middleware.lo psr_http_factory.lo psr_http_client.lo psr_event_dispatcher.lo
cc -shared .libs/php_psr.o .libs/psr_cache.o .libs/psr_container.o .libs/psr_http_message.o .libs/psr_link.o .libs/psr_log.o .libs/psr_simple_cache.o .libs/psr_http_server_handler.o .libs/psr_http_server_middleware.o .libs/psr_http_factory.o .libs/psr_http_client.o .libs/psr_event_dispatcher.o -Wl,-soname -Wl,psr.so -o .libs/psr.so
creating psr.la
(cd .libs && rm -f psr.la && ln -s ../psr.la psr.la)
/bin/bash /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/libtool --mode=install cp ./psr.la /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/modules
cp ./.libs/psr.so /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/modules/psr.so
cp ./.libs/psr.lai /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/modules/psr.la
PATH="$PATH:/sbin" ldconfig -n /tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/modules
----------------------------------------------------------------------
Libraries have been installed in:
/tmp/pear/temp/pear-build-rootyTIDRP/psr-1.0.0/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
running: make INSTALL_ROOT="/tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0" install
Installing shared extensions: /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/lib/php/20190902/
Installing header files: /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/
running: find "/tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0" | xargs ls -dils
5902765 4 drwxr-xr-x 3 root root 4096 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0
5902808 4 drwxr-xr-x 4 root root 4096 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr
5902812 4 drwxr-xr-x 3 root root 4096 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include
5902821 4 drwxr-xr-x 3 root root 4096 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php
5902822 4 drwxr-xr-x 3 root root 4096 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902
5902823 4 drwxr-xr-x 3 root root 4096 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext
5902824 4 drwxr-xr-x 2 root root 4096 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext/psr
5902825 4 -rw-r--r-- 1 root root 1800 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext/psr/php_psr.h
5902826 4 -rw-r--r-- 1 root root 2317 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext/psr/psr_cache.h
5902827 4 -rw-r--r-- 1 root root 793 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext/psr/psr_container.h
5902843 4 -rw-r--r-- 1 root root 1151 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext/psr/psr_event_dispatcher.h
5902835 4 -rw-r--r-- 1 root root 1204 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext/psr/psr_http_client.h
5902834 4 -rw-r--r-- 1 root root 2955 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext/psr/psr_http_factory.h
5902828 12 -rw-r--r-- 1 root root 8780 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext/psr/psr_http_message.h
5902832 4 -rw-r--r-- 1 root root 688 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext/psr/psr_http_server_handler.h
5902833 4 -rw-r--r-- 1 root root 777 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext/psr/psr_http_server_middleware.h
5902829 4 -rw-r--r-- 1 root root 2104 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext/psr/psr_link.h
5902830 4 -rw-r--r-- 1 root root 2362 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext/psr/psr_log.h
5902831 4 -rw-r--r-- 1 root root 1603 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/include/php/20190902/ext/psr/psr_simple_cache.h
5902809 4 drwxr-xr-x 3 root root 4096 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/lib
5902810 4 drwxr-xr-x 3 root root 4096 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/lib/php
5902811 4 drwxr-xr-x 2 root root 4096 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/lib/php/20190902
5902806 280 -rwxr-xr-x 1 root root 285368 юли 15 15:18 /tmp/pear/temp/pear-build-rootyTIDRP/install-psr-1.0.0/usr/lib/php/20190902/psr.so
Build process completed successfully
Installing '/usr/include/php/20190902/ext/psr/psr_http_server_handler.h'
Installing '/usr/include/php/20190902/ext/psr/psr_link.h'
Installing '/usr/include/php/20190902/ext/psr/psr_container.h'
Installing '/usr/include/php/20190902/ext/psr/psr_simple_cache.h'
Installing '/usr/include/php/20190902/ext/psr/psr_log.h'
Installing '/usr/include/php/20190902/ext/psr/psr_http_message.h'
Installing '/usr/include/php/20190902/ext/psr/psr_http_server_middleware.h'
Installing '/usr/include/php/20190902/ext/psr/psr_cache.h'
Installing '/usr/include/php/20190902/ext/psr/php_psr.h'
Installing '/usr/include/php/20190902/ext/psr/psr_http_factory.h'
Installing '/usr/include/php/20190902/ext/psr/psr_http_client.h'
Installing '/usr/include/php/20190902/ext/psr/psr_event_dispatcher.h'
Installing '/usr/lib/php/20190902/psr.so'
install ok: channel://pecl.php.net/psr-1.0.0
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20190902
Zend Module Api No: 20190902
Zend Extension Api No: 320190902
building in /tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6
running: /tmp/pear/temp/phalcon/configure --with-php-config=/usr/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20190902
checking for PHP installed headers prefix... /usr/include/php/20190902
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable phalcon... yes, shared
checking whether HAVE_BUNDLED_PCRE is declared... no
checking whether HAVE_JSON is declared... no
checking for a sed that does not truncate output... /bin/sed
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/libtool --mode=compile cc -I. -I/tmp/pear/temp/phalcon -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/include -I/tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/main -I/tmp/pear/temp/phalcon -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/phalcon/phalcon.zep.c -o phalcon.lo
mkdir .libs
cc -I. -I/tmp/pear/temp/phalcon -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/include -I/tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/main -I/tmp/pear/temp/phalcon -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/phalcon/phalcon.zep.c -fPIC -DPIC -o .libs/phalcon.o
/tmp/pear/temp/phalcon/phalcon.zep.c: In function ‘zephir_mt_rand’:
/tmp/pear/temp/phalcon/phalcon.zep.c:12794:37: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘zend_long {aka long int}’ [-Wformat=]
php_error_docref(NULL, E_WARNING, "max(%lld) is smaller than min(%lld)", max, min);
^
/tmp/pear/temp/phalcon/phalcon.zep.c:12794:37: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘zend_long {aka long int}’ [-Wformat=]
/bin/bash /tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/libtool --mode=link cc -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/include -I/tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/main -I/tmp/pear/temp/phalcon -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o phalcon.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/modules phalcon.lo
cc -shared .libs/phalcon.o -Wl,-soname -Wl,phalcon.so -o .libs/phalcon.so
creating phalcon.la
(cd .libs && rm -f phalcon.la && ln -s ../phalcon.la phalcon.la)
/bin/bash /tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/libtool --mode=install cp ./phalcon.la /tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/modules
cp ./.libs/phalcon.so /tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/modules/phalcon.so
cp ./.libs/phalcon.lai /tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/modules/phalcon.la
PATH="$PATH:/sbin" ldconfig -n /tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/modules
----------------------------------------------------------------------
Libraries have been installed in:
/tmp/pear/temp/pear-build-rootcxNZNx/phalcon-4.0.6/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
running: make INSTALL_ROOT="/tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6" install
Installing shared extensions: /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6/usr/lib/php/20190902/
Installing header files: /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6/usr/include/php/20190902/
running: find "/tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6" | xargs ls -dils
5902870 4 drwxr-xr-x 3 root root 4096 юли 15 15:20 /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6
5902894 4 drwxr-xr-x 4 root root 4096 юли 15 15:20 /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6/usr
5902898 4 drwxr-xr-x 3 root root 4096 юли 15 15:20 /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6/usr/include
5902899 4 drwxr-xr-x 3 root root 4096 юли 15 15:20 /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6/usr/include/php
5902900 4 drwxr-xr-x 3 root root 4096 юли 15 15:20 /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6/usr/include/php/20190902
5902901 4 drwxr-xr-x 3 root root 4096 юли 15 15:20 /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6/usr/include/php/20190902/ext
5902902 4 drwxr-xr-x 2 root root 4096 юли 15 15:20 /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6/usr/include/php/20190902/ext/phalcon
5902903 8 -rw-r--r-- 1 root root 5949 юли 15 15:20 /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6/usr/include/php/20190902/ext/phalcon/php_phalcon.h
5902895 4 drwxr-xr-x 3 root root 4096 юли 15 15:20 /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6/usr/lib
5902896 4 drwxr-xr-x 3 root root 4096 юли 15 15:20 /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6/usr/lib/php
5902897 4 drwxr-xr-x 2 root root 4096 юли 15 15:20 /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6/usr/lib/php/20190902
5902892 29556 -rwxr-xr-x 1 root root 30264520 юли 15 15:20 /tmp/pear/temp/pear-build-rootcxNZNx/install-phalcon-4.0.6/usr/lib/php/20190902/phalcon.so
Build process completed successfully
Installing '/usr/include/php/20190902/ext/phalcon/php_phalcon.h'
Installing '/usr/lib/php/20190902/phalcon.so'
install ok: channel://pecl.php.net/phalcon-4.0.6
configuration option "php_ini" is not set to php.ini location
You should add "extension=psr.so" to php.ini
configuration option "php_ini" is not set to php.ini location
You should add "extension=psr.so" to php.ini
configuration option "php_ini" is not set to php.ini location
You should add "extension=phalcon.so" to php.ini
Segmentation fault (core dumped)
Later today I'll test it on production and I'll give you additional information.
UPDATE: After reinstall of phalcon everything works like a charm - tested in production environment
UPDATE: After reinstall of phalcon everything works like a charm - tested in production environment
great! Really, reinstalling the phalcon solves this problem and error 502 and error segmentation disappeared.
I just did the installation again
cd build
sudo ./install
I still have the same version of Phalcon 4.0.6, but now everything works. Magic :)
UPDATE: After reinstall of phalcon everything works like a charm - tested in production environment
great! Really, reinstalling the phalcon solves this problem and error 502 and error segmentation disappeared.
I just did the installation again
cd build
sudo ./installI still have the same version of Phalcon 4.0.6, but now everything works. Magic :)
In fact I've made some additional checks and size of phalcon.so is different on almost every server I ran on phalcon. Some examples:
Server 1:
28844 /usr/lib/php/20190902/phalcon.so
c69e6a28e028b14aa5cf11e97f27b15e1b7d3dda /usr/lib/php/20190902/phalcon.so
Server 2:
29556 /usr/lib/php/20190902/phalcon.so
dbaf261fde1ce168af9bb5e21099a8982c2d1f56 /usr/lib/php/20190902/phalcon.so
Server 3:
28848 /usr/lib/php/20190902/phalcon.so
25cf5d2a9e96a3ee111fba3b8fc67898c821f7df /usr/lib/php/20190902/phalcon.so
To get this information I've used following command: du /usr/lib/php/20190902/phalcon.so && sha1sum /usr/lib/php/20190902/phalcon.so
Maybe depending of installed software on the server but it's strange for me. Hope this will help :)
Unfortunately, on another server I have phalcon installation not from the source, but from the package repository.
And there reinstalling didn't help
sudo apt install php7.4-phalcon --reinstall
I had to urgently clone the source of the phalcon and reinstall it from it
git clone https://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install
and then everything worked
I can confirm this with both the https://packagecloud.io/phalcon and http://ppa.launchpad.net/ondrej/php builds of Phalcon 4.0.6
Minimal test case to reproduce:
php -r 'var_dump(new class(new Phalcon\Di\FactoryDefault) extends Phalcon\Mvc\Model {});'
Re-building the extension from source reliably fixes the problem. I suspect there is some incompatibility at the ABI level in PHP 7.4.8.
Please could you upload a new package on packagecloud.io for version 4.0.6 built against PHP 7.4.8?
is the new package online? i tried to reinstall it, but the error still exists.
I am also seeing the same error on CloudLinux (production environment, downgraded to PHP 7.3 as a workaround) and also installations via PECL on macOS development environments. Upgrades to PHP 7.4.8 appear to have triggered this in all cases for me: I was seeing lots of zend_mm_heap corrupted lines in the error log. Recompile from source fixed it for me too, but PECL re-install is not working.
I have asked Remi to rebuild the package in remirepo: https://forum.remirepo.net/viewtopic.php?id=4024
new package uploaded to the Remi's repository, checked, working fine!
https://git.remirepo.net/cgit/rpms/php/php-phalcon4.git/commit/?id=b800d15f35331fed35f6bb67bb9b84356a7f5ad1
Interesting, actually has the same problem but. I build it using latest zephir but still have zend_mm_heap corrupted error.
I actually had some other problem i think - i had wrong service registered as _modelsMetadata_ which was returning Phalcon\Cache\Adapter\Stream, when it was trying to Phalcon\Mvc\Model::getModelsMetadata/call method from it then there was seg fault.
I tried re-installing the Phalcon using APT but that did not resolve the loading problem.
I used "apt install php7.4-phalcon --reinstall". I and also using your packagecloud.io repo.
Any update as to when this problem will be corrected in the repo?
Im not sure but --reinstall doesnt recompile anything? You need to compile it yourself, as i understand above only in remo repositories it's recompiled.
Hmm.
What is the difference between the php-phalcon4 and php7.4-phalcon apt package?
I saw a note above that suggested the php-phalcon4 update fixes the issue. It's clearly not resolved in the php7.4-phalcon package yet. So I'm wondering if I need to remove the php7.4-phalcon package and install php-phalcon4.
EDIT: I removed php7.4-phalcon and installed php-phalcon4 and that appears to have fixed my site's loading problem.
@kgrammer There are (at least) two ways to install the Phalcon 4 package for PHP 7.4 on Ubuntu systems:
php7.4-phalconphp-phalcon4To check which version you have installed, you can run apt-cache policy php7.4-phalcon php-phalcon4
I reached out to Ondřej a fortnight ago, and he re-built the package in his repository straight away. So far, the package on the official packagecloud.io repository does not seem to have been re-built.
For now, I would recommend disabling the packagecloud.io repo and using Ondřej's package instead.
Assuming you already have Ondřej's PPA configured:
/etc/apt/sources.list.d)sudo apt update to make sure you pick up the correct buildsudo apt remove php7.4-phalcon; sudo apt install php-phalcon4Similar advice applies for Debian users (who will likely also be using Ondřej's packages) and RedHat / Centos users (who will likely be using Remi Collet's PHP packages, which also now have a re-built Phalcon package).
Thanks. That was basically what I uncovered. It's nice to have that spelled out.
And as noted in my edit above, I removed php7.4-phalcon and installed php-phalcon4 and everything works as expected now.
When you "apt install php-phalcon4" you will be asked to install PSR, and that may prompt a question about using the packet installer's INI file if you already have one installed. I got the same question regarding the Phalcon INI file. So I accepted the packet installer's ini file for PSR, and kept my ini file for Phalcon since I have some php settings that I needed to keep.
I need to decide if I will stay with php-phalcon4 or move back to php7.4-phalcon once (if?) they ever rebuild it.
having the same issue of zend_mm_heap after upgrading from 7.4.7 to 7.4.8, latest php update of 7.4.9 doesnt seem to solve the issue, i cant continue to develop with phalcon due to this issue. I dont feel like i want to revert to laravel because of this. I really hope someone has a solution.
The problem actually starts when a query is performed, such as after pressing the login button after entering username and password, the query where it checks the email and password is performed and then crashed with zend_mm_heap corrupted.
I have reinstalled php, phalcon, even composer update dev tool and my project, still nothing is working, tested different project eg: laravel, yii it works just fine. But my phalcon is doomed. Somebody please come out with a solution. Still a newbie here
@akiyamasensei555 I have also been experiencing these issues since PHP 7.4.8 updates.
In production, my hosting provider uses CloudLinux who have rebuilt the Phalcon package (in the same way that Remi's repository rebuilt it, mentioned above). This is now working again, but we had to raise a support ticket with CloudLinux to ask them to rebuild the packages for us.
Locally on my macOS development server, I used PECL to install Phalcon. This morning, I tried upgrading to PHP 7.4.9 (without rebuilding Phalcon) and it did _not_ work (same zend_mm_heap errors).
To fix this, I ran pecl uninstall phalcon from the Terminal. Then I went into the folder defined in php.ini as extension_dir and deleted phalcon.so as well. I then ran pecl install phalcon (which rebuilt it from source via PECL), ensured it was loaded in my php.ini file, and when I retried my app locally it was working again. I could log in and interacting with the database functioned correctly.
I really do not know what caused the issue. For a short while, my only work around was to install PHP 7.3 with Phalcon 4.0.6 and develop off that instead, but I can at least report back today that a reinstallation via PECL worked for me on macOS. A build from source would probably also work.
I'm not sure if any of this helps you, but fingers crossed.
@richmilns hm. Okay, i will try it and give you a heads up if everything goes well. Fingers Crossed
@richmilns currently am using brew to install phalcon FYI. Just in case theres any solution for brew
@richmilns Solution work. i installed through PECL and uninstall brew version. For anyone with this problem, please uninstall brew version of phalcon, and install phalcon using PECL method. Correct me if im wrong. Thank you very much everyone
@akiyamasensei555 Glad you got it working! I'm guessing that the HomeBrew package needs to be rebuilt then?
@richmilns I guess so, because most solution ask to rebuild from source, and therefore basically i reinstall it, to no avail. I guess next time i just update from PECL. Spend like 4 days working on this thing
Linux Debian-105-buster-64-minimal 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux
PHP 7.4.10 (cli) (built: Sep 9 2020 06:54:34) ( NTS )
Phalcon from pecl install phalcon 4.0.6, Build Date => Sep 18 2020 09:54:58
And I got the same error with read config. Just install php7.4-mbstring. Maybe this will help someone
@GerrSwin mine still working though with php 7.4.10 without installing mbstring. But it could be because i already have mbstring installed
@GerrSwin yeap confirmed. Mbstring is installed. However, i do not know why that would cause the problem
Most helpful comment
@akiyamasensei555 I have also been experiencing these issues since PHP 7.4.8 updates.
In production, my hosting provider uses CloudLinux who have rebuilt the Phalcon package (in the same way that Remi's repository rebuilt it, mentioned above). This is now working again, but we had to raise a support ticket with CloudLinux to ask them to rebuild the packages for us.
Locally on my macOS development server, I used PECL to install Phalcon. This morning, I tried upgrading to PHP 7.4.9 (without rebuilding Phalcon) and it did _not_ work (same
zend_mm_heap errors).To fix this, I ran
pecl uninstall phalconfrom the Terminal. Then I went into the folder defined in php.ini asextension_dirand deletedphalcon.soas well. I then ranpecl install phalcon(which rebuilt it from source via PECL), ensured it was loaded in my php.ini file, and when I retried my app locally it was working again. I could log in and interacting with the database functioned correctly.I really do not know what caused the issue. For a short while, my only work around was to install PHP 7.3 with Phalcon 4.0.6 and develop off that instead, but I can at least report back today that a reinstallation via PECL worked for me on macOS. A build from source would probably also work.
I'm not sure if any of this helps you, but fingers crossed.