From nobody Mon Jul 18 05:11:59 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 4LmVSb3lYkz4TGwr for ; Mon, 18 Jul 2022 05:11:59 +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 4LmVSb1zVbz42S5 for ; Mon, 18 Jul 2022 05:11:59 +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 4LmVSb1404zS6s for ; Mon, 18 Jul 2022 05:11:59 +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 26I5BxiR033139 for ; Mon, 18 Jul 2022 05:11:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26I5BxMT033138 for java@FreeBSD.org; Mon, 18 Jul 2022 05:11:59 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: Mon, 18 Jul 2022 05:11:59 +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=1658121119; 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=coIBGYBfGfZlPKxsh6i5rPotjho8BNOhwgLXHK/MtoU=; b=k161Fp9ID/gtShd/bJMfj2Womf/HfC3KNnfnAdiPw8MfnxHt0yG+FupCiuPpJaLYJxy0Se h1Hqvx+6pSwCG7NOTfAyL2ExKRdDOX2YK9lWqGTpW2Yr8RPpRQJUGrBeuztmiq/GMD0fgL cg3MAY+Ez31jcKFB5tHyOv8E/rm1kuu6BuyRHKUQv47Lx8jQD9/oPfOkxFAtj2VUhY/fv3 rGkifN9XfEdkICERNmxCuq9R9MQ/U7p13Ta+TZ2em0dZIGvrGKZIRQuMr+4v+Rt2rUzkP3 FNa+He1S3tcEzsfHmDHKFesQPukemEDYt5WerwWO/eux+OSRj7XdqcgAduPQzQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658121119; a=rsa-sha256; cv=none; b=QU4RVyfjkEKCFxyrIMyIO9YOziG88bEjavLQNxOToqitYgekoaC3q7vdVm5Utsacdy1DIa NU7BCix8If8GvoZ1UkSfYSuqZbiS0l48v7Fjefg9hEmZ+gX9gufBGTCUhelDFT9Y4UMpW0 xwUsxEayQeb1quRdON+ApU5wuTjNxnawQxrlfdsYocZeY8fKx6fzt6D0a0+0d9BN+KLnfu HTrbg4nzAfsSrIc9RcH2ZOhoI7SAl1Bzu0HTQawKtZjWa0tsfH//j2jdvERJiB0hgrDvCr hyZYK+2knB2xtVygI6PHKiMsjb3/bmPeRdTgms03Av2K9RkEBxh1y3CaWjNc0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265284 --- Comment #3 from Miguel Arroz --- I may have a theory that explains this. From what I could understand, Apple Silicon chips enforce W^X at the hardware level, and it's not optional. ope= njdk on FreeBSD requires allowing W^X, even using -Xint (which disables JIT). Th= is means the CPU will prevent openjdk from using W^X even if FreeBSD assumes i= t's going to work. If I set kern.elf64.allow_wx to 0, I get the error, already reported in #256477: > Error occurred during initialization of VM > Could not reserve enough space in CodeCache (2496K) When I set it to 1, I get the error I originally reported. With LLDB, I can= see it eventually crashes with SIGSEGV, which supports this theory. This would also explain #260872, which seems similar to this bug but in openjdk8. --=20 You are receiving this mail because: You are the assignee for the bug.=