Title: Segfault importing PyTorch on Linux (works on macOS) · Issue #589 · oracle/graalpython · GitHub
Open Graph Title: Segfault importing PyTorch on Linux (works on macOS) · Issue #589 · oracle/graalpython
X Title: Segfault importing PyTorch on Linux (works on macOS) · Issue #589 · oracle/graalpython
Description: Bug Report: Environment: GraalPy 25.0.1 (Oracle GraalVM Native) Linux x86_64 (Ubuntu) PyTorch 2.7.0 (built from source with GraalPy patches) Minimal reproducer: Download GraalPy 25.0.1 for Linux wget https://github.com/oracle/graalpython...
Open Graph Description: Bug Report: Environment: GraalPy 25.0.1 (Oracle GraalVM Native) Linux x86_64 (Ubuntu) PyTorch 2.7.0 (built from source with GraalPy patches) Minimal reproducer: Download GraalPy 25.0.1 for Linux wg...
X Description: Bug Report: Environment: GraalPy 25.0.1 (Oracle GraalVM Native) Linux x86_64 (Ubuntu) PyTorch 2.7.0 (built from source with GraalPy patches) Minimal reproducer: Download GraalPy 25.0.1 for Linux wg...
Mail addresses
morris@surfworks.energy
Opengraph URL: https://github.com/oracle/graalpython/issues/589
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segfault importing PyTorch on Linux (works on macOS)","articleBody":" Bug Report: \n \n Environment: \n - GraalPy 25.0.1 (Oracle GraalVM Native) \n - Linux x86_64 (Ubuntu) \n - PyTorch 2.7.0 (built from source with GraalPy patches) \n \n Minimal reproducer: \n # Download GraalPy 25.0.1 for Linux \n wget https://github.com/oracle/graalpython/releases/download/graal-25.0.1/graalpy-25.0.1-linux-amd64.tar.gz \n tar xzf graalpy-25.0.1-linux-amd64.tar.gz \n ./graalpy-25.0.1-linux-amd64/bin/graalpy -m venv venv \n source venv/bin/activate \n pip install torch==2.7.0 \n python -c \"import torch._C\" # SEGFAULT \n \n Observed behavior: \n Segfault during import torch._C (pybind11 module initialization). \n \n Key observations: \n - Native libraries load successfully via ctypes: \n import ctypes \n ctypes.CDLL('.../torch/lib/libtorch_python.so') # OK \n - Crash occurs only when pybind11 module initializes \n - Same build works on macOS aarch64, crashes on Linux x86_64 \n \n Crash location (from segfault handler): \n com.oracle.svm.truffle.nfi.NativeSignature$ExecuteHelper.ffiCall(NativeSignature.java:157) \n com.oracle.truffle.nfi.backend.libffi.LibFFIContext.executeNative(LibFFIContext.java:179) \n \n Full crash output: (truncated) \n [ [ SegfaultHandler caught a segfault in thread 0x00005e652f536c00 ] ] \n siginfo: si_signo: 11, si_code: 128, si_addr: 0x0000000000000000 \n \n____________________\n\nMorris Meyer - morris@surfworks.energy","author":{"url":"https://github.com/morrismeyer","@type":"Person","name":"morrismeyer"},"datePublished":"2026-01-11T00:54:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/589/graalpython/issues/589"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:27062eaf-9c7f-6cdd-4553-1207477439c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A112:25708D:2E9EFB:40498E:696959C1 |
| html-safe-nonce | a2fd37578e74776014983a60dd00c2e7cdcde9433eddf1fd7ee7e46a02454344 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTEyOjI1NzA4RDoyRTlFRkI6NDA0OThFOjY5Njk1OUMxIiwidmlzaXRvcl9pZCI6IjIzMjY5MTE1OTA4MDA2NDQ1NDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2a3efb42b1e3d8f7642a4e6d925b08bf045be912003c608100c55c943681ee90 |
| hovercard-subject-tag | issue:3800565199 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/oracle/graalpython/589/issue_layout |
| twitter:image | https://opengraph.githubassets.com/724ef50971ca0826a87fa6dc86ab4ad87a55e17e2af8a07de1adec215870edca/oracle/graalpython/issues/589 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/724ef50971ca0826a87fa6dc86ab4ad87a55e17e2af8a07de1adec215870edca/oracle/graalpython/issues/589 |
| og:image:alt | Bug Report: Environment: GraalPy 25.0.1 (Oracle GraalVM Native) Linux x86_64 (Ubuntu) PyTorch 2.7.0 (built from source with GraalPy patches) Minimal reproducer: Download GraalPy 25.0.1 for Linux wg... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | morrismeyer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9db5f28da7e24035385d7f349f17890cbe016a939ddd7952be0f07b862094f5a |
| turbo-cache-control | no-preview |
| go-import | github.com/oracle/graalpython git https://github.com/oracle/graalpython.git |
| octolytics-dimension-user_id | 4430336 |
| octolytics-dimension-user_login | oracle |
| octolytics-dimension-repository_id | 129883600 |
| octolytics-dimension-repository_nwo | oracle/graalpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 129883600 |
| octolytics-dimension-repository_network_root_nwo | oracle/graalpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4e59fe66217d3c72925af2a341ae3a8f2b5b5b2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width