Include a non-exist file caused segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libapache2-mod-php5
Test script:
<?php include(
Apache Error log:
[Mon Jan 28 16:08:33 2008] [notice] child pid 14463 exit signal Segmentation fault (11)
Executed from command line:
php -q test.php
Warning: include(
Warning: include(): Failed opening 'this_file_
Environments:
dpkg -l | grep php5
ii libapache2-mod-php5 5.2.3-1ubuntu6.3 server-side, HTML-embedded scripting languag
ii php5 5.2.3-1ubuntu6.3 server-side, HTML-embedded scripting languag
rc php5-cgi 5.2.3-1ubuntu6 server-side, HTML-embedded scripting languag
ii php5-cli 5.2.3-1ubuntu6.3 command-line interpreter for the php5 script
ii php5-common 5.2.3-1ubuntu6.3 Common files for packages built from the php
ii php5-curl 5.2.3-1ubuntu6.3 CURL module for php5
ii php5-dev 5.2.3-1ubuntu6.3 Files for PHP5 module development
ii php5-gd 5.2.3-1ubuntu6.3 GD module for php5
ii php5-mcrypt 5.2.3-0ubuntu1 MCrypt module for php5
ii php5-mysql 5.2.3-1ubuntu6.3 MySQL module for php5
rc php5-pgsql 5.2.3-1ubuntu6 PostgreSQL module for php5
dpkg -l | grep apache
ii apache2 2.2.4-3build1 Next generation, scalable, extendable web se
ii apache2-mpm-prefork 2.2.4-3build1 Traditional model for Apache HTTPD
ii apache2-
ii apache2-utils 2.2.4-3build1 utility programs for webservers
ii apache2.2-common 2.2.4-3build1 Next generation, scalable, extendable web se
ii libapache2-mod-php5 5.2.3-1ubuntu6.3 server-side, HTML-embedded scripting languag
ii libapache2-
ii libapache2-svn 1.4.4dfsg1-1ubuntu3 Subversion server modules for Apache
On Mon, Jan 28, 2008 at 08:11:30AM -0000, Finjon Kiang wrote: 'this_file_ is_not_ there.php' ); ?> this_file_ is_not_ there.php) : failed to open stream: No public_ html/test. php on line 1 is_not_ there.php' for path='. :/usr/share/ php:/usr/ share/pear' ) in public_ html/test. php on line 1
> Test script:
> <?php include(
>
> Apache Error log:
> [Mon Jan 28 16:08:33 2008] [notice] child pid 14463 exit signal Segmentation fault (11)
>
> Executed from command line:
> php -q test.php
>
> Warning: include(
> such file or directory in /home/kiang/
>
> Warning: include(): Failed opening 'this_file_
> inclusion (include_
> /home/kiang/
>
I cannot reproduce your problem. A test script run under mod_php gives
the expected result (same as the command line output).
Could you post the list of your enabled modules ? (ls -l mods-enabled)
/etc/apache2/
Could you attach your apache configuration ?
status incomplete
--
Mathias