[Bug 265284] java/openjdk11: wont run or build running on VMWare on M1 Mac Mini (aarch64)

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 19 Jul 2022 16:43:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265284

--- Comment #6 from Miguel Arroz <arroz@me.com> ---
I am not the person from the Forum.

Here's the output of gdb and llvm. Let me know if you need additional info.

GDB:

# gdb --args /usr/local/openjdk11/bin/java
GNU gdb (GDB) 12.1 [GDB v12.1 for FreeBSD]
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-portbld-freebsd13.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/openjdk11/bin/java...
(gdb) run
Starting program: /usr/local/openjdk11/bin/java 
[New LWP 100657 of process 7260]
[New LWP 100658 of process 7260]

Thread 2 received signal SIGILL, Illegal instruction.
Illegal trap.
[Switching to LWP 100657 of process 7260]
0x000000004ad9b1b8 in ?? ()
(gdb) disassemble
No function contains program counter for selected frame.



LLVM:

# lldb /usr/local/openjdk11/bin/java
(lldb) target create "/usr/local/openjdk11/bin/java"
Current executable set to '/usr/local/openjdk11/bin/java' (aarch64).
(lldb) run
Process 7265 launched: '/usr/local/openjdk11/bin/java' (aarch64)
Process 7265 stopped
* thread #2, name = 'java', stop reason = signal SIGILL: illegal trap
    frame #0: 0x00003bf396630250
->  0x3bf396630250: add    x1, x24, #0x0             ; =0x0 
    0x3bf396630254: sub    x0, x24, #0x8             ; =0x8 
    0x3bf396630258: mov    x2, #0x0
    0x3bf39663025c: ldr    x8, [x0]
(lldb) bt
* thread #2, name = 'java', stop reason = signal SIGILL: illegal trap
  * frame #0: 0x00003bf396630250
(lldb) disassemble --pc
->  0x3bf396630250: add    x1, x24, #0x0             ; =0x0 
    0x3bf396630254: sub    x0, x24, #0x8             ; =0x8 
    0x3bf396630258: mov    x2, #0x0
    0x3bf39663025c: ldr    x8, [x0]
(lldb) x/i ($pc-4)
    0x3bf39663024c: 0xd65f03c0   ret

-- 
You are receiving this mail because:
You are the assignee for the bug.