Giter Site home page Giter Site logo

corretto / corretto-21 Goto Github PK

View Code? Open in Web Editor NEW
55.0 55.0 14.0 587.18 MB

License: GNU General Public License v2.0

Makefile 0.01% Shell 0.15% M4 0.15% sed 0.01% JavaScript 0.02% C 7.31% C++ 13.74% Roff 0.16% HTML 0.31% CSS 0.01% Java 75.22% XSLT 0.23% Batchfile 0.01% Perl 0.01% DTrace 0.01% Assembly 2.26% GDB 0.01% Objective-C 0.39% Mathematica 0.01% Metal 0.01%

corretto-21's People

Contributors

chrishegarty avatar cl4es avatar coleenp avatar dfuch avatar erikj79 avatar hns avatar iignatev avatar iklam avatar jddarcy avatar jesperirl avatar jonathan-gibbons avatar lahodaj avatar magicus avatar mbaesken avatar mcimadamore avatar mrserb avatar naotoj avatar pliden avatar prrace avatar prsadhuk avatar rwestrel avatar seanjmullan avatar shipilev avatar stefank avatar sundararajana avatar tobihartmann avatar tstuefe avatar wangweij avatar xueleifan avatar zhengyu123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

corretto-21's Issues

Incorrect properties for apt.corretto.aws repository

APT repositories should have a release file with properties decribing them.

apt.corretto.aws repository has Origin and Label properties as . stable which look like typos and/or placeholder values.

This can be seen by running apt-cache policy or by downloading the Release file.

Sensible values may be Amazon as Origin and Corretto as Label.

Having . stable doesn't allow proper disambiguation when adding the repository to something like unattended-upgrades.

Origin: . stable
Label: . stable
Suite: stable
Codename: stable
Date: Tue, 17 Oct 2023 17:02:31 UTC
Architectures: amd64 arm64 i386
Components: main
Description: Generated by aptly

[...]

Should 21.0.0.35.1 be marked as "final" release

It seems that 21.0.0.35.1 is used on the download links on the amazon website, but the release here is still marked as pre-release. (Build 35 was candidate then got GA since there were no P1 bugs)

https://github.com/corretto/corretto-21/releases/tag/21.0.0.35.1

https://github.com/corretto/corretto-downloads/blob/e4a73e49c5fd2b0f1630b39239610884fcf74de3/latest_links/indexmap_with_checksum.json#L1597-L1602

    "21": {
     "pkg": {
      "checksum": "760d89e954093c43907454120eef3c1f",
      "checksum_sha256": "4a877d133a3c2c524947a53f5f031cb87264c18c97c858acb084bbf8bf4e476c",
      "resource": "/downloads/resources/21.0.0.35.1/amazon-corretto-21.0.0.35.1-macosx-aarch64.pkg"
     },

Crash: libjvm.so unnecessary_acquire

Hello,
we got the following crash:

Current thread (0x0000ffff801f7df0):  JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=37, stack(0x0000ffff846b7000,0x0000ffff848b5000) (2040K)]


Current CompileTask:
C2:  58449 13223       4       kotlinx.coroutines.scheduling.CoroutineScheduler$Worker::findTask (18 bytes)

Stack: [0x0000ffff846b7000,0x0000ffff848b5000],  sp=0x0000ffff848b0d00,  free space=2023k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x2ff0bc]  unnecessary_acquire(Node const*)+0x3c
V  [libjvm.so+0x6683b8]  State::DFA(int, Node const*)+0x1d40
V  [libjvm.so+0xad0384]  Matcher::Label_Root(Node const*, State*, Node*, Node*&)+0x3f4
V  [libjvm.so+0xad0f58]  Matcher::match_tree(Node const*)+0xa8
V  [libjvm.so+0xad5004]  Matcher::xform(Node*, int)+0x77c
V  [libjvm.so+0xad7ae8]  Matcher::match()+0x740
V  [libjvm.so+0x5b601c]  Compile::Code_Gen()+0x9c
V  [libjvm.so+0x5b9528]  Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x10c8
V  [libjvm.so+0x4f1d74]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x114
V  [libjvm.so+0x5be800]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x9b0
V  [libjvm.so+0x5c158c]  CompileBroker::compiler_thread_loop()+0x574
V  [libjvm.so+0x814bdc]  JavaThread::thread_main_inner() [clone .part.0]+0xa4
V  [libjvm.so+0xd87d68]  Thread::call_run()+0xa8
V  [libjvm.so+0xb7d7cc]  thread_native_entry(Thread*)+0xdc
C  [libc.so.6+0x7ee58]

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000000

we attach logs for details.

The class kotlinx.coroutines.scheduling.CoroutineScheduler$Worker is in the maven package org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.3.

After this error, server crash. There is a workaround?

Logs:

Attaching profiler breaks the execution

Thank you for taking the time to help improve OpenJDK and Corretto.

If your request concerns a security vulnerability then please report it by email to [email protected] instead of here. (You can find more information regarding security issues at https://aws.amazon.com/security/vulnerability-reporting/.)

Otherwise, if your issue concerns OpenJDK and is not specific to Corretto we ask that you raise it to the OpenJDK community. Depending on your contributor status for OpenJDK, please use the JDK bug system or the appropriate mailing list for the given problem area or update project.

If your issue is specific to Corretto, then you are in the right place. Please proceed with the following.

Describe the bug

When profiling an app in IntelliJ Idea (Spring boot app) at some point an error crashes the execution.
Java version: "21.0.2" 2024-01-16 LTS

To Reproduce

Steps and (source) code to reproduce the behavior.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (sharedRuntime.cpp:560), pid=26737, tid=142351
#  guarantee(cb != nullptr && cb->is_compiled()) failed: safepoint polling: pc must refer to an nmethod
#
# JRE version: OpenJDK Runtime Environment Corretto-21.0.2.13.1 (21.0.2+13) (build 21.0.2+13-LTS)
# Java VM: OpenJDK 64-Bit Server VM Corretto-21.0.2.13.1 (21.0.2+13-LTS, mixed mode, emulated-client, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-amd64)
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# JFR recording file will be written. Location: /Users/tabo/workspace/XXXXXX/hs_err_pid26737.jfr
#
# An error report file with more information is saved as:
# /Users/tabo/workspace/XXXXXXXXX/hs_err_pid26737.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/corretto/corretto-21/issues/

Platform information

OS: [e.g. Amazon Linux 2]
Version [e.g. "Corretto-15.0.1.9.1" (output from "java -version")]

Additional context

Add any other context about the problem here.

For VM crashes, please attach the error report file. By default the file name is hs_err_pidpid.log, where pid is the process ID of the process.

Fixed major version path for MSI installation

Is your feature request related to a problem?

With INSTALLDIR="C:\Program Files\Amazon Corretto" MSI installs Java to path like "C:\Program Files\Amazon Corretto\jdk21.0.0_35".
Because of this minor upgrades require JAVA_HOME and PATH change.

Describe a solution you would like

Respect INSTALLDIR property as full path or add possibility to use major version path like INSTALLDIR\jdk21.

Flag -XX:+UseGraalJIT does not work

Describe the bug

When try to use the flag -XX:+UseGraalJIT the JVM crashes

To Reproduce

Just add the flag. The error message received is: JVMCI compiler 'graal' specified by jvmci.Compiler not found

Expected behavior

My expectation is that it should work, since in Java 21 the Graal JIT is an alternative to the original JVM JIT. If I'm wrong, what's the rationale to Corretto do not support the Graal JIT?

Crash: SIGSEGV fatal error with problematic frame `V [libjvm.so+0xf66b09] ThreadSnapshot::initialize(ThreadsList*, JavaThread*)+0x179`

Describe the bug

I use Corretto 21 within a docker environment and my server crashed with the following error:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ffa5a51fb09, pid=1, tid=51
#
# JRE version: OpenJDK Runtime Environment Corretto-21.0.2.13.1 (21.0.2+13) (build 21.0.2+13-LTS)
# Java VM: OpenJDK 64-Bit Server VM Corretto-21.0.2.13.1 (21.0.2+13-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0xf66b09]  ThreadSnapshot::initialize(ThreadsList*, JavaThread*)+0x179
#
# Core dump will be written. Default location: //core
#
# If you would like to submit a bug report, please visit:
#   https://github.com/corretto/corretto-21/issues/
#

To Reproduce

Unfortunately, it crashed rarely (first occurrence for ~20 servers that use the same docker image).

Moreover, there were no end-user activity at the time of the crash.

Platform information

  • Debian 10 x86_64 GNU/Linux
  • used amazoncorretto:21-alpine docker image
  • Corretto-21.0.2.13.1

Additional context

hs_err_pid1.log

Thanks.

JRE crashing on V [libjvm.so+0x4e2c7a] ExceptionMessageBuilder::print_NPE_cause0(outputStream*, int, int, int, bool, char const*) [clone .part.33]+0x2a

I got this crash when running our loadtest code. I don't have exact steps to reproduce as this happened in 1 of 30 servers running same code

Platform information

OS: Amazon linux 2 (4.14.334-252.552.amzn2.x86_64)
Version openjdk version "21.0.2" 2024-01-16 LTS OpenJDK Runtime Environment Corretto-21.0.2.13.1 (build 21.0.2+13-LTS)

Additional context

Crash: libjvm.so error

Describe the bug

I use Corretto 21 within a docker environment for running a server for Minecraft, I don't know much on java so I'm unsure how to explain what is happening or even how to recreate this. I try to start the server, and it crashes with a given stack trace error for libjvm.so, but will generate different problematic frames each crash.

To Reproduce

This Corretto 21 image is used within alpine 3.4 in docker in order to run a Minecraft server within Pterodactyl Panel Software, unsure how to reproduce this in any since

I use this script provided by myself EpicPlayzGames on GitHub in order to create the image and use Corretto 21 provided by Software-Noob on GitHub specifically for the Pterodactyl Panel Software

Platform information

OS: Amazon Linux 2
Version Corretto-21.0.2.13.1

Additional context

Gladly will provide more content as needed, I'm not sure if all the info is here as I was unsure how to report this
hs_err_pid1.log

JRE crashes with EXCEPTION_ACCESS_VIOLATION after closing a JavaFX application using IntelliJ.

Describe the bug

JRE crashes with EXCEPTION_ACCESS_VIOLATION after closing a dialog in JavaFX.

To Reproduce

Just open a dialog in JavaFX and close(interrupt) the dialog from the IDE.
Note: it doesn't happen with all dialogs just this one

How to Reproduce video

Expected behavior

For the dialog and the app to stop and return code 130 (since it's an interruption of the running process ) without the JRE throwing an exception

Platform information

OS: Windows 11
Version : corretto-21.0.2

Error report file:

hs_err_pid17808.log

Source code

Available upon request if there is an issue with JRE and the code might help.

Note: This app is only a basic GUI for interacting with a database for a database course at the university.

RPM configuration for "Provides" should include "java"

Examination of the RPM for Amazon Corretto 21 hosted here:

https://corretto.aws/downloads/latest/amazon-corretto-21-x64-linux-jdk.rpm

shows that when installed, the dependency is provided under a range of names, most of which start with a java-21 prefix:

sh-4.2$ rpm -qp amazon-corretto-21-x64-linux-jdk.rpm --provides
java-21-amazon-corretto-devel = 1:21.0.1.12-1
java-21-devel = 1:21.0.1.12
java-21-openjdk-devel = 1:21.0.1.12-1
java-sdk-21 = 1:21.0.1.12
java-sdk-21-openjdk = 1:21.0.1.12-1
java-21 = 1:21.0.1.12
java-21-openjdk = 1:21.0.1.12
jre = 1:21.0.1.12
jre-21 = 1:21.0.1.12
jre-21-openjdk = 1:21.0.1.12

However, java is missing from the list meaning any other RPM package which declares a dependency like so:

java >= 1:1.8.0

cannot be satisfied by the Amazon Corretto 21 RPM dependency. This results in older Java versions being installed.

Can the RPM configuration be updated to include java in the Provides section?

JRE release

Hi there โœ‹
You will release the jre tar.gz file in this repo too?

Thanks!

hs_err [libjvm.so+0x7ec967] SIGSEGV

Describe the bug

I am running a minecraft server that use amazon corretto 21, suddenly , it crash and have a hs_err_pid, I haven't see such report when i was using openjdk. I use amazon corretto because it is recommended by server community.

To Reproduce

run Minecraft server, wait.

Expected behavior

Server run normally

Screenshots

No screenshot

Platform information

OS: Ubuntu 22.04.3 LTS
Version OpenJDK Runtime Environment Corretto-21.0.2.14.1 (build 21.0.2+14-LTS)

Additional context

hs_err_pid:
link: https://paste.denizenscript.com/View/122028
file: hs_err_pid27351.log

with

    java -Xms24576M -Xmx24576M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -jar luminol-1.20.4-bundler.jar --nogui

Request backport of JDK-8294699

Is your feature request related to a problem?

We are committed to running Corretto LTS in production, but hit this bug consistently. Requesting a backport of the fix from JDK 23 branch

JVM crash: "# V [libjvm.so+0x5ce614] ciKlass::is_subtype_of(ciKlass*)+0xb4" seems to be an issue with SoftReference<BufferedImage>.get

The following crash happens at least once a day in an active production environment and always in the same place.
SoftReference.get call I assume. The library used is a very popular PDF lib; here is the source: https://github.com/apache/pdfbox/blob/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java

Here's is the hs_error file:
hs_err_pid8_corretto21.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.