From nobody Wed Apr 10 14:53:35 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VF5S011Qvz5HFVd for ; Wed, 10 Apr 2024 14:53:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VF5Rz6x2Kz4kWB for ; Wed, 10 Apr 2024 14:53:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712760816; a=rsa-sha256; cv=none; b=RtEVLn3QgbOTWMgSS7zBWLZ2BhDCoLDSV3m/5L79yP2BSxubKOOpn+T0UAPCKoJJkkiY66 ugKX5aRC0B/nPBQO9cF/YoWSMuZORh+URYf1TKqXByhzx+ON1wL+opOtQta5F6KZujEh83 f3nXLfTgeD72feYSogwPh8Qdc9fFOMk367kUfHlsaz/1lzSX6aoYuJD+/izdVAqZRHdSJK 7sXrHKCnwT2xiJv88SoJVXyG5g9rMzqN3yS+XxV2xwI9k9XSVEkqOXIrux5r+kzQRrsdJO Lyu4fJwEGY8lAnVJmZS6KrnZk8p8XCdzuzuCfXVXO4SiG22L/lpkXkWRkKtv9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712760816; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qeOWP/L9GlMoolTA/P6Hs0FCqSOhb4D38wGfVwS/yCU=; b=p2eIXh66H1oMsGwmpcvPayLcx5vGMk/HLFiszn1Xh7X0wE4g43XfX660fyJKmJJ/ixA3lV e5kCrN20MU8xLxeLYeM5buqJyWC0n7iopnklc6X0HT8nyOzoeCV5MWmTH3LmkwMni6tc1a gX15tlQqv+FCVaegoLRSJjGl45bLKjmpMonuz8KMx3ae63NehjXFyXe0ONQGFYESK+nT5u aExwnaFFykaUmv4l0V7ysJ7GklQV59l9X4rsaWSFCNLbDLCO3/qokR/OECaaCI8Hc4Zuw6 0C9yENgzzwucRrzsyMVnJZa9sdXfGvnHxsD2FBoJ4xPY+pubfNLwm+L7Cl97FQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VF5Rz6XrwzjJ8 for ; Wed, 10 Apr 2024 14:53:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 43AErZiH033476 for ; Wed, 10 Apr 2024 14:53:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43AErZNc033475 for ports-bugs@FreeBSD.org; Wed, 10 Apr 2024 14:53:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 278290] emulators/qemu-user-static: ruby33 crashes under amd64->arm64 emulation Date: Wed, 10 Apr 2024 14:53:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: jfc@mit.edu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278290 Bug ID: 278290 Summary: emulators/qemu-user-static: ruby33 crashes under amd64->arm64 emulation Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: emulation@FreeBSD.org Reporter: jfc@mit.edu Flags: maintainer-feedback?(emulation@FreeBSD.org) Assignee: emulation@FreeBSD.org I have a repeatable crash using qemu emulation to cross compile amd64 to ar= m64 using poudriere and qemu. While building rubygem-asciidoctor the emulated ruby33 and native qemu both dump core. This is on 15.0-CURRENT running ins= ide bhyve. I have overridden some default versions. RUBY_DEFAULT=3D3.3 LLVM_DEFAULT=3D18 Host /etc/make.conf sets CPUTYPE?=3Dznver1. Target poudriere.d/make.conf s= ets CPUTYPE?=3Dcortex-a53. The log says. =3D> SHA256 Checksum OK for rubygem/asciidoctor-2.0.22.gem. Unpacked gem: '/wrkdirs/usr/ports/textproc/rubygem-asciidoctor/work/asciidoctor-2.0.22' : jemalloc_rtree.c:205: Failed assertion: "!dependent || leaf !=3D NULL" *** Signal 6 There are two core dumps. # ls -ldh *core -r--r--r-- 1 root 6001 1.0G Apr 10 14:26 qemu-aarch64-static.core -rw-r--r-- 1 root 6001 20K Apr 10 14:26 qemu_ruby33.core # file *core qemu-aarch64-static.core: ELF 64-bit LSB core file, x86-64, version 1 (FreeBSD), FreeBSD-style, from '/usr/local/bin/qemu-aarch64-static /usr/local/bin/ruby33 /usr/local/bin/gem unpa', pid=3D42031 qemu_ruby33.core: ELF 64-bit LSB core file, ARM aarch64, version 1 (FreeBSD), can't read elf program headers at 20616 The qemu core has no usable symbols and I don't know how to debug the arm64 core on an amd64 host. I can run again with whatever debugging settings se= em useful. (lldb) bt * thread #1, name =3D 'qemu-aarch64-static', stop reason =3D signal SIGSEGV * frame #0: 0x00000000605f1a4a qemu-aarch64-static`___lldb_unnamed_symbol12822 + 282 frame #1: 0x0000000060320db7 qemu-aarch64-static`___lldb_unnamed_symbol= 1691 + 71 frame #2: 0x000000006030cef6 qemu-aarch64-static`___lldb_unnamed_symbol= 1329 + 3734 frame #3: 0x000000006030f197 qemu-aarch64-static`___lldb_unnamed_symbol= 1365 + 135 frame #4: 0x00000000603106b9 qemu-aarch64-static`___lldb_unnamed_symbol= 1372 + 1481 frame #5: 0x0000000060308f5d qemu-aarch64-static`___lldb_unnamed_symbol= 1313 + 157 frame #6: 0x0000000060309f33 qemu-aarch64-static`___lldb_unnamed_symbol= 1320 + 2931 frame #7: 0x0000000060572b48 qemu-aarch64-static`___lldb_unnamed_symbol10704 + 280 frame #8: 0x000000006029e110 qemu-aarch64-static`___lldb_unnamed_symbol= 1 + 48 (lldb) x/i $pc x/i $pc -> 0x605f1a4a: f3 48 a5 other rep movsq (%rsi), %es:(%rdi) (lldb) register read General Purpose Registers: rax =3D 0x0000000880938f90 rbx =3D 0x0000000000001000 rcx =3D 0x0000000000000200 rdx =3D 0x0000000000001000 rdi =3D 0x0000000880938f90 rsi =3D 0x00007fffe07c3000 rbp =3D 0x0000000880938a10 rsp =3D 0x00000008809389e8 r8 =3D 0xffff8008a0175f90 r9 =3D 0x0000000000000000 r10 =3D 0x0000000000000000 r11 =3D 0x0000000000000246 r12 =3D 0x0000000000016000 r13 =3D 0x0000000880938b08 r14 =3D 0x00007fffe07c3000 r15 =3D 0x0000000880938f90 rip =3D 0x00000000605f1a4a=20 qemu-aarch64-static`___lldb_unnamed_symbol12822 + 282 rflags =3D 0x0000000000010216 cs =3D 0x0000000000000043 fs =3D 0x0013 gs =3D 0x001b ss =3D 0x000000000000003b ds =3D 0x003b es =3D 0x003b (lldb) p (char *)$rdi (char *) 0x0000000880938f90 "\U0000007fELF\U00000002\U00000001\U00000001\t" (lldb) x/8g $rdi 0x880938f90: 0x09010102464c457f 0x0000000000000000 0x880938fa0: 0x0000000100b70003 0x0000000000000000 0x880938fb0: 0x0000000000000040 0x0000000000001280 0x880938fc0: 0x0038004000000000 0x001a001b0040000a The memory addressed by $rsi is unreadable, as is the previous page ($rsi -= 8). --=20 You are receiving this mail because: You are the assignee for the bug.=