Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 37311 invoked from network); 1 Nov 2006 15:23:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2006 15:23:12 -0000 Received: (qmail 90181 invoked by uid 500); 1 Nov 2006 15:23:19 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 90146 invoked by uid 500); 1 Nov 2006 15:23:19 -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 90137 invoked by uid 99); 1 Nov 2006 15:23:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2006 07:23:19 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 195.212.29.134 is neither permitted nor denied by domain of mark.hindess@googlemail.com) Received: from [195.212.29.134] (HELO mtagate1.uk.ibm.com) (195.212.29.134) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2006 07:23:03 -0800 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate1.uk.ibm.com (8.13.8/8.13.8) with ESMTP id kA1FMet5092452 for ; Wed, 1 Nov 2006 15:22:40 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.6/8.13.6/NCO v8.1.1) with ESMTP id kA1FPIu92256916 for ; Wed, 1 Nov 2006 15:25:18 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id kA1FMdwq010825 for ; Wed, 1 Nov 2006 15:22:39 GMT Received: from anaheim.local (anaheim.hursley.ibm.com [9.20.183.13]) by d06av02.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id kA1FMd0e010821 for ; Wed, 1 Nov 2006 15:22:39 GMT Message-Id: <200611011522.kA1FMd0e010821@d06av02.portsmouth.uk.ibm.com> X-Mailer: exmh version 2.7.2 01/07/2005 (debian 1:2.7.2-7) with nmh-1.1 In-reply-to: <200611011339.kA1DdvZn027817@d06av02.portsmouth.uk.ibm.com> References: <7273946b0610310102x20c80a2fm88d2113a03a7e8fb@mail.gmail.com> <454712DA.2050001@gmail.com> <454878E8.5000800@gmail.com> <200611011339.kA1DdvZn027817@d06av02.portsmouth.uk.ibm.com> Comments: In-reply-to Mark Hindess message dated "Wed, 01 Nov 2006 13:39:48 +0000." From: Mark Hindess To: harmony-dev@incubator.apache.org Subject: Re: [security][testing] 2 tests failed today Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 01 Nov 2006 15:22:31 +0000 X-Virus-Checked: Checked by ClamAV on apache.org On 1 November 2006 at 13:39, Mark Hindess wrote: > > Fixed in r469902. Turns out the exec was putting double quotes around > the classpath argument (which might make sense if it was going to a > shell) but it doesn't for an exec syscall. This resulted in classes > being search for in the non-existent directory: > > "/path/to/modules/luni/bin/test > > rather than: > > /path/to/modules/luni/bin/test > > Regards, > Mark - confused as to why it didn't also fail on windows Oops. Tim mentioned that my fixed breaks things on windows. I've checked in a better fix that I hope should be more well-defined on all platforms. That is, pass the arguments to Runtime.exec as an array not a string. Aside: My tests show that the behaviour we saw with the quotes in the string being passed directly through to the execve syscall is consistent with the RI. Regards, Mark. > On 1 November 2006 at 10:37, Tim Ellison wrote: > > Boris Kuznetsov wrote: > > > The tests use tests.support.Support_Exec.execJava2() to perform > > > testing on other JVM. This method uses Runtime.getRuntime().exec() to > > > run command. You can see command (it looks like java -cp .... > > > ) in the test's System.out. It woks OK on Win, but produces > > > NoClassDefFoundError on linux. > > > Note, the command woks OK in linux sh also. > > > > Yes, I don't think it is the tests for HARMONY-1674 per se that are > > failing, but they are exposing a problem in the exec -- which is why I > > haven't rolled back that commit. > > > > I'll keep looking at it, let me know if you see the problem. > > > > Regards, > > Tim > > > > -- > > > > Tim Ellison (t.p.ellison@gmail.com) > > >