It seems that it has become impossible to run web-services on Debian 64bit platform. The segfaults are now too frequent and repeatable on the same web page. There is something completely broken on Lenny. I even tried using Zend Server instead of regular php and the results are still:
[Sun Apr 25 11:57:37 2010] [notice] child pid 5240 exit signal Segmentation fault (11) [Sun Apr 25 11:57:38 2010] [notice] child pid 5241 exit signal Segmentation fault (11) [Sun Apr 25 11:57:38 2010] [notice] child pid 5242 exit signal Segmentation fault (11) [Sun Apr 25 11:57:39 2010] [notice] child pid 5214 exit signal Segmentation fault (11) [Sun Apr 25 11:57:40 2010] [notice] child pid 5218 exit signal Segmentation fault (11) [Sun Apr 25 11:57:40 2010] [notice] child pid 5235 exit signal Segmentation fault (11) [Sun Apr 25 11:57:41 2010] [notice] child pid 5216 exit signal Segmentation fault (11)
I guess I've also found this happy camper:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=537794 and it is the end of the road for me.
Also the second "happy happy joy joy"- moment was that with newer Zend-Framework. The old code stops working completely with "Fatal error: Unsupported operand types in /usr/local/zend/share/ZendFramework/library/Zend/Translate/Adapter.php on line 212". No trace but I guess it was caused by the very first line in the code. Downgrading and manually removing all cache-files helped with this but the segfault remains.
The segfault also happens on CentOS as well and it is not actually related to fore mentioned Debian bug at all, even though I have that bug as well. Somehow I had managed not to commit a change I had made and a regression bug popped up. This segfault was caused by by a method calling itself in an unending recursion. When the stack runs out, it segfaults the php which I'm actually very happy about.