From: "mame (Yusuke Endoh)" Date: 2022-08-03T02:36:58+00:00 Subject: [ruby-core:109418] [Ruby master Bug#18952] rb_aligned_free: munmap failed Issue #18952 has been updated by mame (Yusuke Endoh). Assignee set to peterzhu2118 (Peter Zhu) @peterzhu2118 Can you check it out? This is just my guess but I think it has something to do with musl's strategy on how to use mmap/munmap. Are you using Alpine Linux? I wonder if it won't happen if you use Ubuntu with glibc. ---------------------------------------- Bug #18952: rb_aligned_free: munmap failed https://bugs.ruby-lang.org/issues/18952#change-98568 * Author: mdomsch-sz (Matt Domsch) * Status: Open * Priority: Normal * Assignee: peterzhu2118 (Peter Zhu) * ruby -v: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-musl] * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- Over the past several weeks, our Linux ruby 3.1.2 application has failed repeatedly with: [BUG] rb_aligned_free: munmap failed Ruby tracebacks indicate failures in many libraries and functions, due to the garbage collector running at its discretion. Reproduction is not easily accomplished as this is a low-level ruby function being invoked from within a large web application, and not directly by our application, the servers of which have 24GB RAM and are not seeing any indication of out-of-memory concerns. Unfortunately the munmap() call here does not catch the return value and errno to report why munmap() failed. I append one example backtrace log. ---Files-------------------------------- logs.gz (414 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: