From: m dot kurzyna at crystalpoint dot pl Operating system: Linux PHP version: 5.3CVS-2008-05-23 (snap) PHP Bug Type: *Compile Issues Bug description: with-config-file-path causes segmentation fault
Description: ------------ Configuring build --with-config-file-path=/etc/php causes segmentation fault when invoking binary (both CLI and CGI). Reproduce code: --------------- ./configure --with-config-file-path=/etc/php make ./sapi/cli/php Actual result: -------------- [EMAIL PROTECTED] n1]$ ./sapi/cgi/php-cgi Segmentation fault A strace follows: [...] open("/etc/php/php.ini", O_RDONLY) = 3 lstat("/etc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/etc/php", {st_mode=S_IFDIR|0755, st_size=52, ...}) = 0 lstat("/etc/php/php.ini", {st_mode=S_IFREG|0644, st_size=42387, ...}) = 0 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffe8ff0d60) = -1 ENOTTY (Inappropriate ioctl for device) fstat(3, {st_mode=S_IFREG|0644, st_size=42387, ...}) = 0 mmap(NULL, 42403, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b4dc1b13000 munmap(0x2b4dc1b13000, 42387) = 0 close(3) = 0 mmap(NULL, 323584, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0x2b4dc1b13000 brk(0xa42000) = 0xa42000 brk(0xa63000) = 0xa63000 brk(0xa84000) = 0xa84000 futex(0x2b4dc2d11ae0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 brk(0xaa5000) = 0xaa5000 brk(0xac6000) = 0xac6000 brk(0xae7000) = 0xae7000 brk(0xb08000) = 0xb08000 brk(0xb29000) = 0xb29000 open("/etc/php/browscap.ini", O_RDONLY) = 3 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffe8ff1da0) = -1 ENOTTY (Inappropriate ioctl for device) fstat(3, {st_mode=S_IFREG|0644, st_size=319838, ...}) = 0 mmap(NULL, 319854, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b4dc1b62000 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ -- Edit bug report at http://bugs.php.net/?id=45079&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45079&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45079&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45079&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45079&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45079&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45079&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45079&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45079&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45079&r=support Expected behavior: http://bugs.php.net/fix.php?id=45079&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45079&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45079&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45079&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45079&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45079&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45079&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45079&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45079&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45079&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45079&r=mysqlcfg