-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xla_extension.so: cannot enable executable stack as shared object requires: Invalid argument #26781
xla_extension.so: cannot enable executable stack as shared object requires: Invalid argument #26781
Comments
This seems to be a regression in jaxlib 0.5.1. The xla_extension.so indeed has the stack marked as executable:
While jaxlib 0.5.0 does not:
An unhappy coincidence given that dlopen'ing shared libraries with executable stack was officially removed from glibc less than a month ago, in version 2.41! |
Also, this might actually be an XLA issue, since xla_extension.so comes from XLA. But I can't be sure, because I couldn't reproduce the issue with xla_extension.so compiling XLA by itself under some configurations, and couldn't get the compilation to work at all under other configurations. So this may also be an issue with the compilation environment of jaxlib's wheels specifically. |
I have the same issue. Reverting to jax version 0.5.0 cleared the issue. |
Fix jax-ml/jax#26781. PiperOrigin-RevId: 732235187
Fix jax-ml/jax#26781. PiperOrigin-RevId: 732235187
Fix jax-ml/jax#26781. PiperOrigin-RevId: 732235187
Fix jax-ml/jax#26781. PiperOrigin-RevId: 732235187
Fix jax-ml/jax#26781. PiperOrigin-RevId: 732235187
Fix jax-ml/jax#26781. FUTURE_COPYBARA_INTEGRATE_REVIEW=#88314 from tensorflow:fixtypos18 1571f5e PiperOrigin-RevId: 732235187
Fix jax-ml/jax#26781. PiperOrigin-RevId: 732235187
Fix jax-ml/jax#26781. PiperOrigin-RevId: 732235187
Fix jax-ml/jax#26781. PiperOrigin-RevId: 732235187
Fix jax-ml/jax#26781. PiperOrigin-RevId: 732235187
Fix jax-ml/jax#26781. PiperOrigin-RevId: 732235187
Description
I got this bug today after creating a fresh environment. I tried creating the env using uv and venv, and it happened in both cases. The bug happened in both python 3.11.11 and 3.13.1 (did not check more). Here is the full error message
I managed to fix this by running
execstack -c /path/to/my/env/myenv_name/lib/python3.11/site-packages/jaxlib/xla_extension.so
.System info (python version, jaxlib version, accelerator, etc.)
The text was updated successfully, but these errors were encountered: