Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 6440 invoked from network); 26 Oct 2006 04:39:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 04:39:20 -0000 Received: (qmail 44359 invoked by uid 500); 25 Oct 2006 17:26:11 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 44317 invoked by uid 500); 25 Oct 2006 17:26:10 -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 44308 invoked by uid 99); 25 Oct 2006 17:26:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2006 10:26:10 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.55.52.88] (HELO mga01.intel.com) (192.55.52.88) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2006 10:25:59 -0700 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by mga01.intel.com with ESMTP; 25 Oct 2006 10:25:37 -0700 Received: from fmsmsx333.amr.corp.intel.com ([132.233.42.2]) by fmsmga001.fm.intel.com with ESMTP; 25 Oct 2006 10:25:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: i="4.09,357,1157353200"; d="scan'208"; a="151913551:sNHT61924051" Received: from fmsmsx312.amr.corp.intel.com ([132.233.42.227]) by fmsmsx333.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 25 Oct 2006 10:25:23 -0700 Received: from mssmsx411.ccr.corp.intel.com ([10.125.2.10]) by fmsmsx312.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 25 Oct 2006 10:25:23 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [classlib][luni] signalis interruptus in hysock Date: Wed, 25 Oct 2006 21:25:18 +0400 Message-ID: <8E389A5F2FEABA4CB1DEC35A25CB39CE62FF8E@mssmsx411> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [classlib][luni] signalis interruptus in hysock Thread-Index: Acb4Uec0LEqbr/lWTuKLsJxcGbfOPgACBU1g From: "Fedotov, Alexei A" To: , X-OriginalArrivalTime: 25 Oct 2006 17:25:23.0126 (UTC) FILETIME=[8D7E7D60:01C6F85A] X-Virus-Checked: Checked by ClamAV on apache.org Guys, Could you please help me to understand the following? 1. Is HARMONY-1904 actually a duplicate of my HARMONY-1879? 2. Ivan, do I remember correctly that you've already fixed that bug once when debugging Eclipse long run failures? Where is that patch? Thank you in advance. With best regards, Alexei Fedotov, Intel Java & XML Engineering >-----Original Message----- >From: Weldon Washburn [mailto:weldonwjw@gmail.com] >Sent: Wednesday, October 25, 2006 5:36 PM >To: harmony-dev@incubator.apache.org; geir@pobox.com >Subject: Re: [classlib][luni] signalis interruptus in hysock > >On 10/24/06, Geir Magnusson Jr. wrote: >> >> >> >> Weldon Washburn wrote: >> > It seems JIRA is down for maintenance. If HARMONY-1904 is still open >> > perhaps it makes sense to put a counter in the while (...) { select...} >> > loop. And after every N loops, print a warning/diagnostic message. >> >> For whom and to what end? Why not just return EINTR (in hysock speak)? >> >> > The >> > value for N would have to be tuned. I don't know what the best number >> > would >> > be. Given that 1904 patch is not the final solution, at least a >> diagnostic >> > that hints at where the system hangs would be useful. It might make >> sense >> > to even print a stack trace. Also, I agree with Ivan below. Signals >> bugs >> > are very hard to debug. And diagnostics can help us all understand the >> > corner cases better. >> >> But so far, no one has shown that the system hangs, or can hang, simply >> because we return EINTR.... > > >Sorry for not being clear. I was reacting to the patch in 1904 itself. >Not >the bigger issue of fixing the upper layers to comprehend EINTR. My >understanding is that this patch does not fix the problem. This patch does >not return EINTR. If for whatever reason this patch is committed, I >recommend adding the above diagnostic code so that we don't dig ourselves >an >even deeper hole. > >If it is decided 1904 should not be committed, it might make sense to >close it with "won't fix". > >geir >> >> > >> > On 10/20/06, Ivan Volosyuk wrote: >> >> >> >> On 10/20/06, Geir Magnusson Jr. wrote: >> >> > >> >> > >> >> > Ivan Volosyuk wrote: >> >> > > Well, I think that the solution is what Geir suggests. One think >> >> which >> >> > > bothers me is following. EINTR can happen in different places and >> the >> >> > > situations can be quite rare in some circumstances. It can lead to >> >> > > hard to reproduce stability bugs (race conditions). >> >> > >> >> > Can you give an example? >> >> >> >> Half a year ago, I was working on the problem. Socket operations get >> >> sometimes interrupted. We have found out that it occurs sometime after >> >> GC. It was not quite easy as the application was quite big and >> >> situation - quite rare. >> >> >> >> Given the fact, that current implementation of monitor reservation >> >> code can stop other thread in quite random fashion we should have rock >> >> solid support of EINTR handling everywhere the select(), poll() calls >> >> is used. >> >> >> >> -- >> >> Ivan >> >> Intel Enterprise Solutions Software Division >> >> >> >> > >> >> > > We should find a >> >> > > way how to test the implementation. >> >> > >> >> > +1! >> >> > >> >> > :) >> >> > >> >> > geir >> >> >> >> --------------------------------------------------------------------- >> >> 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 >> >> >> >> >> > >> > >> > > > >-- >Weldon Washburn >Intel Middleware Products Division