php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68514 Segmentation fault
Submitted: 2014-11-27 10:09 UTC Modified: 2014-12-30 10:43 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: sprotte at visionconnect dot de Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.6.3 OS: openSUSE 12.3
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-11-27 10:09 UTC] sprotte at visionconnect dot de
Description:
------------
Since updating to PHP 5.6 we got random segmentation faults in our PHP-FPM environment. I have not been able to reproduce this.
The amount of segmentation faults raised to a very noticable level and I configured PHP to save core dumps to be able to investigate further. After just this configuration change, the amount of segmentation faults has massively reduced, but I have gotten the same error 3 times in 3 days (see 1st backtrace) and another error today (see 2nd backtrace).



Our Environment:
Suhosin patch applied

Extensions:
apcu.so
bcmath.so
bz2.so
calendar.so
ctype.so
curl.so
dom.so
ftp.so
gd.so
geoip.so
gettext.so
gmp.so
iconv.so
imap.so
intl.so
json.so
mbstring.so
mcrypt.so
mysqli.so
mysql.so
opcache.so
openssl.so
pcntl.so
posix.so
shmop.so
soap.so
sockets.so
suhosin.so
sysvmsg.so
sysvsem.so
sysvshm.so
xmlreader.so
zip.so
zlib.so





Actual result:
--------------
Backtrace 1 (3x):
Program terminated with signal 11, Segmentation fault.
#0  0x00007fac9d049acf in instanceof_function_ex (instance_ce=0x7facaaa559c8, ce=ce@entry=0x7facaa7747a0, interfaces_only=interfaces_only@entry=0 '\000') at /usr/src/debug/php-5.6.3/Zend/zend_operators.c:1880
1880                    if (instanceof_function(instance_ce->interfaces[i], ce TSRMLS_CC)) {
(gdb) bt
#0  0x00007fac9d049acf in instanceof_function_ex (instance_ce=0x7facaaa559c8, ce=ce@entry=0x7facaa7747a0, interfaces_only=interfaces_only@entry=0 '\000') at /usr/src/debug/php-5.6.3/Zend/zend_operators.c:1880
#1  0x00007fac9d049a87 in instanceof_function (instance_ce=<optimized out>, ce=ce@entry=0x7facaa7747a0) at /usr/src/debug/php-5.6.3/Zend/zend_operators.c:1899
#2  0x00007fac90ae063f in soap_error_handler (error_num=8192, error_filename=0x7fac9d10af3b "Unknown", error_lineno=0, 
    format=0x7fac9d143240 "Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input"..., args=0x7fffca0cda00) at /usr/src/debug/php-5.6.3/ext/soap/soap.c:2148
#3  0x00007fac9d04e61c in zend_error (type=8192, 
    format=0x7fac9d143240 "Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input"...) at /usr/src/debug/php-5.6.3/Zend/zend.c:1145
#4  0x00007fac9cff2067 in php_default_post_reader () at /usr/src/debug/php-5.6.3/main/php_content_types.c:75
#5  php_default_post_reader () at /usr/src/debug/php-5.6.3/main/php_content_types.c:51
#6  0x00007fac9cfedf8d in sapi_read_post_data () at /usr/src/debug/php-5.6.3/main/SAPI.c:247
#7  sapi_activate () at /usr/src/debug/php-5.6.3/main/SAPI.c:482
#8  0x00007fac9cfe4e3c in php_request_startup () at /usr/src/debug/php-5.6.3/main/main.c:1634
#9  0x00007fac9cea4ac1 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/php-5.6.3/sapi/fpm/fpm/fpm_main.c:1898




Backtrace 2 (1x):
Program terminated with signal 11, Segmentation fault.
#0  0x00007fac9d075e08 in zend_std_object_get_class (object=0x7facaab99a08) at /usr/src/debug/php-5.6.3/Zend/zend_object_handlers.c:1528
1528            return zobj->ce;
(gdb) #0  0x00007fac9d075e08 in zend_std_object_get_class (object=0x7facaab99a08) at /usr/src/debug/php-5.6.3/Zend/zend_object_handlers.c:1528
#1  0x00007fac90ae0634 in soap_error_handler (error_num=8192, error_filename=0x7fac9d10af3b "Unknown", error_lineno=0, 
    format=0x7fac9d143240 "Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input"..., args=0x7fffca0cda00) at /usr/src/debug/php-5.6.3/ext/soap/soap.c:2148
#2  0x00007fac9d04e61c in zend_error (type=8192, 
    format=0x7fac9d143240 "Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input"...) at /usr/src/debug/php-5.6.3/Zend/zend.c:1145
#3  0x00007fac9cff2067 in php_default_post_reader () at /usr/src/debug/php-5.6.3/main/php_content_types.c:75
#4  php_default_post_reader () at /usr/src/debug/php-5.6.3/main/php_content_types.c:51
#5  0x00007fac9cfedf8d in sapi_read_post_data () at /usr/src/debug/php-5.6.3/main/SAPI.c:247
#6  sapi_activate () at /usr/src/debug/php-5.6.3/main/SAPI.c:482
#7  0x00007fac9cfe4e3c in php_request_startup () at /usr/src/debug/php-5.6.3/main/main.c:1634
#8  0x00007fac9cea4ac1 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/php-5.6.3/sapi/fpm/fpm/fpm_main.c:1898


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-01 20:20 UTC] aharvey@php.net
-Status: Open +Status: Feedback -Package: *General Issues +Package: Reproducible crash
 [2014-12-01 20:20 UTC] aharvey@php.net
Do the segfaults still occur without Suhosin applied? Similarly, does disabling the SOAP extension help?
 [2014-12-02 09:50 UTC] sprotte at visionconnect dot de
I am not able to reproduce the segmentation fault therefore I cannot check with the soap extension disabled, because this is a running production system and the soap extension is needed for the application.
It's also very strange because the last 4 days there was not a single segmentation fault in contrast to before the activation of the core dumps when I had like 50 per day.
 [2014-12-30 10:43 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC