From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DC70C432C0 for ; Tue, 26 Nov 2019 15:39:41 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 564A12071E for ; Tue, 26 Nov 2019 15:39:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 564A12071E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bugs.launchpad.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:56336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZcwG-0006UP-Dj for qemu-devel@archiver.kernel.org; Tue, 26 Nov 2019 10:39:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58357) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZcub-00058E-Bj for qemu-devel@nongnu.org; Tue, 26 Nov 2019 10:37:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZcoL-0008Ef-Mn for qemu-devel@nongnu.org; Tue, 26 Nov 2019 10:31:31 -0500 Received: from indium.canonical.com ([91.189.90.7]:44884) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZcoL-0008E1-Eb for qemu-devel@nongnu.org; Tue, 26 Nov 2019 10:31:29 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1iZcoJ-0003aF-5C for ; Tue, 26 Nov 2019 15:31:27 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 264782E80CC for ; Tue, 26 Nov 2019 15:31:27 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 26 Nov 2019 15:16:31 -0000 From: Assad Hashmi <1853826@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=New; importance=Undecided; assignee=None; X-Launchpad-Bug-Tags: arm linux-user X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: a-hashmi ajbennee carolineconcatto X-Launchpad-Bug-Reporter: Caroline Concatto (carolineconcatto) X-Launchpad-Bug-Modifier: Assad Hashmi (a-hashmi) References: <157468002661.30952.10642264809488923382.malonedeb@wampee.canonical.com> Message-Id: <157478139138.22927.15730981561638023620.malone@chaenomeles.canonical.com> Subject: [Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7 X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="c597c3229eb023b1e626162d5947141bf7befb13"; Instance="production-secrets-lazr.conf" X-Launchpad-Hash: ee96be62c36cd28a7ab22893985c3fa700019293 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 91.189.90.7 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1853826 <1853826@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" For info, a similar type of failure has been seen when loading libarmflang.= so on DynamoRIO: https://github.com/DynamoRIO/dynamorio/issues/3385 It's to do with the .dynstr section being mapped incorrectly causing a SIGB= US. ** Bug watch added: github.com/DynamoRIO/dynamorio/issues #3385 https://github.com/DynamoRIO/dynamorio/issues/3385 -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1853826 Title: ELF loader fails to load shared object on ThunderX2 running RHEL7 Status in QEMU: New Bug description: Simple test: hello.c include int main(int argc, char* argv[]) { { printf("Hello World... \n"); } return 0; } when compiled with : *Compiler = https://developer.arm.com/tools-and-software/server-and-hpc/arm-architect= ure-tools/arm-allinea-studio/download Arm-Compiler-for-HPC_19.3_RHEL_7_aarch64.tar = *Running: 1) with -armpl armclang -armpl hello.c ./qemu/build/aarch64-linux-user/qemu-aarch64 a.out 2) without flag armclang hello.c ./qemu/build/aarch64-linux-user/qemu-aarch64 a.out =E2=80=A2With Docker image: CentOS Linux release 7.7.1908 (AltArch) *Two different machines: AArch64, Taishan. tsv110, Kunpeng 920, ARMv8.2-A AArch64, Taishan 2280, Cortex-A72, ARMv8-A *QEMU 4.0 qemu-aarch64 version 4.1.91 (v4.2.0-rc1) = Results: = ****Taishan 2280 Cortex-A72 = Running = 1)with -armpl flag with and without the docker WORKS-> Hello World... -> ldd a.out ldd a.out = linux-vdso.so.1 =3D> (0x0000ffffbc6a2000) = libamath_generic.so =3D> /scratch/arm-linux-compiler-19.3_Generic-AArch64= _RHEL-8_aarch64-linux/lib/clang/9.0.1/armpl_links/lib/libamath_generic.so (= 0x0000ffffbc544000) = libm.so.6 =3D> /lib64/libm.so.6 (0x0000ffffbc493000) = libastring_generic.so =3D> /scratch/arm-linux-compiler-19.3_Generic-AArch= 64_RHEL-8_aarch64-linux/lib/clang/9.0.1/armpl_links/lib/libastring_generic.= so (0x0000ffffbc472000) libarmflang.so =3D> /scratch/arm-linux-compiler-19.= 3_Generic-AArch64_RHEL-8_aarch64-linux/lib/libarmflang.so (0x0000ffffbbfd30= 00) = libomp.so =3D> /scratch/arm-linux-compiler-19.3_Generic-AArch64_RHEL-8_aa= rch64-linux/lib/libomp.so (0x0000ffffbbef5000) = librt.so.1 =3D> /lib64/librt.so.1 (0x0000ffffbbed4000) = libpthread.so.0 =3D> /lib64/libpthread.so.0 (0x0000ffffbbe9f000) = libarmpl_lp64_generic.so =3D> /scratch/arm-linux-compiler-19.3_Generic-AA= rch64_RHEL-8_aarch64-linux/lib/clang/9.0.1/armpl_links/lib/libarmpl_lp64_ge= neric.so (0x0000ffffb3306000) = libc.so.6 =3D> /lib64/libc.so.6 (0x0000ffffb3180000) = libstdc++.so.6 =3D> /scratch/gcc-9.2.0_Generic-AArch64_RHEL-8_aarch64-lin= ux/lib64/libstdc++.so.6 (0x0000ffffb2f30000) = libgcc_s.so.1 =3D> /scratch/gcc-9.2.0_Generic-AArch64_RHEL-8_aarch64-linu= x/lib64/libgcc_s.so.1 (0x0000ffffb2eff000) = libdl.so.2 =3D> /lib64/libdl.so.2 (0x0000ffffb2ede000) = /lib/ld-linux-aarch64.so.1 (0x0000ffffbc674000) = Running = 2) without -armpl flag with and without the docker WORKS -> Hello World... = -> ldd a.out ldd a.out linux-vdso.so.1 =3D> (0x0000ffffa6895000) = libastring_generic.so =3D> /scratch/arm-linux-compiler-19.3_Generic-AArch= 64_RHEL-8_aarch64-linux/lib/clang/9.0.1/armpl_links/lib/libastring_generic.= so (0x0000ffffa6846000) = libc.so.6 =3D> /lib64/libc.so.6 (0x0000ffffa66c0000) = /lib/ld-linux-aarch64.so.1 (0x0000ffffa6867000) = ****Taishan - tsv110 Kunpeng 920 For Running = 1)with -armpl flag with and without the docker DOES NOT WORK -> with and without Docker -> It shows : qemu:handle_cpu_signal received si= gnal outside vCPU context @ pc=3D0xffffaaa8844a -> ldd a.out = ldd a.out = linux-vdso.so.1 =3D> (0x0000ffffad4b0000) libamath_generic.so =3D> /scratch/arm-linux-compiler-19.3_Generic-AArch64= _RHEL-8_aarch64-linux/lib/clang/9.0.1/armpl_links/lib/libamath_generic.so (= 0x0000ffffad370000) = libm.so.6 =3D> /lib64/libm.so.6 (0x0000ffffad2a0000) = libastring_generic.so =3D> /scratch/arm-linux-compiler-19.3_Generic-AArch= 64_RHEL-8_aarch64-linux/lib/clang/9.0.1/armpl_links/lib/libastring_generic.= so (0x0000ffffad270000) libarmflang.so =3D> /scratch/arm-linux-compiler-19.= 3_Generic-AArch64_RHEL-8_aarch64-linux/lib/libarmflang.so (0x0000ffffacdd00= 00) = libomp.so =3D> /scratch/arm-linux-compiler-19.3_Generic-AArch64_RHEL-8_aa= rch64-linux/lib/libomp.so (0x0000ffffaccf0000) = librt.so.1 =3D> /lib64/librt.so.1 (0x0000ffffaccc0000) = libpthread.so.0 =3D> /lib64/libpthread.so.0 (0x0000ffffacc80000) = libarmpl_lp64_generic.so =3D> /scratch/arm-linux-compiler-19.3_Generic-AA= rch64_RHEL-8_aarch64-linux/lib/clang/9.0.1/armpl_links/lib/libarmpl_lp64_ge= neric.so (0x0000ffffa40e0000) = libc.so.6 =3D> /lib64/libc.so.6 (0x0000ffffa3f50000) = libstdc++.so.6 =3D> /scratch/gcc-9.2.0_Generic-AArch64_RHEL-8_aarch64-lin= ux/lib64/libstdc++.so.6 (0x0000ffffa3d00000) = libgcc_s.so.1 =3D> /scratch/gcc-9.2.0_Generic-AArch64_RHEL-8_aarch64-linu= x/lib64/libgcc_s.so.1 (0x0000ffffa3cc0000) libdl.so.2 =3D> /lib64/libdl.so.2 (0x0000ffffa3c90000) = /lib/ld-linux-aarch64.so.1 (0x0000ffffad4c0000) = Running = 2) without -armpl flag with and without the docker WORKS -> Hello World.. -> ldd a.out ldd a.out = linux-vdso.so.1 =3D> (0x0000ffff880c0000) = libastring_generic.so =3D> /scratch/arm-linux-compiler-19.3_Generic-AArch= 64_RHEL-8_aarch64-linux/lib/clang/9.0.1/armpl_links/lib/libastring_generic.= so (0x0000ffff88080000) = libc.so.6 =3D> /lib64/libc.so.6 (0x0000ffff87ee0000) /lib/ld-linux-aarch64.so.1 (0x0000ffff880d0000) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1853826/+subscriptions