From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23912 invoked by alias); 29 Nov 2007 10:37:09 -0000 Received: (qmail 23905 invoked by uid 22791); 29 Nov 2007 10:37:07 -0000 X-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO X-Spam-Check-By: sourceware.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (83.160.170.119) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 29 Nov 2007 10:36:56 +0000 Received: from dijkstra.wildebeest.org ([192.168.1.29]) by gnu.wildebeest.org with esmtp (Exim 4.63) (envelope-from ) id 1Ixgkl-0003ob-V2; Thu, 29 Nov 2007 11:36:24 +0100 Subject: Re: [SCM] master: Add a test testMemoryBufferCapacity() to TestByteBuffer.java From: Mark Wielaard To: pearly.zhao@oracle.com Cc: Andrew Cagney , frysk@sourceware.org In-Reply-To: <1196238270.19305.2.camel@linux-pzhao.site> References: <20071122090733.7335.qmail@sourceware.org> <4745B7E4.4090408@redhat.com> <1195791150.22218.13.camel@linux-pzhao.site> <47476AEF.4080900@redhat.com> <1196045768.3728.6.camel@linux-pzhao.site> <474C2D7A.8020109@redhat.com> <1196238270.19305.2.camel@linux-pzhao.site> Content-Type: text/plain Date: Thu, 29 Nov 2007 10:37:00 -0000 Message-Id: <1196332579.27594.8.camel@dijkstra.wildebeest.org> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 (2.12.1-3.fc8) Content-Transfer-Encoding: 7bit X-Spam-Score: -4.4 (----) X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00189.txt.bz2 Hi Pearly, On Wed, 2007-11-28 at 16:24 +0800, Zhao Shujing wrote: > It's been updated and the test is passing now. Congrats, it does PASS on x86 and x86_64. And more congrats, since you seem to have caught a bug on 32bit-on-64bit systems! If you run the test on a x86_64 system with ./TestRunner -arch 32 frysk.proc.live.TestByteBuffer.testMemoryBufferCapacity you get: Caused by this piece of code in frysk-sys/frysk/sys/cni/Ptrace.cxx: jlong frysk::sys::Ptrace$AddressSpace::length () { return -1UL; } Which is correct for 32 bit systems when frysk is compiled on a 32 bit system and correct for 64 bit systems when compiled on 64 bit systems. But not for an 32 bit address space on a 64 bit system. Unfortunately I don't immediately know the correct way to fix this at this point. So I filed it as http://sourceware.org/bugzilla/show_bug.cgi?id=5432 If someone knows how to fix this properly you now have a testcase! Cheers, Mark