From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 4CVS-2003-02-13 (stable)
PHP Bug Type: Reproducible crash
Bug description: PHP dies while loading php.ini
current (Thu Feb 13 22:00:53 GMT 2003) php-4.3 from CVS compiled as
follows:
./configure --disable-ipv6 --with-config-file-path=/etc/httpd/conf
--enable-memory-limit --disable-display-source --enable-track-var
--with-imap --with-imap-ssl --with-apxs=/usr/local/apache/current/bin/apxs
--with-gd=/usr --with-jpeg-dir=/usr --with-xpm-dir=/usr/X11R6
--with-mysql=/usr/local/mysql/current --with-curl --enable-ftp
--enable-dbase --enable-xml --with-xml --with-gettext --with-mcrypt
--disable-posix
prevents Apache-1.3.27 from starting (segfault). strace on the CLI SAPI
shows a problem accessing php.ini:
close(3) = 0
brk(0x822c000) = 0x822c000
open("sapi/cli//php-cli.ini", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/httpd/conf/php-cli.ini", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("sapi/cli//php.ini", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/httpd/conf/php.ini", O_RDONLY) = 3
getcwd("/usr/local/src/php-cvs/php4", 4095) = 28
lstat64("/etc", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
lstat64("/etc/httpd", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/etc/httpd/conf", {st_mode=S_IFDIR|0771, st_size=4096, ...}) = 0
lstat64("/etc/httpd/conf/php.ini", {st_mode=S_IFREG|0644, st_size=331,
...}) = 0
brk(0x8231000) = 0x8231000
ioctl(3, 0x5401, 0xbfffca80) = -1 ENOTTY (Inappropriate ioctl
for device)
fstat64(3, {st_mode=S_IFREG|0644, st_size=331, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x40018000
read(3, "register_globals = on\nignore_use"..., 8192) = 331
read(3, "", 4096) = 0
read(3, "", 8192) = 0
ioctl(3, 0x5401, 0xbfffbed0) = -1 ENOTTY (Inappropriate ioctl
for device)
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
The exact same config works fine with plain 4.3 tarball compile.
The system is RedHat 7.2 with autoconf/automake/libtool upgraded to play
nice with PHP/CVS.
The /etc/httpd/conf/php.ini file is as follows:
register_globals = on
ignore_user_abort = on
log_errors = true
#zend_optimizer.optimization_level = 15
#zend_extension = "/usr/local/lib/ZendOptimizer.so"
display_errors = false
memory_limit = 655360000
post_max_size = 655360000
upload_max_filesize = 327680000
upload_tmp_dir = /var/tmp
max_input_time = 60
max_execution_time = 30
If I can help with any further details please let me know.
Thanks
--
Edit bug report at http://bugs.php.net/?id=22215&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22215&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22215&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22215&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22215&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22215&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22215&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22215&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22215&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22215&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22215&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22215&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22215&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22215&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22215&r=gnused