From owner-freebsd-java@freebsd.org Thu May 19 16:07:59 2016 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A96D0B42071 for ; Thu, 19 May 2016 16:07:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 946661FF9 for ; Thu, 19 May 2016 16:07:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8FFE0B42070; Thu, 19 May 2016 16:07:59 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F9F8B4206F for ; Thu, 19 May 2016 16:07:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7FFFF1FF8 for ; Thu, 19 May 2016 16:07:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u4JG7xBF092500 for ; Thu, 19 May 2016 16:07:59 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 209599] SIGSEGV in regression test suite on java/openjdk8 Date: Thu, 19 May 2016 16:07:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: iamasmith.home@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2016 16:07:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209599 --- Comment #9 from Andrew Smith --- Went at this form the other end as I had visibility of the native code. Examining the stack from earlier we have the use of the load method to look= at. Stack: [0x00007fffdf1f1000,0x00007fffdf2f1000], sp=3D0x00007fffdf2f0860, = free space=3D1022k Native frames: (J=3Dcompiled Java code, j=3Dinterpreted, Vv=3DVM code, C=3D= native code) V [libjvm.so+0x8d8d0a] JVM_handle_bsd_signal+0x125c4a j sun.misc.Unsafe.getByte(J)B+0 j java.nio.MappedByteBuffer.load()Ljava/nio/MappedByteBuffer;+85 j Truncate$2.call()Ljava/lang/Void;+4 j Truncate$2.call()Ljava/lang/Object;+1 j Truncate$3.run()V+4 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub V [libjvm.so+0x59d83b] AsyncGetCallTrace+0xcab7b V [libjvm.so+0x59c283] AsyncGetCallTrace+0xc95c3 V [libjvm.so+0x59c4bc] AsyncGetCallTrace+0xc97fc V [libjvm.so+0x608c3e] JVM_StartThread+0x36e V [libjvm.so+0x8b1600] JVM_handle_bsd_signal+0xfe540 V [libjvm.so+0x7ad3af] JVM_FindSignal+0x19a4ff C [libthr.so.3+0x8855] operator->+0x805 C 0x0000000000000000 public final MappedByteBuffer load() { checkMapped(); if ((address =3D=3D 0) || (capacity() =3D=3D 0)) return this; long offset =3D mappingOffset(); long length =3D mappingLength(offset); load0(mappingAddress(offset), length); // Read a byte from each page to bring it into memory. A checksum // is computed as we go along to prevent the compiler from otherwise // considering the loop as dead code. Unsafe unsafe =3D Unsafe.getUnsafe(); int ps =3D Bits.pageSize(); int count =3D Bits.pageCount(length); long a =3D mappingAddress(offset); byte x =3D 0; for (int i=3D0; i() { public Void call() { mbb.get((int)TRUNCATED_FILE_SIZE + 1); mbb.put((int)TRUNCATED_FILE_SIZE + 2, (byte)123); return null; } }); // Test 2: load buffer into memory execute(new Callable() { public Void call() throws IOException { mbb.load(); return null; } }); } fc.close(); } // Runs the given task in its own thread. If operating correcting the // the thread will terminate with an InternalError as the mapped buffer // is inaccessible. static void execute(final Callable c) { Runnable r =3D new Runnable() { public void run() { try { Object ignore =3D c.call(); } catch (Exception ignore) { } } }; Noting what it mentions in the execute wrapper.. there is an expectation th= at InternalError is raised but we are receiving a SIGSEGV. --=20 You are receiving this mail because: You are the assignee for the bug.=