From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99956 invoked by alias); 14 Feb 2020 11:46:29 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 99428 invoked by uid 89); 14 Feb 2020 11:46:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.4 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*Ad:U*libffi-discuss X-HELO: mail-lj1-f193.google.com Received: from mail-lj1-f193.google.com (HELO mail-lj1-f193.google.com) (209.85.208.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 14 Feb 2020 11:46:27 +0000 Received: by mail-lj1-f193.google.com with SMTP id v17so10401204ljg.4 for ; Fri, 14 Feb 2020 03:46:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=moxielogic-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KHmtTanB3XJZAOUtXTcFLFtG+AxswkOsiFanBDkB/ms=; b=1dblc9LQ4v0catulG6E9V2oZYeavMh2+0b29eiBstYDzj7FL1HjsXPXI6ckfDbbdGa AXJsCjB2M1JFY10NuIL7D9G5UOAJh7H1I4WhfmjxDdoxxlIisnhQ1zS1QNsrocRjb0Hc 9T73LWJ1HTormM7evh9AW3ZhW39boLtExZIrCrd8jzKtJSB6RcW4spRSB3P7SAHLUNA3 PYtI3O6F0c8fSkzbC0jgswcuQnkipd0IHk4i4ZQDe9tTpp26ovcXQpID7y+jVF4XuGbh HYFTf22gFMnNVjVqF9Db8Ht8PzdTaxHB82MbcJyxixHjUm8X5XZrjQCvjD+w5iNC6Fa6 X5+A== MIME-Version: 1.0 References: <9b5d9318-5ef1-593d-daab-3428818707b5@physik.fu-berlin.de> In-Reply-To: <9b5d9318-5ef1-593d-daab-3428818707b5@physik.fu-berlin.de> From: Anthony Green Date: Fri, 14 Feb 2020 11:46:00 -0000 Message-ID: Subject: Re: [BUG]: libffi 3.3 breaks OpenJDK Zero on 32-bit PowerPC To: John Paul Adrian Glaubitz Cc: libffi-discuss , Andreas Schwab , James Clarke , Matthias Klose , "debian-powerpc@lists.debian.org" Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2020/txt/msg00008.txt On Fri, Feb 14, 2020 at 6:14 AM John Paul Adrian Glaubitz < glaubitz@physik.fu-berlin.de> wrote: > After libffi was upgraded to 3.3 in Debian, all OpenJDK versions started > to break on 32-bit PowerPC with the freshly compiled JVM crashing with > the following backtrace: > Thanks for pointing this out. I only figured out how to do CI testing for 32-bit PowerPC after the 3.3 release, and there are indeed a number of failures: https://github.com/libffi/rlgl-policy/blob/master/XFAIL#L202-L290 travis-ci testing is done with a powerpc-eabisim GNU toolchain. We need to start going through these failures assuming that powerpc-eabisim is a close approximation of the system you are using. AG > > Thread 2 "java" received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0xf767f450 (LWP 4139976)] > MemoryAccess::get_volatile (this=) at > /home/glaubitz/tmp/openjdk/jdk/src/hotspot/share/prims/unsafe.cpp:244 > 244 T ret = HeapAccess::load_at(_obj, _offset); > (gdb) bt > #0 MemoryAccess::get_volatile (this=) at > /home/glaubitz/tmp/openjdk/jdk/src/hotspot/share/prims/unsafe.cpp:244 > #1 Unsafe_GetIntVolatile (env=, unsafe=, > obj=0xf767e5b4, offset=) at > /home/glaubitz/tmp/openjdk/jdk/src/hotspot/share/prims/unsafe.cpp:334 > #2 0xf77768e4 in ?? () from /usr/lib/powerpc-linux-gnu/libffi.so.7 > #3 0xf7775874 in ?? () from /usr/lib/powerpc-linux-gnu/libffi.so.7 > #4 0xf7932690 in CppInterpreter::native_entry (method=, > UNUSED=, __the_thread__=0xf7314250) > at > /home/glaubitz/tmp/openjdk/jdk/src/hotspot/cpu/zero/interpreterRT_zero.hpp:41 > #5 0xf79301cc in ZeroEntry::invoke (__the_thread__=0xf7314250, > method=, this=) at > /home/glaubitz/tmp/openjdk/jdk/src/hotspot/cpu/zero/entry_zero.hpp:59 > #6 CppInterpreter::invoke_method (method=, > entry_point=, __the_thread__=__the_thread__@entry > =0xf7314250) > at > /home/glaubitz/tmp/openjdk/jdk/src/hotspot/share/interpreter/cppInterpreter.cpp:66 > #7 0xf7931174 in CppInterpreter::main_loop (recurse=recurse@entry=0, > __the_thread__=__the_thread__@entry=0xf7314250) > at > /home/glaubitz/tmp/openjdk/jdk/src/hotspot/cpu/zero/bytecodeInterpreter_zero.hpp:87 > #8 0xf793187c in CppInterpreter::normal_entry (method=0xf4d96838, > UNUSED=, __the_thread__=0xf7314250) > at > /home/glaubitz/tmp/openjdk/jdk/src/hotspot/cpu/zero/cppInterpreter_zero.cpp:77 > #9 0xf79301cc in ZeroEntry::invoke (__the_thread__=0xf7314250, > method=, this=) at > /home/glaubitz/tmp/openjdk/jdk/src/hotspot/cpu/zero/entry_zero.hpp:59 > #10 CppInterpreter::invoke_method (method=, > entry_point=, __the_thread__=__the_thread__@entry > =0xf7314250) > at > /home/glaubitz/tmp/openjdk/jdk/src/hotspot/share/interpreter/cppInterpreter.cpp:66 > > Adrian > > -- > .''`. John Paul Adrian Glaubitz > : :' : Debian Developer - glaubitz@debian.org > `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de > `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 >