Closed chadlwilson closed 3 months ago
duplicate of #2196 and #2287
Oh, strange. Didn't show up in my search for the most common of the errors. Sorry.
For anyone who comes across this issue rather than the others I accidentally duplicated, this appears to be resolved in 2024.7.1
onwards (by https://github.com/jdx/mise/pull/2357), at least for all the cases I could reproduce personally.
Describe the bug
I seem to be having issues installing Ruby with mise on arm64. This may be a ruby-build issue, I am not familiar enough with mise to understand the interactions.
Right now it seems to be crashing reliably on a first run with different reasons.
Seen all of
munmap_chunk: invalid pointer
corrupted size
corrupted double-linked list
free(): invalid next size (fast)
malloc(): unaligned tcache chunk detected
If I put it in a tight loop retrying I can get it up to where it downloads the Ruby version and starts
make
so there's some non-determinism here. Once it gets to installing once, it is fine, so I guess it's to do with something cached between "downloads ruby-build" and "ruby-build downloads Ruby 3.3.3".This is quite possibly a ruby-build issue, so let me know if so, but couldn't replicate it with standard ruby-build commands :-(
Ruby build version will be 20240702 although Mise pulls the latest I believe, which might affect reproducibility.
To Reproduce
Similar with Ubuntu 22.04, also seen on CentOS Stream 9.
Expected behavior
Should install (or fail due to requirements for ruby-build not being met)
Additional context