From nobody Thu Jul 21 23:18:56 2022 X-Original-To: java@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 4LppRN5tnhz4WXsY for ; Thu, 21 Jul 2022 23:18:56 +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 4LppRN40Kyz42N7 for ; Thu, 21 Jul 2022 23:18:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4LppRN2th0zg2g for ; Thu, 21 Jul 2022 23:18:56 +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 26LNIuh9016960 for ; Thu, 21 Jul 2022 23:18:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26LNIuwP016959 for java@FreeBSD.org; Thu, 21 Jul 2022 23:18:56 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: java@FreeBSD.org Subject: [Bug 265284] java/openjdk11: wont run or build running on VMWare on M1 Mac Mini (aarch64) Date: Thu, 21 Jul 2022 23:18:56 +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: arroz@me.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 List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658445536; 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: in-reply-to:in-reply-to:references:references; bh=HRG7W/slF3uQmKRExCdZwdYD628qxKHgRHrAthVo/Fw=; b=ynUXMXBUtTxMbY+HNnfD9da66LMCu5tgxwXXXk3YPPI1TBJEkohlohbWl2UT232E2538gZ s8iszuwb2hPDo6hgQErYOPRpWBp9GGvdO4D+NDO/nZHK0g4Ht5okVu4NBvBBDirgkXREZF tKMay6Rs72vc/DgSdPAhnxqS7hhxmSr30QdKLVijJ5DPBYv0o4H4MPMtcDAeCDZairardo +WF97R+8MviZGbHmh4kIrn/HvhYdYHAC9rG0HWBe7cBIPExsbXPJkaLPgCl3kuYSx/a/68 Q1mDuVybt4fIPWXO2yWQ3e6n09xVYwY3u1Oyeb/jo3n/5BRlYBhaWEWFoGcuhA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658445536; a=rsa-sha256; cv=none; b=PgmpMR7x1Nzggg3DQQxAS5ViMeil0GYLZOMMmWhWE0hmt/Qk1v4oQ4Kp/8eHCavxGQ/UNf afYM9d+hIZkAdZNH1IrUlPeXDtIjgx1jErCd3EqU2fdXephjY8JOO864ZF5IavjKQffaJf AmCl7tG8gjcB6KWqPA9o/wjeOrRdtmAcUusKYFaE45fCM2WEsEUVlnCzpyp0l7SGb1l0gV WCDL5t9T22OsT0IPoZlHn6dDYuzLSvMvcrtY5l3f5RwET14r+oEN/d0xrZ/mjPBrngsyJs RCT54DoObqrGE6yQEqCUqua4vM7ljgNtWQmTKt/bqvU8SNSyVIg//brLlL1n2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265284 --- Comment #8 from Miguel Arroz --- So we confirmed this crashes on code generated by the JIT compiler: The output of the following command when running java: > dtrace -n 'inline string process =3D "java"; ::mmap:entry /execname =3D= =3D process && (arg2 & 0x7) =3D=3D 0x7/ { this->follow=3D1; printf("addr=3D= %p size=3D%p prot=3D%p", arg0, arg1, arg2) } ::mmap:return /this->follow/ {= this->follow =3D 0; printf("addr=3D%p", arg0) }' is: CPU ID FUNCTION:NAME 1 54289 mmap:entry addr=3D7607c2687000 size=3D2700= 00 prot=3D7 1 54290 mmap:return addr=3Dffffffffc2687000 1 54289 mmap:entry addr=3D7607c2c16000 size=3D2700= 00 prot=3D7 1 54290 mmap:return addr=3Dffffffffc2c16000 1 54289 mmap:entry addr=3D7607ca14e000 size=3D2700= 00 prot=3D7 1 54290 mmap:return addr=3Dffffffffca14e000 I was running java in lldb, and the address where it crashed is inside the first block: -> 0x7607c26ce190: mov x0, #0x43c We also confirmed the dtrace is similar in the seldom occasions where "java" runs successfully. Not exactly sure what this proves aside from the fact the crash happens in generated code. I'm trying to find more info regarding how does W^X protect= ion in M1s work under hypervisors but it's not easy to find anything about that. --=20 You are receiving this mail because: You are the assignee for the bug.=