You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While building a Python-enabled native image at latest (24.2.x), a crash surfaces for certain stdlib imports (in this case, import json).
It appears an unsafe allocation attempts to raise a MissingReflectionRegistrationError, which walks the stack to describe what happened. But, the VM is in a state where it cannot block, and so a crash occurs.
Using the latest version of GraalVM can resolve many issues.
Describe the Issue
While building a Python-enabled native image at latest (
24.2.x
), a crash surfaces for certain stdlib imports (in this case,import json
).It appears an unsafe allocation attempts to raise a
MissingReflectionRegistrationError
, which walks the stack to describe what happened. But, the VM is in a state where it cannot block, and so a crash occurs.Using the latest version of GraalVM can resolve many issues.
GraalVM Version
java version "24" 2025-03-18
Java(TM) SE Runtime Environment Oracle GraalVM 24+36.1 (build 24+36-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 24+36.1 (build 24+36-jvmci-b01, mixed mode, sharing)
Operating System and Version
Linux 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
Expand for full build command
Expected Behavior
Should report the missing reflection so that it can be registered.
Actual Behavior
Instead, it crashes.
Steps to Reproduce
fix/python-imports
./gradlew :packages:cli:run --args="run $PWD/tools/scripts/py_json.py"
./gradlew :packages:cli:nativeCompile --no-configuration-cache
./packages/cli/build/native/nativeCompile/elide ./tools/scripts/py_json.py
Bundle:
https://repro.elide.dev/repro/elide-py-native-crash/elide.nib.xz
The test script consists of:
Additional Context
No response
Build Log Output and Error Messages
See crash:
native-image-py-crash.txt
The text was updated successfully, but these errors were encountered: