php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6820 readdir function cause php core dump while reading second entry
Submitted: 2000-09-20 21:46 UTC Modified: 2000-09-20 22:13 UTC
From: robert at ahoj dot pl Assigned:
Status: Closed Package: Directory function related
PHP Version: 4.0.2 OS: SunOS 5.8 Generic i86pc i386 i86
Private report: No CVE-ID: None
 [2000-09-20 21:46 UTC] robert at ahoj dot pl
<?
$fi=opendir("./");
echo readdir($fi); //ok
echo readdir($fi); //and now dumps core :(
closedir($fi);
?>

---------------------
apache compiled with  gcc
configure line:
./configure \
"--with-layout=Apache" \
"--prefix=/usr2/web/apache" \
"--exec-prefix=/usr2/web/apache" \
"--activate-module=src/modules/php4/libphp4.a" \
"--enable-module=log_referer" \
---------------------
php compiled
'./configure \
--with-apache=/usr2/web/src/apache_1.3.12' 
'--with-mysql=/usr2/mysql/' 
'--with-db'
'--with-gdbm=/usr/local'
'--disable-debug' 
'--enable-track-vars'
'--with-gd=/usr/local'
---------------------
from gdb
#0  0x80fdcc8 in execute ()
#1  0xdfbd31a9 in ?? ()
#2  0x8070bc0 in php_execute_script ()
#3  0x80e15ac in apache_php_module_main ()
#4  0x806e37a in send_php ()
#5  0x806e3b2 in send_parsed_php ()
#6  0x811f595 in ap_invoke_handler ()
#7  0x81339cc in ap_some_auth_required ()
#8  0x8133a36 in ap_process_request ()
#9  0x812ab57 in ap_child_terminate ()
#10 0x812ad19 in ap_child_terminate ()
#11 0x812ae92 in ap_child_terminate ()
#12 0x812b4b4 in ap_child_terminate ()
#13 0x812bcdc in main ()
#14 0x806d6df in _start ()

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-20 22:13 UTC] sniper@php.net
Fixed in CVS. Please try latest CVS or snapshot from http://snaps.php.net/

--Jani
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Nov 24 21:01:23 2020 UTC