Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

VM crashes with graalpython25.0.0 and cryptography #558

Open
@buuuuuuug

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /