clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
521 stars 29 forks source link

Regression: /usr/bin/java crashes to SIGILL on startup #2754

Open eero-t opened 2 years ago

eero-t commented 2 years ago

Setup:

Use-case/issue:

This is regression from previously used ClearLinux 37310 version.

Java crashes due to use of instruction unsuitable for Broxton CPU in JLI:

$ gdb /usr/bin/java
GNU gdb (GDB) 12.1
...
(gdb) run
Starting program: /usr/bin/java 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
process 16368 is executing new program: /usr/lib/jvm/java-1.18.0/bin/java
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0x00005555555480b0 in JLI_Launch () from /usr/lib/jvm/java-1.18.0/bin/../lib/libjli.so
(gdb) bt
#0  0x00005555555480b0 in JLI_Launch () from /usr/lib/jvm/java-1.18.0/bin/../lib/libjli.so
#1  0x0000555555555206 in ?? ()
#2  0x000055555531e147 in ?? () from /usr/lib64/libc.so.6
#3  0x000055555531e205 in __libc_start_main () from /usr/lib64/libc.so.6
#4  0x00005555555552a1 in ?? ()
(gdb) disassemble 0x00005555555480b0
Dump of assembler code for function JLI_Launch:
   0x0000555555546b10 <+0>: push   %rbp
...
   0x0000555555548094 <+5508>:  je     0x55555554812d <JLI_Launch+5661>
   0x000055555554809a <+5514>:  mov    %rbx,-0x4120(%rbp)
   0x00005555555480a1 <+5521>:  movl   $0x1,-0x4118(%rbp)
   0x00005555555480ab <+5531>:  jmp    0x55555554747e <JLI_Launch+2414>
=> 0x00005555555480b0 <+5536>:  vpxor  %xmm0,%xmm0,%xmm0
   0x00005555555480b4 <+5540>:  movb   $0x0,-0x40b8(%rbp)
   0x00005555555480bb <+5547>:  movq   $0x0,-0x40c0(%rbp)
   0x00005555555480c6 <+5558>:  vmovdqa %xmm0,-0x40d0(%rbp)
eero-t commented 2 years ago

Btw. I would have filed this to ClearLinux "usrbinjava" project, but that's obviously dead (no open or closed tickets or PRs, and only few commits in 2019, none later).

fenrus75 commented 2 years ago

(we prefer bugs against "distribution" since that's easier to manage than 5000 separate bug lists in terms of notification/etc logistics)

I'll take a look on why this happens...

On Wed, Oct 19, 2022 at 5:38 AM Eero Tamminen @.***> wrote:

Btw. I would have filed this to ClearLinux "usrbinjava" project, but that's obviously dead (no open or closed tickets or PRs, and only few commits in 2019, none later).

— Reply to this email directly, view it on GitHub https://github.com/clearlinux/distribution/issues/2754#issuecomment-1283949655, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FPSNI5C566UQMITAZLWD7TS3ANCNFSM6AAAAAARJCP2GU . You are receiving this because you are subscribed to this thread.Message ID: @.***>