[PHP-DEV] PHP3: segfaults when loading its config file. From: Stephane ENTEN (tuf <email protected>)
Date: 01/29/00

Hi,

I'm getting a strange problem with PHP compiled as an Apache
shared module.

While loading the module, after an strace (I'm using Linux) I
saw this:

open("./php3.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/php3.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/httpd/php3.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) ---

Seems that not finding its config file doesn't make it very happy.

In fact I moved the config file since when it finds:

open("/etc/httpd/php3.ini", O_RDONLY) = 4
ioctl(4, TCGETS, 0xbfffa6a4) = -1 ENOTTY (Inappropriate ioctl for device)
read(4, "[PHP_3]\n\n;;;;;;;;;;;;;;;;;;;\n; A"..., 8192) = 8192
read(4, "ode)\n\t\t\t\t\t\t\t\t; Note that this is"..., 8192) = 3496
read(4, "", 4696) = 0
read(4, "", 8192) = 0
ioctl(4, TCGETS, 0xbfffa684) = -1 ENOTTY (Inappropriate ioctl for device)
--- SIGSEGV (Segmentation fault) ---

Why the fsck PHP tries to ioctl() its config file ? :)

-- 
Stephane ENTEN

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>