When installing (well actually restoring from backup)
an OPT installation and the user permissions are not
set correctly, OPT will die with a segmentation fault.
This is caused by the error handler, which keeps on
trying to connect to the database, while a connection
cannot be made.
In my case, I didn't grant the opt_user access to my
database, so I couldn't start OPT at all. All I got was
an apache segfault.
The error routine needs to be fixed, or the check for
database access needs to be extended.
function CRM_query_error($err_msg) in include/general.php