Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 90284 invoked from network); 19 Jun 2007 09:01:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jun 2007 09:01:18 -0000 Received: (qmail 62519 invoked by uid 500); 19 Jun 2007 09:01:22 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 62470 invoked by uid 500); 19 Jun 2007 09:01:22 -0000 Mailing-List: contact commits-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 commits@harmony.apache.org Received: (qmail 62457 invoked by uid 99); 19 Jun 2007 09:01:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2007 02:01:22 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Tue, 19 Jun 2007 02:01:18 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 50E367141FC for ; Tue, 19 Jun 2007 02:00:57 -0700 (PDT) Message-ID: <33046842.1182243657328.JavaMail.jira@brutus> Date: Tue, 19 Jun 2007 02:00:57 -0700 (PDT) From: "Sergey Dmitriev (JIRA)" To: commits@harmony.apache.org Subject: [jira] Reopened: (HARMONY-4077) [classlib][portlib] socket related functions incorrectly work in socket > FD_SETSIZE In-Reply-To: <4438088.1181141906357.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 [ https://issues.apache.org/jira/browse/HARMONY-4077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Dmitriev reopened HARMONY-4077: -------------------------------------- Alexei, please see my last comment. > [classlib][portlib] socket related functions incorrectly work in socket > FD_SETSIZE > ------------------------------------------------------------------------------------ > > Key: HARMONY-4077 > URL: https://issues.apache.org/jira/browse/HARMONY-4077 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: linux only > Reporter: Sergey Dmitriev > Assignee: Alexei Zakharov > Attachments: 4077.patch, 4077_2.patch > > > Socket related functions incorrectly work with sockets if socket no > FD_SETSIZE. On "SUSE LINUX Enterprise Server 9" FD_SETSIZE is 1024. > The following functions: > Java_org_apache_harmony_luni_platform_OSNetworkSystem_isReachableByICMPImpl > Java_org_apache_harmony_luni_platform_OSNetworkSystem_selectImpl > hysock_select_read > getNextNetlinkMsg > hysock_connect_with_timeout > > use system select() to wait for event on only one file descriptor (socket). In case socket number is greater than maximum fdset_t size (FD_SETSIZE) we can have SIGSEGV. Satellite functins FD_SET, FD_ISSET, FD_CLR can cause SIGSEGV as well. > One of possible solutions here can be to use poll() instead of select() since we're talking about wait for event on the single file descriptor. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.