ID:               32692
 Updated by:       [EMAIL PROTECTED]
 Reported By:      koyama at hoge dot org
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: Debian GNU/Linux (kernel-2.4.18)
 PHP Version:      4.3.11
 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.

And FYI: This is a won't fix in 4.3 - but it's fixed in PHP 5.


Previous Comments:
------------------------------------------------------------------------

[2005-04-13 11:50:39] koyama at hoge dot org

Description:
------------
Over 32768 count with foreach loop, some code cause the Segmentation
Fault.

Reproduce code:
---------------
<?php
$loop_count = 32768;
$a = array_fill(0, $loop_count, 'foobar');
foreach ($a as $key => $val) {
    $other[$key] = $val;
}
?>

Actual result:
--------------
(gdb) run ~/tmp/php/dbg_loop.php
Starting program: /usr/local/bin/php ~/tmp/php/dbg_loop.php
[New Thread 1024 (LWP 10611)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 10611)]
0x407cfb00 in free () from /lib/libc.so.6

(gdb) bt
#0  0x407cfb00 in free () from /lib/libc.so.6
#1  0x407cfaa3 in free () from /lib/libc.so.6
#2  0x0816618c in shutdown_memory_manager (silent=0, clean_cache=0)
    at /var/src/php-4.3.11/Zend/zend_alloc.c:492
#3  0x0814dfd7 in php_request_shutdown (dummy=0x0)
    at /var/src/php-4.3.11/main/main.c:1004
#4  0x0818bb07 in main (argc=2, argv=0xbffff6e4)
    at /var/src/php-4.3.11/sapi/cli/php_cli.c:879


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32692&edit=1

Reply via email to