I'm looking for a relatively painless way to track down segmentation faults in PHP (as reported in the Apache error log). This is my LAMP setup at the moment:
Linux: OpenSUSE 11.3 x86_64
The code in question is not my own, it is Gallery2: http://gallery.menalto.com A typical scenario is that I go to the gallery main page and none of the thumbnails appear but I get a new set of segmentation fault errors in the error log.
Given the relative complexity of that software, it's not particularly suited to simple forms of debugging. I'd like to be able to step through the code and see exactly what is happening. "Solutions" I've seen so far for doing this have been pretty far from "relatively painless."
I've successfully used Gallery2 on this server (earlier versions of LAMP software packages) and on other servers, so I assume there is something defective in my current configuration, but without being able to see where the fault is occurring, I can't fix or work around it.