View Single Post
  #3   (View Single Post)  
Old 7th July 2009
Albright Albright is offline
Port Guard
 
Join Date: Apr 2009
Posts: 14
Default

Thanks for the help, CS, but I'm afraid I haven't figured it out yet.

Quote:
Originally Posted by Carpetsmoker View Post
I'm not sure, but I suspect this is a bug in php.
Perhaps, but then why does it only happen on this VPS?

Quote:
Does php leave a coredump? Try analyzing that (gdb -c), try recompiling PHP & extensions with debugging symbols (-DWITH_DEBUG).
It does, though since it tends to put it in a random Drupal directory, I have to use the find command to find it. However, once I studied up a bit on gdb, I couldn't get it to tell me anything useful:

Code:
> gdb -c /usr/local/www/www/sites/all/modules/nice_menus/php-cgi.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".
Core was generated by `php-cgi'.
Program terminated with signal 11, Segmentation fault.
#0  0x288f9107 in ?? ()
(gdb) bt
#0  0x288f9107 in ?? ()
Cannot access memory at address 0xbf9ffcb0
(gdb) exit
And after I compiled PHP with the Debug flag, it wasn't able to find the PHP extensions, causing other unrelated errors. =[

Quote:
Also, what exactly are you doing in drupal to cause this error?
I am enabling CSS optimization. This feature basically concatenates the various CSS files the site uses so that all the CSS is together in one file. Drupal sites can easily end up with a number of CSS files in the low teens at the least, so this feature is pretty important for production sites.

Quote:
Also, these options might be useful in php.ini
Code:
report_zend_debug = 1
fastcgi.logging = 1
Where will fastcgi.logging log to? Something in /var/log?
Reply With Quote