#36838 [Opn->Bgs]: segfault with unclosed dir on streamwrapper
| From: | mike@php.net | Date: | Tue, 28 Mar 2006 10:45:42 +0000 |
| Subject: | #36838 [Opn->Bgs]: segfault with unclosed dir on streamwrapper | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94976@lists.php.net to get a copy of this message | ||
ID: 36838
Updated by: mike@php.net
Reported By: theseer@php.net
-Status: Open
+Status: Bogus
-Bug Type: Reproducible crash
+Bug Type: Streams related
Operating System: Linux
PHP Version: 5.1.2
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
Duplicate of bug #36320
Previous Comments:
------------------------------------------------------------------------
[2006-03-23 22:36:31] theseer@php.net
Description:
------------
Running the reproduce code causes a segfault on shutdown when trying to
call dir_closedir() of the stream wrapper class for the not-closed
(commented out) closedir($dh).
While in this case it can easily be fixed by activly calling
closedir(), it cannot if the SPL DirectoryIterator is used, which will
cause a 2nd call to dir_closedir() with an invalid handle (?)
Reproduce code:
---------------
http://sandbox.freepoint.de/crash.phps
Expected result:
----------------
Normal shutdown
Actual result:
--------------
Segfault in shutdown process
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36838&edit=1