segfaults from 5.2.4-2ubuntu5.15
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Fix Released
|
High
|
Steve Beattie | ||
Bug Description
Binary package hint: php5
After upgrading from 5.2.4-2ubuntu5.14 to 5.2.4-2ubuntu5.15 we are experiencing a segfault in PHP code that has been running fine for many months on Ubuntu 8.04.
Looking at the patches added to this release, my initial guess is that it relates to the backport of this fix: http://
The segfault occurs in this code:
http://
at line 150's function call.
The two adjacent function signatures are very similar:
function apachesolr_
function apachesolr_
However, if I remove the & from the 2nd one, the segfault goes away:
function apachesolr_
The class of the $document object is this:
http://
And you'll note that it implements __get(), __set(), __isset(), and __unset()
tags: | added: patch |
Attached is a reasonably minimal test file. You also need to have the Document.php file in the same directory:
svn export http:// solr-php- client. googlecode. com/svn/ trunk/Apache/ Solr/Document. php@22
running test.php is sufficient to cause a segfault.
# php --version
PHP 5.2.4-2ubuntu5.15 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 28 2011 14:41:00)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
# php test.php
Segmentation fault
# tail /var/log/syslog:
2011-05- 03T19:43: 55+00:00 kern.info web-50 kernel: [49000.621496] php[13034]: segfault at 29c200e1 rip 675326 rsp 7fff0ad7c9a0 error 4