ID: 20985 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Reproducible crash Operating System: Redhat Linux 7.3 & 8 PHP Version: 4.3.0RC3 New Comment:
If php is built into apache, where should I then be able to find a core file? apache is here: /usr/local/apache/bin Previous Comments: ------------------------------------------------------------------------ [2002-12-13 16:53:39] [EMAIL PROTECTED] Go to the php directory, inside that directory edit a file called config.nice, one line above the line, which contains "$@" add the following line: '--enable-debug' \ now do: rm config.cache; make clean; ./config.nice; make; make install You've now compiled & installed PHP that contains debugging symbols, when a crash occurs you should be able to see more detailed information when analyzing core files generated due to crash in PHP. To see data at a certain step use gdb command such as frame 5, which will take you to a particular frame, list command, which will show the source code at this point and then p command to print the values of various variables & pointers. ------------------------------------------------------------------------ [2002-12-13 16:40:34] [EMAIL PROTECTED] > Could you please compile your PHP with --enable-debug I have done so. > If you are able to do that then go the step #5 > (free_zend_constant) and see what data the various > pointers contains. > I am especially interested in seeing what constant is > being freed and if it is the same one everytime. Could you instruct me on how to do this? My knowledge only covers compiling and the information from here: http://bugs.php.net/bugs-generating-backtrace.php ------------------------------------------------------------------------ [2002-12-13 09:56:09] [EMAIL PROTECTED] Could you please compile your PHP with --enable-debug, this will make you backtrace contain a lot more information. If you are able to do that then go the step #5 (free_zend_constant) and see what data the various pointers contains. I am especially interested in seeing what constant is being freed and if it is the same one everytime. ------------------------------------------------------------------------ [2002-12-13 09:53:03] [EMAIL PROTECTED] I have also submitted a bug report to Redhat: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=79561 I hope that's ok. ------------------------------------------------------------------------ [2002-12-13 09:47:25] [EMAIL PROTECTED] I have now tested with RPMs from Redhat: apache-1.3.27-2.i386.rpm php-4.1.2-7.3.6.i386.rpm php-mysql-4.1.2-7.3.6.i386.rpm And these from MySQL: MySQL-shared-3.23.54-1.i386.rpm MySQL-4.0.5-0.i386.rpm And i get the same error: [Fri Dec 13 16:45:25 2002] [notice] child pid 1273 exit signal Segmentation fault (11) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20985 -- Edit this bug report at http://bugs.php.net/?id=20985&edit=1