From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15200 invoked by alias); 16 Jun 2011 17:01:03 -0000 Received: (qmail 15173 invoked by uid 22791); 16 Jun 2011 17:01:02 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Jun 2011 17:00:50 +0000 From: "ro at gcc dot gnu.org" To: java-prs@gcc.gnu.org Subject: [Bug libgcj/49314] md5test, shatest output FAILs on Tru64 UNIX X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcj X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: CC Target Milestone Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 16 Jun 2011 17:01:00 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2011-q2/txt/msg00059.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49314 Rainer Orth changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aph at gcc dot gnu.org, | |tromey at gcc dot gnu.org Target Milestone|--- |4.7.0 --- Comment #1 from Rainer Orth 2011-06-16 16:59:31 UTC --- After some further debugging, I could reproduce the issue with the following testcase: class arraycopy { public static void main(String[] argv) { String src = "a"; byte dst[] = new byte[64]; System.arraycopy (src.getBytes(), 0, dst, 0, src.length()); } } With some debug code in java/lang/natSystem.cc (java::lang::System::arraycopy), I get arraycopy: src_offset = 0 src_a->length = 0 dst_offset = 0 dst_a->length = 64 count = 1 Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Unknown Source) at arraycopy.main(Unknown Source) I haven't yet found where src_a->length is supposed to be initialized. Any suggestions? Rainer