Return-Path: Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 21883 invoked by uid 500); 2 Jul 2003 18:15:06 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Apache HTTPD Bugs Notification List" Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 21772 invoked from network); 2 Jul 2003 18:15:05 -0000 Date: 2 Jul 2003 18:17:32 -0000 Message-ID: <20030702181732.5179.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: bugs@httpd.apache.org Cc: Subject: DO NOT REPLY [Bug 21285] - (mem) cache size becomes negative causing segfault X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21285 (mem) cache size becomes negative causing segfault ------- Additional Comments From m.torquati@huginsoft.it 2003-07-02 18:17 ------- The problem shows up on only with dynamic object generation. We have tested it using PHP and a small number of simple http clients. How to reproduce the problem: Send object requests from some (2-3) clients (I wrote a simple client that at max rate possible connect to server, post a GET request, read reply and close the connection) to a simple php script (code follows) with the cache object count very very small (Es. : MCacheMaxObjectCount 50). The script produces different small objects (a few bytes in size) based on an input variable (pippo.php?variabile=1234). If you look at the cache size after some time you see it decrease to zero and become negative. Eventually, some of the threads die because of a segfault. -------- Apache (2.0.46) configure command ------------- ./configure --with-mpm=worker --prefix=/apache-test/ --enable-mods-shared=all --enable-so --enable-cache=shared --enable-mem_cache=shared ----- Cache configuration ------------- # # Sample Cache Configuration # CacheEnable mem / CacheDefaultExpire 1000 CacheMaxExpire 3000 CacheIgnoreCacheControl Off CacheIgnoreNoLastMod On MCacheSize 2000 MCacheMaxObjectCount 50 MCacheMinObjectSize 1 MCacheMaxObjectSize 1048576 ---- php script code (pippo.php) ---- "; echo "
html part
"; if (isset($_GET["variabile"])) { echo "mi hai passato ".$_GET["variabile"]; } else { echo "non mi hai passato niente"; } ?> --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org