I reduced this to a much smaller test case. The output of the attached script is:
# php test.php 18 20 32 Segmentation fault
This suggests the segfault is happening during the return from function add_taxonomy_to_document().
# uname -a Linux web-98.bjaspan.hosting.acquia.com 2.6.24-10-xen #1 SMP Tue Sep 8 19:06:53 UTC 2009 i686 GNU/Linux # php -v PHP 5.2.4-2ubuntu5.15 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 28 2011 14:43:25) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
I reduced this to a much smaller test case. The output of the attached script is:
# php test.php
18
20
32
Segmentation fault
This suggests the segfault is happening during the return from function add_taxonomy_ to_document( ).
# uname -a bjaspan. hosting. acquia. com 2.6.24-10-xen #1 SMP Tue Sep 8 19:06:53 UTC 2009 i686 GNU/Linux
Linux web-98.
# php -v
PHP 5.2.4-2ubuntu5.15 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 28 2011 14:43:25)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies