php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6573 php.ini parsing crashes php (trace included)
Submitted: 2000-09-06 07:44 UTC Modified: 2000-09-07 11:44 UTC
From: cahagn_o at epita dot fr Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Latest CVS (06/09/2000) OS: NetBSD, OpenBSD, probably FreeBS
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cahagn_o at epita dot fr
New email:
PHP Version: OS:

 

 [2000-09-06 07:44 UTC] cahagn_o at epita dot fr
This has been tested on several platforms, snapshot
200009060345:

NetBSD 1.3.3, gcc 2.7.2.2
NetBSD 1.4.2, egcs 2.91.60
OpenBSD 2.6, gcc 2.95.1

(this bug does not occur on Linux, egcs 2.91.66)

Here's the configure line:

./configure --with-config-file-path=/path/to/valid/php_ini/ \
--enable-debug \
--without-mysql \
--without-gd

php will then crash systematically when launched, the
php.ini is the latest one (although the problem also exist
with 4.0.2 ini file).

Here's what gdb says:

Program received signal SIGSEGV, Segmentation fault.
0x5cba0 in virtual_file_ex (state=0x0, path=0x0, verify_path=0)
    at tsrm_virtual_cwd.c:332
332
(gdb) bt
#0  0x5cba0 in virtual_file_ex (state=0x0, path=0x0,
verify_path=0)
    at tsrm_virtual_cwd.c:332
CWD_STATE_COPY(old_state, state);

I can solve this bug by:
 - compiling without --with-config-file-path, then php
doesn't find any php.ini file and runs 'php -v' fine
(although it displays 4.0.2 but I guess that's another problem)
 - deleting php.ini from the repertory mentioned by
--with-config-file-path, then 'php -v' works.

Sorry if this duplicate with a post to php-dev@ but I
thought it'd be easier to keep track of this bug this way.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-07 11:44 UTC] andi@php.net
Should be fixed in latest CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 21:01:29 2024 UTC