Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 18068 invoked from network); 29 Nov 2007 14:51:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2007 14:51:05 -0000 Received: (qmail 67977 invoked by uid 500); 29 Nov 2007 14:50:51 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 67950 invoked by uid 500); 29 Nov 2007 14:50:51 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 67941 invoked by uid 99); 29 Nov 2007 14:50:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 06:50:51 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alexei.zakharov@gmail.com designates 209.85.146.181 as permitted sender) Received: from [209.85.146.181] (HELO wa-out-1112.google.com) (209.85.146.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 14:50:32 +0000 Received: by wa-out-1112.google.com with SMTP id k22so2379468waf for ; Thu, 29 Nov 2007 06:50:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=qYsqEYRu0j0quLeismLDVH1ip0d3stCJW1YpF2QYD6M=; b=Jx8nnZBhRJNe4n1XdL2uWeQVrsMZ2U12OnhtIppH8LGelmNDXqajbl/+z8ftmPHYVHuYq4+mOIGNJNn5p3Ecep+fbr2RDAlMtJjvDwqMfjj9mCnojYl98KV97O8CNA0FMrX6obcAC9ttRdY7Q+4/jJ6EsI09W86Tx+Y9YHWEbcI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MCIGgWhCQjie84muXezqLO4AJmoyzIP1M/zAZqVl4k7GOtt0nPzx6jxPO559pkN1G7F8XD6sDbxEF/GL0N9eYokQsuXjbaZJzCutdzghxEsCucJnYrpFXs8oq578UfMKNBnq2HZM1djZU8lMDnIAmvuU71Vz2bgE2w3wkIXD7Sk= Received: by 10.114.161.11 with SMTP id j11mr539488wae.1196347834514; Thu, 29 Nov 2007 06:50:34 -0800 (PST) Received: by 10.114.192.15 with HTTP; Thu, 29 Nov 2007 06:50:34 -0800 (PST) Message-ID: <2c9597b90711290650s658a53c8y2fe035021a4fbf40@mail.gmail.com> Date: Thu, 29 Nov 2007 17:50:34 +0300 From: "Alexei Zakharov" To: dev@harmony.apache.org Subject: Re: [classlib][nio] jetty corrupts big static files In-Reply-To: <4bebff790711290643m1a626933qf0c1bc86f1d0b207@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2c9597b90711290606l48fd13bfj240ca335ce067b5a@mail.gmail.com> <4bebff790711290611if824866k76c019f750cba0b@mail.gmail.com> <4bebff790711290612r12123989mae71b4653adbb4c7@mail.gmail.com> <2c9597b90711290640t207fc92du5bc350ed98f23dba@mail.gmail.com> <4bebff790711290643m1a626933qf0c1bc86f1d0b207@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Try it on Linux64, I was able to reproduce it very easily there. Thanks for doing this, Alexei 2007/11/29, Aleksey Shipilev : > I have one wild thought about the origin of this issue, so I'm going > to spend some time for trying. > BTW, I failed to reproduce the crash even on legacy selector on my > r588236 workspace, now I'm updating it to more recent one. > > Thanks, > Aleksey. > > On Nov 29, 2007 5:40 PM, Alexei Zakharov wrote: > > Hi Aleksey, > > > > Your provider works better than the default one - VM crash disappears. > > VM runs into the dead loop instead :) BTW it would be great if you can > > have a look at it... > > > > Thanks, > > Alexei > > > > 2007/11/29, Aleksey Shipilev : > > > > > Oh sorry, forget it, I should have read JIRA carefully. > > > > > > On Nov 29, 2007 5:11 PM, Aleksey Shipilev wrote: > > > > Alexei, > > > > > > > > Can you try epoll()-based Selector [1] as fallback? Please specify > > > > this option on cmdline: > > > > -Djava.nio.channels.spi.SelectorProvider=org.apache.harmony.nio.internal.EpollSelectorProviderImpl > > > > > > > > [1] https://issues.apache.org/jira/browse/HARMONY-4879 > > > > > > > > > > > > On Nov 29, 2007 5:06 PM, Alexei Zakharov wrote: > > > > > Hi all, > > > > > > > > > > If you keep track of CC reports (either at [1] or by reading > > > > > alerts@harmony.apache.org) then you probably noticed that we have > > > > > intermittent failures of Jetty scenario on Linux'es for quite long > > > > > period of time already. I've spent some time on investigation of this > > > > > failure and found that Jetty-on-Harmony has issues with handling of > > > > > big static files. In most cases it simply returns corrupted data. > > > > > However, sometimes it hangs or even crashes. I've put the detailed > > > > > description of this problem here [2]. In brief I think we have bugs in > > > > > Harmony implementation of NIO selectors. Jetty works ok if its default > > > > > SelectChannelConnector is replaced with any other of its connectors > > > > > like SockerConnector (no NIO) or BlockingChannelConnector (NIO, but no > > > > > selectors). Stack traces also point to problems somewhere in > > > > > Java_org_apache_harmony_luni_platform_OSNetworkSystem_selectImpl . > > > > > > > > > > IMO such issue is rather critical because it prevents default > > > > > configuration of Jetty from working correctly on Harmony. > > > > > Unfortunately I'm not very familiar with NIO code by myself. So I > > > > > think it would be nice if our NIO experts can take a look at it. And > > > > > IMO it would be good to have it fixed till M4. > > > > > > > > > > [1] http://people.apache.org/~mloenko/snapshot_testing/script/snapshots_summary.html > > > > > [2] https://issues.apache.org/jira/browse/HARMONY-5219 > > > > > > > > > > Thanks, > > > > > Alexei > > > > > > > > > > > > > > >