Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 75323 invoked from network); 26 Jul 2006 18:18:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jul 2006 18:18:37 -0000 Received: (qmail 90047 invoked by uid 500); 26 Jul 2006 18:18:34 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 89702 invoked by uid 500); 26 Jul 2006 18:18:33 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 89691 invoked by uid 99); 26 Jul 2006 18:18:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2006 11:18:33 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gshimansky@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2006 11:18:32 -0700 Received: by nf-out-0910.google.com with SMTP id x4so809267nfb for ; Wed, 26 Jul 2006 11:18:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=sUBx2isV0Rz6puTAzgq2xBBFliUbyu4D9Yb5VuQC94koelkSFS9gYjSuhr/nUtPFx08GyKrbjg1PxsWB67TkVARfJA5V5mvE7dMhYVSqaPzzn3y6MzKK0KTmaP1SOOGCFXTUnRkHCqK6MNejuT1XtvgdK+zUQrF5Q5/SvzNc8X0= Received: by 10.48.235.13 with SMTP id i13mr996260nfh; Wed, 26 Jul 2006 11:18:10 -0700 (PDT) Received: from ppp85-141-182-66.pppoe.mtu-net.ru ( [85.141.182.66]) by mx.gmail.com with ESMTP id o45sm1885586nfa.2006.07.26.11.18.09; Wed, 26 Jul 2006 11:18:09 -0700 (PDT) From: Gregory Shimansky Reply-To: harmony-dev@incubator.apache.org To: harmony-dev@incubator.apache.org Subject: Re: Stack Overflow Error support issues Date: Wed, 26 Jul 2006 22:18:07 +0400 User-Agent: KMail/1.9.1 References: <783bf8b0606221051g557ac491xc55244d9f770457d@mail.gmail.com> <783bf8b0607260357q27eabb1fwe99f7f126b8365cb@mail.gmail.com> <51d555c70607260905wc09ab5cg83f8b1ec54112087@mail.gmail.com> In-Reply-To: <51d555c70607260905wc09ab5cg83f8b1ec54112087@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607262218.09295.gshimansky@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Wednesday 26 July 2006 20:05 Rana Dasgupta wrote: > In general, I am not too keen to implement a feature to mitigate a bug. I > also think that we need some real usage based test cases for SOE failure ( > not our dev tests for unbounded recursion which force it to happen ) > to understand how serious the problem is in usage scenarios. Most server > environments eg., web servers, recycle host processes, so I have some > doubts on how often this kind of resource scarcity problem really occurs. > Thread stacks are also not shared resources, even on clients. Anyway, we > may want to wait till Harmony identifies some signature apps or benchmarks > and we see failures due to SOE. In the meantime, my suggestion/vote would > be to proactively check for exception state in unwindable code sections in > the jit, or when returning from suspension state in the VM. That would be > my 2 cents. To make SOE more likely to happen in real applications it is easy to use "ulimit -s" command to limit the stack size to some small value. The default on Linux is 8Mb which is quite a lot. Both drlvm and Sun VM honor this stack limit and it is possible to make even the very simple applications to fail on stack shortage or even crash the VM (Sun crashes too) when stack is very small like 32Kb. Also playing with ulimit -s it is possible to try to catch situations when SOE happens in VM code like in JIT or class loader. -- Gregory Shimansky, Intel Middleware Products Division --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org