You are not logged in.

#1 2017-07-25 14:26:02

atom.42
Member
Registered: 2016-07-30
Posts: 5

[SOLVED] openjdk 8.u141-1 problem

Hello,

A few days ago openjdk was upgraded to 8.u141-1. Since that update i encounter problems which i don't really understand (yet).

here's what happens :

java -jar myProject.jar 
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x00007f623c907001, pid=25563, tid=0x00007f62566d7700
#
# JRE version: OpenJDK Runtime Environment (8.0_141-b15) (build 1.8.0_141-b15)
# Java VM: OpenJDK 64-Bit Server VM (25.141-b15 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libawt.so+0x6d001]  Java_sun_java2d_pipe_Region_initIDs+0x61
#
# Core dump written. Default location: /path/to/myProject/core or core.25563
#
# An error report file with more information is saved as:
# /path/to/myProject/hs_err_pid25563.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Abandon (core dumped)

I understand that there was a SIGILL sent, so probably a component tried to do something illegal. I understand it's related to libawt (and it happens when myProject tries to create a window, so it makes sense).
The error report file : hs_err_pid25563.log contains a lot of information, i think this part is relevant :

Internal exceptions (10 events):
Event: 0,056 Thread 0x00007f6250009800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d717c650) thrown at [/build/java8-openjdk/src/jdk8u-jdk8u141-b15/hotspot/src/share/vm/prims/jvm.cpp, line 1390]
Event: 0,057 Thread 0x00007f6250009800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d717e4f0) thrown at [/build/java8-openjdk/src/jdk8u-jdk8u141-b15/hotspot/src/share/vm/prims/jvm.cpp, line 1390]
Event: 0,057 Thread 0x00007f6250009800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d717e700) thrown at [/build/java8-openjdk/src/jdk8u-jdk8u141-b15/hotspot/src/share/vm/prims/jvm.cpp, line 1390]
Event: 0,057 Thread 0x00007f6250009800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d717f160) thrown at [/build/java8-openjdk/src/jdk8u-jdk8u141-b15/hotspot/src/share/vm/prims/jvm.cpp, line 1390]
Event: 0,057 Thread 0x00007f6250009800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d717f370) thrown at [/build/java8-openjdk/src/jdk8u-jdk8u141-b15/hotspot/src/share/vm/prims/jvm.cpp, line 1390]
Event: 0,190 Thread 0x00007f6250009800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x00000000d74f1c78) thrown at [/build/java8-openjdk/src/jdk8u-jdk8u141-b15/hotspot/src/share/vm/prims/methodHandles.cpp, line 1146]
Event: 0,192 Thread 0x00007f6250009800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x00000000d74ff3c8) thrown at [/build/java8-openjdk/src/jdk8u-jdk8u141-b15/hotspot/src/share/vm/prims/methodHandles.cpp, line 1146]
Event: 0,214 Thread 0x00007f6250009800 Exception <a 'java/io/FileNotFoundException'> (0x00000000d757b9c0) thrown at [/build/java8-openjdk/src/jdk8u-jdk8u141-b15/hotspot/src/share/vm/prims/jni.cpp, line 709]
Event: 0,214 Thread 0x00007f6250009800 Exception <a 'java/io/FileNotFoundException'> (0x00000000d757c458) thrown at [/build/java8-openjdk/src/jdk8u-jdk8u141-b15/hotspot/src/share/vm/prims/jni.cpp, line 709]
Event: 0,225 Thread 0x00007f6250009800 Exception <a 'java/lang/ClassNotFoundException': sun/dc/DuctusRenderingEngine> (0x00000000d7587d20) thrown at [/build/java8-openjdk/src/jdk8u-jdk8u141-b15/hotspot/src/share/vm/classfile/systemDictionary.cpp, line 210]

These internal exceptions show that a PrivilegedActionException has been thrown, so this makes sense with the SIGILL, but i don't know where to go for there. How can i know if my problem is related to libawt, openjdk, myProject or one of its dependencies (maybe libGDX which manages myProject's display)?

Any help would be great! smile

Last edited by atom.42 (2017-08-09 08:01:12)

Offline

#2 2017-07-25 14:36:05

atom.42
Member
Registered: 2016-07-30
Posts: 5

Re: [SOLVED] openjdk 8.u141-1 problem

Hello, me again ^^

A simple java hello world with only a System.out.println("HELLO WORLD"); works right.
But this example causes the same crash I have with myProject.

So i think my problem is not related with libGDX, but more likely with awt.

Offline

#3 2017-07-25 14:42:18

atom.42
Member
Registered: 2016-07-30
Posts: 5

Re: [SOLVED] openjdk 8.u141-1 problem

I just noticed that openjdk packages are part of the extra repo, not the testing repo, so i posted in the wrong section. My apologies.

Offline

#4 2017-07-25 15:42:44

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: [SOLVED] openjdk 8.u141-1 problem

Mod note: moving to Programming and Scripting


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2017-07-25 17:42:49

RapidTransit
Member
Registered: 2013-04-27
Posts: 13

Re: [SOLVED] openjdk 8.u141-1 problem

Are you on Wayland?, Have you tried the Oracle JDK? Do you have any applications that use Swing on your system?

I would spin up a virtual machine and try to replicate the problem on the VM

This isn't a programming error, as long as you aren't using your own JNI calls and using Unsafe...
https://bugs.openjdk.java.net/secure/Dashboard.jspa I would also post there

Offline

#6 2017-07-25 18:08:19

atom.42
Member
Registered: 2016-07-30
Posts: 5

Re: [SOLVED] openjdk 8.u141-1 problem

Thanks for your answer.

I'm on wayland, but i have the same issue with xorg (both gnomeshell).
The simplest swing helloWorld example from the java docs (HelloWorldSwing.java) throws the same errors.
I'll try swing applications to see if i have the same problem, and post on bugs.openjdk.java.net

Offline

#7 2017-08-09 08:00:50

atom.42
Member
Registered: 2016-07-30
Posts: 5

Re: [SOLVED] openjdk 8.u141-1 problem

Since the last openjdk update, my problem vanished...
I'm glad, but it's quite frustrating as I couldn't understand why ^^

I'll mark this as solved.

Offline

Board footer

Powered by FluxBB