#23299 [Opn->Bgs]: Intermittant but reproducable corruption and crash
| From: | moriyoshi@php.net | Date: | Mon, 05 May 2003 22:02:59 +0000 |
| Subject: | #23299 [Opn->Bgs]: Intermittant but reproducable corruption and crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39114@lists.php.net to get a copy of this message | ||
ID: 23299
Updated by: moriyoshi@php.net
Reported By: bginter at ndevtech dot net
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: Linux 2.4.20
PHP Version: 4.3.2-RC
New Comment:
Hmm, it's likely crash1.php and corrupt1.php are irrelevant to one
another. I just looked at bug #23415, which is very similar to the
corrupt1.php case and also seems a valid bug.
So I'm looking into bug #23415 and leaving this one bogus instead.
Please add further comments to bug #23415. Thank you for cooperation.
Previous Comments:
------------------------------------------------------------------------
[2003-05-05 16:30:26] bginter at ndevtech dot net
I opened a seperate bug a week or so ago that is probably related to
this one:
<a href="http://bugs.php.net/bug.php?id=23415">#23415</a>
Did you look at the corrupt1.php testcase at all?
------------------------------------------------------------------------
[2003-05-05 16:26:37] bginter at ndevtech dot net
Hrm, so it's not a bug that data are being corrupted and apache is
segfaulting? This isn't bogus.
------------------------------------------------------------------------
[2003-05-05 16:18:36] moriyoshi@php.net
So that's not a developer issue.
------------------------------------------------------------------------
[2003-05-05 16:17:39] moriyoshi@php.net
I'm looking at crash1.php script.
<?php
$group = new Group;
for ( $i = 0; $i < 15; $i++ ) {
// uncomment this and it works
// print $group->count() . "<br/>\n";
for ( $i = 0; $i < $assoc->count(); $i++ ) {
// print "Getting company $i<br/>\n";
$company = $assoc->get( $i );
$group->add( $company );
}
// print_d( $company );
}
print_d( $company );
?>
The above part should be
for ( $j = 0; $j < 15; $j++ ) { // not $i !
for ( $i = 0; $i < $assoc->count(); $i++ ) {
$company = $assoc->get( $i );
Otherwise, it goes into an infinite loop when $assoc->count() is less
than 15 and then PHP runs out of all the available memory to die.
------------------------------------------------------------------------
[2003-05-05 15:46:22] bginter at ndevtech dot net
bginter@debian:~$ gcc --version
2.95.4
bginter@debian:~$ ld -v
GNU ld version 2.12.90.0.1 20020307 Debian/GNU Linux
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/23299
--
Edit this bug report at http://bugs.php.net/?id=23299&edit=1