Public bug reported:

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://bugs.php.net/52879

The segfault occurs in this code:
http://drupalcode.org/project/apachesolr.git/blob/c41231e49f06ab32bb48f34c4a4dc0f21162321d:/apachesolr.index.inc

at line 150's function call.

The two adjacent function signatures are very similar:

function apachesolr_add_tags_to_document(&$document, $text) {
function apachesolr_add_taxonomy_to_document(&$document, $node) {

However, if I remove the & from the 2nd one, the segfault goes away:

function apachesolr_add_taxonomy_to_document($document, $node) {

The class of the $document object is this:

http://code.google.com/p/solr-php-
client/source/browse/trunk/Apache/Solr/Document.php?r=15

And you'll note that it implements __get(), __set(), __isset(), and
__unset()

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/776642

Title:
  segfaults from  5.2.4-2ubuntu5.15

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to