Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 59727 invoked from network); 30 Oct 2006 18:09:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2006 18:09:32 -0000 Received: (qmail 56488 invoked by uid 500); 30 Oct 2006 18:09:43 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 56460 invoked by uid 500); 30 Oct 2006 18:09:43 -0000 Mailing-List: contact harmony-commits-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-commits@incubator.apache.org Received: (qmail 56449 invoked by uid 99); 30 Oct 2006 18:09:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 10:09:43 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 10:09:29 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0DBF77142F5 for ; Mon, 30 Oct 2006 10:08:22 -0800 (PST) Message-ID: <12346065.1162231702054.JavaMail.root@brutus> Date: Mon, 30 Oct 2006 10:08:22 -0800 (PST) From: "Alexei Fedotov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-1904) Signals interrupt hysock_select calls. In-Reply-To: <4642015.1161168340084.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-1904?page=comments#action_12445669 ] Alexei Fedotov commented on HARMONY-1904: ----------------------------------------- Hmm... Actually all the code seems already in place. hysock_select() propagates an error code, and socket.c loops for a correct code. Was an initial assumption correct? > Signals interrupt hysock_select calls. > -------------------------------------- > > Key: HARMONY-1904 > URL: http://issues.apache.org/jira/browse/HARMONY-1904 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: linux > Reporter: Artem Aliev > Attachments: hysock.diff > > > DRLVM uses linux signals in thread suspend calls. > The signals interrupt select() call in port lib. > This cause the JBoss failure with following stack trace: > java.net.SocketException: The call was cancelled > at org.apache.harmony.luni.platform.OSNetworkSystem.availableStreamImpl(OSNetworkSystem.java) > at org.apache.harmony.luni.platform.OSNetworkSystem.availableStream(OSNetworkSystem.java:216) > at org.apache.harmony.luni.net.PlainSocketImpl.available(PlainSocketImpl.java:150) > at org.apache.harmony.luni.net.SocketInputStream.available(SocketInputStream.java:50) > at com.mysql.jdbc.util.ReadAheadInputStream.available(ReadAheadInputStream.java:212) > at com.mysql.jdbc.MysqlIO.clearInputStream(MysqlIO.java:774) > See following mail thread for details > http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200610.mbox/%3c4534F08F.9000208@pobox.com%3e > Workaround is attached, but see the e-mail for complains on this workaround -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira