Sporadic munmap_chunk: invalid pointer
or corrupted size vs. prev_size
, corrupted double-linked list
crashes installing ruby on Ubuntu 24.04 arm64
#2345
Labels
bug
Something isn't working
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
docker run -t ubuntu:24.04 bash -c 'apt-get update && apt-get -y install curl && (curl https://mise.jdx.dev/install.sh | sh) && /root/.local/bin/mise use --global --debug ruby@3.3.3 && ruby --version'
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
The text was updated successfully, but these errors were encountered: