LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   PHP compile error - bug report needs backtrace - how to do this? (http://www.linuxquestions.org/questions/linux-software-2/php-compile-error-bug-report-needs-backtrace-how-to-do-this-706119/)

jpmad4it 02-20-2009 02:17 AM

PHP compile error - bug report needs backtrace - how to do this?
 
Hi everyone,

I have been trying to compile PHP on my Linux machine, but I get a compile error.

The details of the error have been submitted to PHP bugs here:
http://bugs.php.net/bug.php?id=47441

The guys there want a backtrace, but I'm not sure how to do this. I've looked at their documentation, but I'm confused as it mentions getting a core file of the error by running the script that caused the fault. Would that be the run-tests.php script if the "make test" fails?

I think I need to run the PHP executable in php/sapi/cli/ under GDB, and then try to run run-tests.php.....but I'm not sure. I did try this but Linux says that there is no executable there. Here is what I did:

TEST_PHP_EXECUTABLE=/home/php-5.3.0beta1/sapi/cli/php gdb

Once GDB starts to run I enter:

run /home/php-5.3.0beta1/run-tests.php

The output is:

Starting program: /home/php-5.2.8/run-tests.php
No executable file specified.
Use the "file" or "exec-file" command.

Can anyone help with this please?

Any help is much appreciated.

Regards
Jp


All times are GMT -5. The time now is 11:25 PM.