Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 51841 invoked from network); 8 Mar 2007 07:50:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2007 07:50:52 -0000 Received: (qmail 78175 invoked by uid 500); 8 Mar 2007 07:50:58 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 78149 invoked by uid 500); 8 Mar 2007 07:50:58 -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 78140 invoked by uid 99); 8 Mar 2007 07:50:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2007 23:50:58 -0800 X-ASF-Spam-Status: No, hits=4.5 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS,SUBJECT_ENCODED_TWICE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of paulex.yang@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2007 23:50:49 -0800 Received: by ug-out-1314.google.com with SMTP id z36so765907uge for ; Wed, 07 Mar 2007 23:50:27 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Qn/9BgoXMwBpVOmDwUsJsvg5OPJm8bTkqv/UNhnMQDySGrdldXxJVt3yoDOT/iEOoUjiKyGnneYzun4W5zrWZb8bPgaRCr8RkxlCBRBmdiLqPqxnxertJEb3gfW5J/MeCzHVGBSvLxKBbWJcCY10JlGNqVlsmWUq819PAUPv2sU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=egsGhmuARo66lKCggry51MpBlX9bMGfqEUTa5SrgPdu2IQw7kILpopQdKhfQ032+ZKtENiZoVJJIytTc9n/1axaiBFCehqemX48N/HkSAefsw4QCSWZSgtIVsJuxE34NLXC8RRN9SN2RqEWOvgNoGshqxW4NABJfYuPIjFZJcM0= Received: by 10.114.15.1 with SMTP id 1mr20787wao.1173340226103; Wed, 07 Mar 2007 23:50:26 -0800 (PST) Received: by 10.114.121.13 with HTTP; Wed, 7 Mar 2007 23:50:26 -0800 (PST) Message-ID: Date: Thu, 8 Mar 2007 15:50:26 +0800 From: "Yang Paulex" To: dev@harmony.apache.org Subject: =?UTF-8?Q?Re:_[testing]_today=E2=80=99s_failures_of_cl?= =?UTF-8?Q?asslib_tests_on_Linux_to_investigate?= In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_213668_25165165.1173340226052" References: <7273946b0703052053l468d39aag9a162eadca75e69@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_213668_25165165.1173340226052 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Thank you, all guys, patch recovered at revision r515959. Sorry for the inconvenience caused. 2007/3/7, Gregory Shimansky : > > Vladimir Ivanov wrote: > > Hello everybody, > > in case if someone miss the CC notification: now the classlib tests > > crashed/ hang up on the Linux boxes when run over DRLVM. > > Notifications were send ~12hours ago. > > Failed tests: > > Linux x86_64 (hang up): > > TEST-org.apache.harmony.archive.tests.java.util.jar.JarExecTest.xml > > > > Linux x86 (trying to reproduce): > > TEST-org.apache.harmony.archive.tests.java.util.jar.JarFileTest.xml > > TEST-org.apache.harmony.security.tests.PolicyEntryTest.xml > > > TEST-org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test.xml > > I've found the reason of crash of > org.apache.harmony.archive.tests.java.util.jar.JarExecTest. The reason > for it is actually commit in revision 514596. Most likely other tests > fail for the same reason. The sequence that leads to a crash looks like > this: > > 1. Java calls Java_java_net_InetAddress_getHostByNameImpl with a host > name "jcltest.apache.org". > 2. It calls hysock_getaddrinfo with this name and uninitialized > hyaddrinfo_struct addrinfo variable. > 3. Function hysock_getaddrinfo calls system function getaddrinfo and it > returns not null which means error. > 4. In this case hysock_getaddrinfo reads errno and records it in > errorCode. But errorCode appears to be 0. Looking at man page for > getaddrinfo I see that only in case of EAI_SYSTEM it sets errno to some > specific value. In other cases errno state is not specified. > 5. Function hysock_getaddrinfo records an error with errorCode 0 using > findError. Since after the change in 514596 the errorCode 0 means > HYPORT_SUCCESS, then it is considered to be no error. Previously before > that change findError would return HYPORT_ERROR_SOCKET_OPFAILED. > 6. Since hysock_getaddrinfo returned HYPORT_SUCCESS which is 0, the > function Java_java_net_InetAddress_getHostByNameImpl continues to work > with uninitialized addrinfo variable. > 7. When Java_java_net_InetAddress_getHostByNameImpl calls to > hysock_freeaddrinfo, free is called on unintialized pointer which leads > to a crash. > > -- > Gregory > > -- Paulex Yang China Software Development laboratory IBM ------=_Part_213668_25165165.1173340226052--