From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63915 invoked by alias); 14 Feb 2020 11:14:45 -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 63907 invoked by uid 89); 14 Feb 2020 11:14:45 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy=java, D*entry, BUG X-HELO: outpost1.zedat.fu-berlin.de Received: from outpost1.zedat.fu-berlin.de (HELO outpost1.zedat.fu-berlin.de) (130.133.4.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 14 Feb 2020 11:14:43 +0000 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1j2Yvd-001uJ5-5I>; Fri, 14 Feb 2020 12:14:37 +0100 Received: from suse-laptop.physik.fu-berlin.de ([160.45.32.140]) by inpost2.zedat.fu-berlin.de (Exim 4.85) with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (envelope-from ) id <1j2Yvc-003Vz6-Vx>; Fri, 14 Feb 2020 12:14:37 +0100 From: John Paul Adrian Glaubitz Subject: [BUG]: libffi 3.3 breaks OpenJDK Zero on 32-bit PowerPC To: libffi-discuss@sourceware.org Cc: Andreas Schwab , James Clarke , Matthias Klose , "debian-powerpc@lists.debian.org" Message-ID: <9b5d9318-5ef1-593d-daab-3428818707b5@physik.fu-berlin.de> Date: Fri, 14 Feb 2020 11:14:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2020/txt/msg00007.txt Hello! 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: 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