ID:               26884
 User updated by:  forlevibr at yahoo dot com dot br
 Reported By:      forlevibr at yahoo dot com dot br
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Slackware 9
 PHP Version:      4CVS-2004-01-12
 New Comment:

Hi
When run the make I get the Error below

...
gcc: sapi/cli/php_cli.o: No such file or directory
gcc: sapi/cli/getopt.o: No such file or directory
make: *** [sapi/cli/php] Error 1

What to do?


Previous Comments:
------------------------------------------------------------------------

[2004-01-14 10:38:21] [EMAIL PROTECTED]

First do this:

# rm config.cache && ./configure --prefix=/usr/local/php --disable-all
--disable-cgi --enable-debug && make && make install-cli

ie. compile a debug enabled PHP CLI binary without anything extra.
Also, change the teste.sh to run the php script like this:

/usr/local/php/bin/php -n /etc/cron/teste.php

(this will disable loading of any php.ini file)

Do you still get the crash?



------------------------------------------------------------------------

[2004-01-14 08:39:15] forlevibr at yahoo dot com dot br

Hi,
I would like to ask you how to generate a core file if I'm getting the
crash from "cron" and not from a cgi or from a http.
Running directly from cgi the script runs and does not crash, as you
know.

The steps on PHP docs are talking how produce a core file using cgi or
http as you can see below:

"If you don't have a core file yet:

    * Remove any limits you may have on core dump size from your
shell:
          o tcsh: unlimit coredumpsize
          o bash/sh: ulimit -c unlimited
    * Ensure that the directory in which you're running PHP, or the
PHP-enabled httpd, has write permissions for the user who's running
PHP.
    * Cause PHP to crash:
          o PHP CGI: Simply run php with the script that crashes it
          o PHP Apache Module: Run httpd -X, and access the script that
crashes PHP."

So, is there a way how we can go ahead with this case, or generating a
core as you told running it with "cron" or other way where we can find
the problem and try to solve it? 
Thanks.

------------------------------------------------------------------------

[2004-01-13 13:22:26] [EMAIL PROTECTED]

Do you get a core file anywhere..? The GDB backtrace would help a lot.


------------------------------------------------------------------------

[2004-01-13 09:07:02] forlevibr at yahoo dot com dot br

Sorry
The correct error message is:

/etc/cron/teste.sh: line 1: 31063 Segmentation fault
/usr/local/php/bin/php /etc/cron.bol/teste.php

------------------------------------------------------------------------

[2004-01-13 09:02:00] forlevibr at yahoo dot com dot br

I updated to last version (200401131230 ) and the problem continue.

My new script teste.php:

<?php
mail("[EMAIL PROTECTED]", "Subject", "Text");
?>

The error:

/etc/cron.bol/teste.sh: line 1: 31063 Segmentation fault
/usr/local/php/bin/php /etc/cron.bol/teste.php

------------------------------------------------------------------------

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/26884

-- 
Edit this bug report at http://bugs.php.net/?id=26884&edit=1

Reply via email to