Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running with -H:-RunReachabilityHandlersConcurrently results in non-deterministic failures #6904

Closed
zakkak opened this issue Jun 28, 2023 · 3 comments

Comments

@zakkak
Copy link
Collaborator

zakkak commented Jun 28, 2023

Describe the issue

When running native-image with -H:-RunReachabilityHandlersConcurrently it crashes non-deterministically.

Issue first reported in apache/camel-quarkus#5006
The flag seems to be added by the com.google.api:gax-grpc dependency.

@fniephaus this is probably a duplicate of #5868

Steps to reproduce the issue

native-image --no-fallback -H:-RunReachabilityHandlersConcurrently HelloWorld

It might require multiple runs untill a crash.

Describe GraalVM and your environment:

  • GraalVM version: GraalVM CE 17.0.7+7.1
  • JDK major version: 17
  • OS: Fedora 38
  • Architecture: AMD64

More details

I tried reproducing the issue on GraalVM 22.3 with no success.

========================================================================================================================
GraalVM Native Image: Generating 'helloworld' (executable)...
========================================================================================================================
[1/8] Initializing...                                                                                    (1.5s @ 0.16GB)
 Java version: 17.0.7+7, vendor version: GraalVM CE 17.0.7+7.1
 Graal compiler: optimization level: 2, target machine: x86-64-v3
 C compiler: gcc (redhat, x86_64, 13.1.1)
 Garbage collector: Serial GC (max heap size: 80% of RAM)
[2/8] Performing analysis...  []                                                                         (1.9s @ 0.22GB)
   2,766 (75.74%) of  3,652 types reachable
   3,384 (50.73%) of  6,671 fields reachable
  12,536 (55.27%) of 22,680 methods reachable
     859 types,     0 fields, and   159 methods registered for reflection

------------------------------------------------------------------------------------------------------------------------
                        0.2s (5.8% of total time) in 19 GCs | Peak RSS: 0.98GB | CPU load: 12.42
------------------------------------------------------------------------------------------------------------------------
Produced artifacts:
 /home/zakkak/code/tmp/helloworld/svm_err_b_20230628T164422.007_pid665130.md (build_info)
========================================================================================================================
Failed generating 'helloworld' after 3.4s.

The build process encountered an unexpected error:

> java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" because "triggers" is null

Please inspect the generated error report at:
/home/zakkak/code/tmp/helloworld/svm_err_b_20230628T164422.007_pid665130.md

If you are unable to resolve this problem, please file an issue with the error report at:
https://graalvm.org/support
@fniephaus
Copy link
Member

this is probably a duplicate of #5868

Yes, very likely. Can we close it as duplicate?

@zakkak
Copy link
Collaborator Author

zakkak commented Jun 29, 2023

Yes, very likely. Can we close it as duplicate?

Sure, I just find this description more clear, and with a simpler reproducer. If you close it please consider copy pasting the information.

@oubidar-Abderrahim
Copy link
Member

Closed as duplicate of #5868

jamesnetherton added a commit to jamesnetherton/quarkus-google-cloud-services that referenced this issue Aug 3, 2023
* Copy custom io.netty classes from Apache Arrow and modify to work with the Quarkus Netty version.
  https://github.com/apache/arrow/tree/main/java/memory/memory-netty/src/main/java/io/netty/buffer

* Add RunReachabilityHandlersConcurrently native build arg due to oracle/graal#6904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants