-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Description
when using graalpython25.0.0 and cryptography,
the vm will crash with usage like below
public static void main(String[] args) throws IOException {
GraalPyResources.extractVirtualFileSystemResources(VirtualFileSystem.create(), externalResourceDirectoryPath);
for (int i = 0; i < 10; i++) {
System.out.printf("===============%s============%n", i);
Context defaultContext = getPrivateContext("default:" + i);
test(defaultContext);
defaultContext.close(true);
}
}
private static Context getPrivateContext(String name) {
return contextCache.computeIfAbsent(name, _ -> GraalPyResources.contextBuilder(externalResourceDirectoryPath)
.engine(engine)
.option("python.PosixModuleBackend", "native")
.option("python.IsolateNativeModules", "true")
.allowAllAccess(true)
.allowExperimentalOptions(true)
.option("python.WarnExperimentalFeatures", "false")
.build());
}
with early close context stament defaultContext.close(true);
the vm will result in core dump with log file
there is a repo which will reproduce the error
https://github.com/buuuuuuug/pycrypto_graalpy/tree/bug/core_dump
clone
git clone https://github.com/buuuuuuug/pycrypto_graalpy.git -b bug/core_dump && cd pycrypto_graalpy
versions
mvn --version
Apache Maven 3.9.11 (3e54c93a704957b63ee3494413a2b544fd3d825b)
Maven home: /root/.sdkman/candidates/maven/current
Java version: 25, vendor: Oracle Corporation, runtime: /root/.sdkman/candidates/java/25-graal
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.8.0-40-generic", arch: "amd64", family: "unix"
test
mvn test
Metadata
Metadata
Assignees
Labels
No labels