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

 ID:                 23665
 Updated by:         [email protected]
 Reported by:        dm at zamang dot co dot uk
 Summary:            PHP crashes with segfault as soon as it is loaded
-Status:             Open
+Status:             Spam
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            Reproducible crash
 Operating System:   SCO OpenServer 5.0.6
 PHP Version:        4.3.2RC3 / RC4
 Block user comment: N
 Private report:     N

 New Comment:

Outdated.


Previous Comments:
------------------------------------------------------------------------
[2003-07-02 13:08:38] dm at zamang dot co dot uk

Confirmed. 



If you attempt to run either the CGI or CLI version _without_ passing it
a php script to process then php segfaults.



If you pass a php script it runs though as expected. Script can be
passed on the command line 'php <filename>' or within  a shell script
'#!<path to php exec>'. Going to try a new version of GNU gettext to see
if that has any effect.



This is with the same stable release as I tried yesterday. The segfault
seems linked to the system reading in manually entered commands.



SCO OpenServer 5.0.6

Gcc 2.95.2pl1 (according to software manager)

------------------------------------------------------------------------
[2003-07-02 06:33:21] s dot vanvelthem at ibelgique dot com

I forgot I'm using the latest stable release downloaded today at 9:30

------------------------------------------------------------------------
[2003-07-02 06:32:02] s dot vanvelthem at ibelgique dot com

Sorry. 



I found where is the problem, the segmentation fault always comes when I
run a CLI-script without specifying the full path name. I hope this can
be usefull



ex :



* ./my_script.php gives me a segmentation fault

* /home/seb/my_script.php is OK



see also php_scandir.c error at compile time, is this useful?



  

I'm using :

 

 SCO OpenServer 5.05

 Gcc 2.95.2pl1

 UDK 7.1.1



ERRORS AND WARNING NOTES



./configure --enable-cli --disable-cgi



-> warning : you will need bison 1.28

-> warning : you will need bison 1.28 if you want to regenerate the Zend
parser (found 1.25)





gmake 



->/seb/php4-STABLE-200307020930/ext/standard/exec.c: In function
`proc_open_rsrc_dtor':

->/seb/php4-STABLE-200307020930/ext/standard/exec.c:578: warning: cast
from pointer to integer of different size

->/seb/php4-STABLE-200307020930/ext/standard/exec.c: In function
`zif_proc_open':

->seb/php4-STABLE-200307020930/ext/standard/exec.c:993: warning: cast to
pointer from integer of different size

->/seb/php4-STABLE-200307020930/ext/standard/var_unserializer.c: In
function `php_var_unserialize':

->/seb/php4-STABLE-200307020930/ext/standard/var_unserializer.c:308:
warning: comparison is always false due to limited range of data type

->seb/php4-STABLE-200307020930/main/php_scandir.c: In function
`php_scandir':

->/seb/php4-STABLE-200307020930/main/php_scandir.c:116: warning: passing
arg 4 of `qsort' from incompatible pointer type

------------------------------------------------------------------------
[2003-07-01 07:37:29] [email protected]

Fixed -> closed.



------------------------------------------------------------------------
[2003-07-01 06:45:25] s dot vanvelthem at ibelgique dot com

Seems to be resolved.



I've just downloaded the latest php stable release today and upgraded
gcc-2.95 to gcc-2.95.2pl1. No segfault anymore.



I don't know if upgrading to gcc_pl1 solves the problem or if the
latest-stable release brough the correction.

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


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/bug.php?id=23665


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

Reply via email to