#28396 [Opn->Bgs]: crash when memory limit reached

From: Date: Fri, 14 May 2004 11:46:20 +0000
Subject: #28396 [Opn->Bgs]: crash when memory limit reached
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59617@lists.php.net to get a copy of this message
ID: 28396 Updated by: wez@php.net Reported By: operator at infomaniak dot ch -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: linux glibc 2.2 PHP Version: 4.3.6 New Comment: This is expected behaviour; in a debug build, when memory allocation fails, we force a segfault. Don't run debug builds in production. Previous Comments: ------------------------------------------------------------------------ [2004-05-14 13:23:01] operator at infomaniak dot ch Description: ------------ When memory limit is reached, this irremdiably cause a segfault. -- php with no extensions at all compiled with: --disable-all \ --with-apxs=/usr/sbin/apxs \ --enable-sigchild \ --disable-ipv6 \ --enable-memory-limit \ --with-config-file-path=/etc/httpd \ --disable-static \ --enable-shared \ --enable-debug reproductible with any memory_limit value (tried from 512 bytes to 8M) Reproduce code: --------------- <? $i=1; while($i++) { $a .= "."; if (($i % 1024) == 0) { echo memory_get_usage() . "<br/>\n"; flush(); } } ?> Expected result: ---------------- some kind of "memory exhausted" message Actual result: -------------- apache thread segfault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28396&edit=1

« previous php.bugs (#59617) next »