-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault happens randomly at high traffic ( zend_objects_store_put ) #2948
Comments
Can someone help in some way? |
I am certainly no expert in this regard, but I can try to do some suggestions of course. Anyhow, you didn't mention the Phalcon ver. you're running? Are you running with the latest version, i.e. 1.3.4? |
Phalcon version is 1.3.3, but we tried all versions between 1.2.6 and 1.3.4. Also we already tried disabling OPcache on all Phalcon versions with no luck. Issue still happen. |
Is it possible for you to upgrade PHP? |
We already tried with 5.5.9 and 5.5.17 and of course all Phalcon versions |
Seeing reports on stuff breaking at high volume, and other reports on seemingly random segfaults, do scare me a bit (much). |
Let me go on with suggestions:
And line 114 said:
Maybe there have been some .c files removed after compilation which are still required? |
@dompie: this isn't the issue, the gdb tries to load the file where the issue happens. Also you never run .c/.h/.zep files, which are not compiled, so not runnable. I'm experiencing some segmentation fault too, the last one in phalcon 2: #3026 (comment) For now, I've managed to go around each bug, but that's difficult to go forward with some of these tricky bugs. @renskii: I know some high traffic websites that run phalcon 1.3.4 without any issue. Maybe the issue is the webserver, in your cases, or in mine. PHP wasn't segfaulting when I was running the CLI version, when the same script with the CGI version was segfaulting (I use lighttpd+fastcgi). @bancuadrian: can you try the same thing under nginx/php-fpm or something like that? Maybe that would help. Another hint: https://bugs.php.net/bug.php?id=67089 |
@bancuadrian Don't know if you still have issues with php segfaulting. I had exactly the same backtraces and finally found a solution by first disabling php opcache to get a better stacktrace, turns out it has nothing to do with the script itself. The problem is caused by apache not correctly handing multiple requests / http pipelining through a single connection. Turning KeepAlive off did the trick for me. See https://bugs.php.net/bug.php?id=68486 and https://issues.apache.org/bugzilla/show_bug.cgi?id=56984 Hope this helps! |
Hi, I'm running Ubuntu with nginx + wordpress +php5-fpm and I'm having this issue just with some posts or web pages on my installation.. ..and the most amazing thing is, that it doesn't happen fetching these URLs from a mobile device (it uses a mobile theme then).. Debugging what's going on: For instance, I access this URL from my computer web browser and the php5 execution crashes, so the reader gets a 502 error. http://sophosiberia.es/5-sencillos-consejos-para-evitar-ransomware/ If you open any of these two URLs from a mobile phone, they just work! So taking a look at /var/log/apport.log I can just read: So, let's go: Let's have a look at that crash file: cd /var/crash *** Send problem report to the developers? After the problem report has been sent, please fill out the form in the What would you like to do? Your options are: The collected information can be sent to the developers to improve the and so.. takes a while, and at the end: For help, type "help". warning: the debug information found in "/tmp/apport_sandbox_IvosRM/usr/lib/debug/usr/lib/php5/20121212/mysqli.so" does not match "/tmp/apport_sandbox_IvosRM/usr/lib/php5/20121212/mysqli.so" (CRC mismatch). warning: the debug information found in "/tmp/apport_sandbox_IvosRM/usr/lib/debug/usr/lib/php5/20121212/pdo_mysql.so" does not match "/tmp/apport_sandbox_IvosRM/usr/lib/php5/20121212/pdo_mysql.so" (CRC mismatch). Core was generated by `php-fpm: pool www '. Same thing commented here.. But I have no idea what it means, and why it happens. Any ideas? thanks in advance! |
Could you please try again using Phalcon 2 or close this issue as 1.3.x is no longer supported |
Ubuntu 14.04 LTS
PHP 5.5.9
Apache 2.4.7
Apache coredump with gdb :
Core was generated by `/usr/sbin/apache2 -k start'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f5fea6128c6 in zend_objects_store_put (object=0x7f5ff052e160, dtor=0x7f5fea60cb00 <zend_objects_destroy_object>, free_storage=0x7f5fe28830f0 <phalcon_config_object_dtor>, clone=0x0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_objects_API.c:114
114 /build/buildd/php5-5.5.9+dfsg/Zend/zend_objects_API.c: No such file or directory.
BT FULL
Core was generated by `/usr/sbin/apache2 -k start'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f5fea6128c6 in zend_objects_store_put (object=0x7f5ff052e160, dtor=0x7f5fea60cb00 <zend_objects_destroy_object>, free_storage=0x7f5fe28830f0 <phalcon_config_object_dtor>, clone=0x0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_objects_API.c:114
114 /build/buildd/php5-5.5.9+dfsg/Zend/zend_objects_API.c: No such file or directory.
(gdb) bt full
#0 0x00007f5fea6128c6 in zend_objects_store_put (object=0x7f5ff052e160, dtor=0x7f5fea60cb00 <zend_objects_destroy_object>, free_storage=0x7f5fe28830f0 <phalcon_config_object_dtor>, clone=0x0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_objects_API.c:114
#1 0x00007f5fe2882f6d in phalcon_config_object_ctor () from /usr/lib/php5/20121212/phalcon.so
No symbol table info available.
#2 0x00007f5fea5ee4a7 in _object_and_properties_init (arg=arg@entry=0x7f5ff052e000, class_type=0x7f5ff0c3c200, properties=properties@entry=0x0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_API.c:1200
#3 0x00007f5fea5ee537 in _object_init_ex (arg=arg@entry=0x7f5ff052e000, class_type=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_API.c:1208
No locals.
#4 0x00007f5fea640f46 in ZEND_NEW_SPEC_HANDLER (execute_data=0x7f5ff050d210) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:758
#5 0x00007f5fea6149e8 in execute_ex (execute_data=0x7f5ff050d210) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#6 0x00007f5fea5dab59 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#7 0x00007f5fea69a7bf in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER (execute_data=0x7f5ff050d0d0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:2748
#8 0x00007f5fea6149e8 in execute_ex (execute_data=0x7f5ff050d0d0) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_vm_execute.h:363
#9 0x00007f5fea5dab59 in dtrace_execute_ex (execute_data=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/Zend/zend_dtrace.c:73
#10 0x00007f5fea5ec5e0 in zend_execute_scripts (type=type@entry=2, retval=retval@entry=0x0, file_count=file_count@entry=1) at /build/buildd/php5-5.5.9+dfsg/Zend/zend.c:1316
#11 0x00007f5fea69c4ed in php_handler (r=<optimized out>) at /build/buildd/php5-5.5.9+dfsg/sapi/apache2handler/sapi_apache2.c:669
#12 0x00007f5feebb0680 in ap_run_handler (r=0x7f5fee9a5f00) at config.c:169
---Type <return> to continue, or q <return> to quit---
n = 2
rv = 124
#13 0x00007f5feebb0bc9 in ap_invoke_handler (r=r@entry=0x7f5fee9a5f00) at config.c:439
#14 0x00007f5feebc5c2c in ap_internal_redirect (new_uri=<optimized out>, r=<optimized out>) at http_request.c:644
#15 0x00007f5fe899acfc in handler_redirect (r=0x7f5fee9b24f8) at mod_rewrite.c:5063
No locals.
#16 0x00007f5feebb0680 in ap_run_handler (r=0x7f5fee9b24f8) at config.c:169
#17 0x00007f5feebb0bc9 in ap_invoke_handler (r=r@entry=0x7f5fee9b24f8) at config.c:439
#18 0x00007f5feebc5c2c in ap_internal_redirect (new_uri=<optimized out>, r=<optimized out>) at http_request.c:644
#19 0x00007f5fe899acfc in handler_redirect (r=0x7f5fee9b50a0) at mod_rewrite.c:5063
No locals.
#20 0x00007f5feebb0680 in ap_run_handler (r=0x7f5fee9b50a0) at config.c:169
#21 0x00007f5feebb0bc9 in ap_invoke_handler (r=r@entry=0x7f5fee9b50a0) at config.c:439
#22 0x00007f5feebc616a in ap_process_async_request (r=0x7f5fee9b50a0) at http_request.c:317
#23 0x00007f5feebc6444 in ap_process_request (r=r@entry=0x7f5fee9b50a0) at http_request.c:363
#24 0x00007f5feebc2f02 in ap_process_http_sync_connection (c=0x7f5fee9df290) at http_core.c:190
#25 ap_process_http_connection (c=0x7f5fee9df290) at http_core.c:231
No locals.
#26 0x00007f5feebb9cc0 in ap_run_process_connection (c=0x7f5fee9df290) at connection.c:41
#27 0x00007f5feebba0a8 in ap_process_connection (c=c@entry=0x7f5fee9df290, csd=<optimized out>) at connection.c:202
---Type <return> to continue, or q <return> to quit---
#28 0x00007f5feafbc767 in child_main (child_num_arg=child_num_arg@entry=197) at prefork.c:704
#29 0x00007f5feafbc9a6 in make_child (s=0x7f5feeb1ede0, slot=197) at prefork.c:800
#30 0x00007f5feafbd60e in perform_idle_server_maintenance (p=<optimized out>) at prefork.c:902
#31 prefork_run (_pconf=<optimized out>, plog=<optimized out>, s=<optimized out>) at prefork.c:1090
#32 0x00007f5feeb9769e in ap_run_mpm (pconf=0x7f5feeb4d028, plog=0x7f5feeb1a028, s=0x7f5feeb1ede0) at mpm_common.c:96
#33 0x00007f5feeb90e36 in main (argc=3, argv=0x7fff4261bde8) at main.c:777
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
date
dba
dom
ereg
exif
FiftyOne_Degrees_Detector
fileinfo
filter
ftp
geoip
gettext
hash
iconv
intl
json
libxml
mbstring
mcrypt
memcache
memcached
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
phalcon
Phar
posix
readline
recode
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Apache Compiled in modules:
core.c
mod_so.c
mod_watchdog.c
http_core.c
mod_log_config.c
mod_logio.c
mod_version.c
mod_unixd.c
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: