Skip to content

Error during every attempt to run / install tokenizers - SentencePiece jll doesnt work. #11243

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

Open
theprobablyharsh opened this issue May 22, 2025 · 1 comment

Comments

@theprobablyharsh
Copy link

theprobablyharsh commented May 22, 2025

julia> Pkg.build("PyCall")
    Building Conda ─→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/b19db3927f0db4151cb86d073689f2428e524576/build.log`
    Building PyCall → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/9816a3826b0ebf49ab4926e2b18842ad8b5c8f04/build.log`
Precompiling project...
  ✗ SentencePiece_jll
  0 dependencies successfully precompiled in 3 seconds. 295 already precompiled.
  1 dependency errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:

SentencePiece_jll 

Failed to precompile SentencePiece_jll [0cc836cc-86cb-5b0e-b290-caf6c31794d8] to "/Users/username/.julia/compiled/v1.11/SentencePiece_jll/jl_UyP1L5".
[77112] signal 11 (2): Segmentation fault: 11
in expression starting at /Users/username/.julia/packages/SentencePiece_jll/HsnJo/src/wrappers/aarch64-apple-darwin.jl:

My system : macOS aarch64 (aarch64-apple-darwin)

@giordano
Copy link
Member

The problem seems to be in gpertools_jll, just loading the library causes a segfault:

julia> using gperftools_jll
Segmentation fault: 11

The function they run upon loading the library is probably doing something nasty: https://github.com/gperftools/gperftools/blob/83edb60836d87cf1b406e8846b9059c03031e8f5/src/tests/tcmalloc_unittest.cc#L1174

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants