René's URL Explorer Experiment


Title: double free or corruption when enable python.IsolateNativeModules · Issue #563 · oracle/graalpython · GitHub

Open Graph Title: double free or corruption when enable python.IsolateNativeModules · Issue #563 · oracle/graalpython

X Title: double free or corruption when enable python.IsolateNativeModules · Issue #563 · oracle/graalpython

Description: How to reproduce? > environment container image: ghcr.io/graalvm/graalpy-community:25 jdk: graalvm-jdk-25_linux-x64_bin.tar.gz > python venv deps installed pip install torch transformers patchelf > multi context in maven repo(not package...

Open Graph Description: How to reproduce? > environment container image: ghcr.io/graalvm/graalpy-community:25 jdk: graalvm-jdk-25_linux-x64_bin.tar.gz > python venv deps installed pip install torch transformers patchelf >...

X Description: How to reproduce? > environment container image: ghcr.io/graalvm/graalpy-community:25 jdk: graalvm-jdk-25_linux-x64_bin.tar.gz > python venv deps installed pip install torch transformers patc...

Opengraph URL: https://github.com/oracle/graalpython/issues/563

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"double free or corruption when enable python.IsolateNativeModules","articleBody":"## How to reproduce?\n\n### \u003e environment\ncontainer image: ghcr.io/graalvm/graalpy-community:25\njdk: graalvm-jdk-25_linux-x64_bin.tar.gz\n\n### \u003e python venv deps installed\n`pip install torch transformers patchelf`\n\n### \u003e multi context in maven repo(not packaged as native-image)\n```java\n// Create a new GraalVM Python context and managed by org.apache.commons.pool2.impl.GenericObjectPool\nContext context = GraalPyResources\n        .contextBuilder(Path.of(\"python-resources\"))\n        .option(\"python.IsolateNativeModules\", \"true\")\n        .allowExperimentalOptions(true)\n        .allowIO(IOAccess.ALL)\n        .allowCreateThread(true)\n        .allowCreateProcess(true)\n        .allowHostAccess(HostAccess.ALL)\n        .allowAllAccess(true)\n        .build();\n```\n\n```java\n// use contexts in parallel, scriptPool has 3 context above\nString scriptText = \"\"\n        + \"import torch\\n\"\n        + \"import transformers\\n\"\n        + \"\\n\"\n        + \"def main():\\n\"\n        + \"    print(f'Torch version: {torch.__version__}, Transformers version: {transformers.__version__}')\\n\";\nPythonScriptPool scriptPool = new PythonScriptPool(\"testScript\", scriptText, 3);\njava.util.stream.Stream.iterate(0, n -\u003e n + 1).limit(10).parallel().forEach(n -\u003e {\n    try {\n        scriptPool.executeMethod(\"main\", new Object[] {});\n    } catch (Throwable e) {\n        e.printStackTrace();\n        System.exit(1);\n    }\n});\n```\n\n### \u003e error log\n```\n18:18:13  #14 0.761 WARNING: A restricted method in java.lang.System has been called\n18:18:13  #14 0.761 WARNING: java.lang.System::load has been called by com.oracle.truffle.polyglot.JDKSupport in an unnamed module (file:/app/repo/target/bb-1.0-SNAPSHOT.jar)\n18:18:13  #14 0.761 WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module\n18:18:13  #14 0.761 WARNING: Restricted methods will be blocked in a future release unless native access is enabled\n18:18:13  #14 0.761 \n18:18:13  #14 1.081 WARNING: A terminally deprecated method in sun.misc.Unsafe has been called\n18:18:13  #14 1.081 WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.oracle.truffle.runtime.hotspot.HotSpotTruffleRuntime (file:/app/repo/target/bb-1.0-SNAPSHOT.jar)\n18:18:13  #14 1.081 WARNING: Please consider reporting this to the maintainers of class com.oracle.truffle.runtime.hotspot.HotSpotTruffleRuntime\n18:18:13  #14 1.081 WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release\n18:18:21  #14 8.482 [To redirect Truffle log output to a file use one of the following options:\n18:18:21  #14 8.482 * '--log.file=\u003cpath\u003e' if the option is passed using a guest language launcher.\n18:18:21  #14 8.482 * '-Dpolyglot.log.file=\u003cpath\u003e' if the option is passed using the host Java launcher.\n18:18:21  #14 8.482 * Configure logging using the polyglot embedding API.]\n18:18:21  #14 8.482 [To redirect Truffle log output to a file use one of the following options:\n18:18:21  #14 8.482 * '--log.file=\u003cpath\u003e' if the option is passed using a guest language launcher.\n18:18:21  #14 8.482 * '-Dpolyglot.log.file=\u003cpath\u003e' if the option is passed using the host Java launcher.\n18:18:21  #14 8.482 * Configure logging using the polyglot embedding API.]\n18:18:21  #14 8.482 [To redirect Truffle log output to a file use one of the following options:\n18:18:21  #14 8.482 * '--log.file=\u003cpath\u003e' if the option is passed using a guest language launcher.\n18:18:21  #14 8.482 * '-Dpolyglot.log.file=\u003cpath\u003e' if the option is passed using the host Java launcher.\n18:18:21  #14 8.482 * Configure logging using the polyglot embedding API.]\n18:18:21  #14 8.482 [python::CApiContext] WARNING: Loading C extension module torch._C from '/app/repo/python-resources/venv/lib/python3.12/site-packages/torch/_C.graalpy250-312-native-x86_64-linux.so'. Support for the Python C API is considered experimental. See https://www.graalvm.org/latest/reference-manual/python/Native-Extensions/#embedding-limitations for the limitations. You can suppress this warning by setting the context option 'python.WarnExperimentalFeatures' to 'false'.\n18:18:21  #14 8.482 [python::CApiContext] WARNING: Loading C extension module torch._C from '/app/repo/python-resources/venv/lib/python3.12/site-packages/torch/_C.graalpy250-312-native-x86_64-linux.so'. Support for the Python C API is considered experimental. See https://www.graalvm.org/latest/reference-manual/python/Native-Extensions/#embedding-limitations for the limitations. You can suppress this warning by setting the context option 'python.WarnExperimentalFeatures' to 'false'.\n18:18:21  #14 8.482 [python::CApiContext] WARNING: Loading C extension module torch._C from '/app/repo/python-resources/venv/lib/python3.12/site-packages/torch/_C.graalpy250-312-native-x86_64-linux.so'. Support for the Python C API is considered experimental. See https://www.graalvm.org/latest/reference-manual/python/Native-Extensions/#embedding-limitations for the limitations. You can suppress this warning by setting the context option 'python.WarnExperimentalFeatures' to 'false'.\n18:18:21  #14 8.806 double free or corruption (out)\n18:18:21  #14 8.806 double free or corruption (!prev)\n18:18:21  #14 8.806 #\n18:18:21  #14 8.806 # A fatal error has been detected by the Java Runtime Environment:\n18:18:21  #14 8.806 #\n18:18:21  #14 8.806 #  SIGSEGV (0xb) at pc=0x00007f24b9d9a997, pid=1, tid=52\n18:18:21  #14 8.806 #\n18:18:21  #14 8.806 # JRE version: Java(TM) SE Runtime Environment Oracle GraalVM 25.0.1+8.1 (25.0.1+8) (build 25.0.1+8-LTS-jvmci-b01)\n18:18:21  #14 8.806 # Java VM: Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 25.0.1+8.1 (25.0.1+8-LTS-jvmci-b01, mixed mode, sharing, tiered, jvmci, jvmci compiler, compressed oops, compressed class ptrs, g1 gc, linux-amd64)\n18:18:21  #14 8.806 # Problematic frame:\n18:18:21  #14 8.806 # C  [libc.so.6+0x28997]  abort+0x174\n18:18:21  #14 8.806 #\n18:18:21  #14 8.806 # Core dump will be written. Default location: /app/repo/core.1\n18:18:21  #14 8.806 #\n18:18:21  #14 8.807 # An error report file with more information is saved as:\n18:18:21  #14 8.807 # /app/repo/hs_err_pid1.log\n18:18:21  #14 8.835 [8.718s][warning][os] Loading hsdis library failed\n18:18:53  #14 39.29 #\n18:18:53  #14 39.29 # If you would like to submit a bug report, please visit:\n18:18:53  #14 39.29 #   https://bugreport.java.com/bugreport/crash.jsp\n18:18:53  #14 39.29 # The crash happened outside the Java Virtual Machine in native code.\n18:18:53  #14 39.29 # See problematic frame for where to report the bug.\n18:18:53  #14 39.29 #\n```\n\n","author":{"url":"https://github.com/suiwenfeng","@type":"Person","name":"suiwenfeng"},"datePublished":"2025-10-28T10:47:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/563/graalpython/issues/563"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:be221fa5-58ad-99a0-20f9-6911dacda376
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id87B0:2EB8B3:20B5673:2E0E60B:696F6297
html-safe-noncecf233a72465b5fbdccd46f7dcbbfa45dfbaaa043549ef16f66f0e80b250cd5e9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0IwOjJFQjhCMzoyMEI1NjczOjJFMEU2MEI6Njk2RjYyOTciLCJ2aXNpdG9yX2lkIjoiMzQzMzIzNTQxODk2MDU4NTM2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5bc5690b4d8e4ebcecf2528b445bfeac27b5de2ccb6b493347b56bc01a5df097
hovercard-subject-tagissue:3560939675
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/oracle/graalpython/563/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ebd20d07b904681d482bef0c228cd5d6ed16241af7851eb3b2e3290039df916b/oracle/graalpython/issues/563
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ebd20d07b904681d482bef0c228cd5d6ed16241af7851eb3b2e3290039df916b/oracle/graalpython/issues/563
og:image:altHow to reproduce? > environment container image: ghcr.io/graalvm/graalpy-community:25 jdk: graalvm-jdk-25_linux-x64_bin.tar.gz > python venv deps installed pip install torch transformers patchelf >...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesuiwenfeng
hostnamegithub.com
expected-hostnamegithub.com
None774d0922d2c4577043d2dab90427344eb4c6ce1d5579acb1dd504cff1a7e46f8
turbo-cache-controlno-preview
go-importgithub.com/oracle/graalpython git https://github.com/oracle/graalpython.git
octolytics-dimension-user_id4430336
octolytics-dimension-user_loginoracle
octolytics-dimension-repository_id129883600
octolytics-dimension-repository_nwooracle/graalpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id129883600
octolytics-dimension-repository_network_root_nwooracle/graalpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release650acea592f12d1bd8931d44546c209e0b06ed6e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/oracle/graalpython/issues/563#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Foracle%2Fgraalpython%2Fissues%2F563
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Foracle%2Fgraalpython%2Fissues%2F563
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=oracle%2Fgraalpython
Reloadhttps://patch-diff.githubusercontent.com/oracle/graalpython/issues/563
Reloadhttps://patch-diff.githubusercontent.com/oracle/graalpython/issues/563
Reloadhttps://patch-diff.githubusercontent.com/oracle/graalpython/issues/563
oracle https://patch-diff.githubusercontent.com/oracle
graalpythonhttps://patch-diff.githubusercontent.com/oracle/graalpython
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Foracle%2Fgraalpython
Fork 140 https://patch-diff.githubusercontent.com/login?return_to=%2Foracle%2Fgraalpython
Star 1.5k https://patch-diff.githubusercontent.com/login?return_to=%2Foracle%2Fgraalpython
Code https://patch-diff.githubusercontent.com/oracle/graalpython
Issues 55 https://patch-diff.githubusercontent.com/oracle/graalpython/issues
Pull requests 4 https://patch-diff.githubusercontent.com/oracle/graalpython/pulls
Discussions https://patch-diff.githubusercontent.com/oracle/graalpython/discussions
Actions https://patch-diff.githubusercontent.com/oracle/graalpython/actions
Projects 1 https://patch-diff.githubusercontent.com/oracle/graalpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/oracle/graalpython/security
Please reload this pagehttps://patch-diff.githubusercontent.com/oracle/graalpython/issues/563
Insights https://patch-diff.githubusercontent.com/oracle/graalpython/pulse
Code https://patch-diff.githubusercontent.com/oracle/graalpython
Issues https://patch-diff.githubusercontent.com/oracle/graalpython/issues
Pull requests https://patch-diff.githubusercontent.com/oracle/graalpython/pulls
Discussions https://patch-diff.githubusercontent.com/oracle/graalpython/discussions
Actions https://patch-diff.githubusercontent.com/oracle/graalpython/actions
Projects https://patch-diff.githubusercontent.com/oracle/graalpython/projects
Security https://patch-diff.githubusercontent.com/oracle/graalpython/security
Insights https://patch-diff.githubusercontent.com/oracle/graalpython/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/oracle/graalpython/issues/563
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/oracle/graalpython/issues/563
double free or corruption when enable python.IsolateNativeModuleshttps://patch-diff.githubusercontent.com/oracle/graalpython/issues/563#top
https://github.com/suiwenfeng
https://github.com/suiwenfeng
suiwenfenghttps://github.com/suiwenfeng
on Oct 28, 2025https://github.com/oracle/graalpython/issues/563#issue-3560939675
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.