Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2022 23:18:56 +0000
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)
Message-ID:  <bug-265284-8522-fBA12tdQfX@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-265284-8522@https.bugs.freebsd.org/bugzilla/>
References:  <bug-265284-8522@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265284

--- Comment #8 from Miguel Arroz <arroz@me.com> ---
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265284-8522-fBA12tdQfX>