[Bug 186547] [NEW] Include a non-exist file caused segmentation fault

2008-01-28 Thread Finjon Kiang
Public bug reported:

Binary package hint: libapache2-mod-php5

Test script:
?php include('this_file_is_not_there.php'); ?

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(this_file_is_not_there.php): failed to open stream: No
such file or directory in /home/kiang/public_html/test.php on line 1

Warning: include(): Failed opening 'this_file_is_not_there.php' for
inclusion (include_path='.:/usr/share/php:/usr/share/pear') in
/home/kiang/public_html/test.php on line 1

Environments:
dpkg -l | grep php5
ii  libapache2-mod-php55.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-common5.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-gd5.2.3-1ubuntu6.3 
GD module for php5
ii  php5-mcrypt5.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  apache22.2.4-3build1
Next generation, scalable, extendable web se
ii  apache2-mpm-prefork2.2.4-3build1
Traditional model for Apache HTTPD
ii  apache2-threaded-dev   2.2.4-3build1
development headers for 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-php55.2.3-1ubuntu6.3 
server-side, HTML-embedded scripting languag
ii  libapache2-mod-python  3.3.1-2  
Apache 2 module that embeds Python within th
ii  libapache2-svn 1.4.4dfsg1-1ubuntu3  
Subversion server modules for Apache

** Affects: php5 (Ubuntu)
 Importance: Undecided
 Status: New

-- 
Include a non-exist file caused segmentation fault
https://bugs.launchpad.net/bugs/186547
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 186547] [NEW] Include a non-exist file caused segmentation fault

2008-01-28 Thread Mathias Gug

On Mon, Jan 28, 2008 at 08:11:30AM -, Finjon Kiang wrote:
 Test script:
 ?php include('this_file_is_not_there.php'); ?
 
 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(this_file_is_not_there.php): failed to open stream: No
 such file or directory in /home/kiang/public_html/test.php on line 1
 
 Warning: include(): Failed opening 'this_file_is_not_there.php' for
 inclusion (include_path='.:/usr/share/php:/usr/share/pear') in
 /home/kiang/public_html/test.php on line 1
 

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
/etc/apache2/mods-enabled)
Could you attach your apache configuration ?

  status incomplete

--
Mathias


** Changed in: php5 (Ubuntu)
   Status: New = Incomplete

-- 
Include a non-exist file caused segmentation fault
https://bugs.launchpad.net/bugs/186547
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs