Skip to content

[Native Image] ArrayIndexOutOfBoundsException with -H:AdvancedObfuscation #12382

@sgammon

Description

@sgammon

Describe the Issue

When using -H:AdvancedObfuscation with an app that uses Truffle Enterprise, a crash occurs

Using the latest version of GraalVM can resolve many issues.

GraalVM Version

java version "25" 2025-09-16 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 25+37.1 (build 25+37-LTS-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 25+37.1 (build 25+37-LTS-jvmci-b01, mixed mode, sharing)

Operating System and Version

Linux XXX 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build Command

See attached context md file

Expected Behavior

Expected obfuscation to finish (image is written and so is exported mapping)

Actual Behavior

Crashes before writing exported mapping, but after image writing

Steps to Reproduce

  1. Use Truffle Enterprise
  2. Use Advanced Obfuscation
  3. Compile with Native Image

Additional Context

See attached

Build Log Output and Error Messages

svm-err-obfuscation.md

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions