From: "misdoro (Mikhail Doronin) via ruby-core" Date: 2023-12-19T17:07:36+00:00 Subject: [ruby-core:115795] [Ruby master Bug#20072] free(): invalid pointer when compiled with --enable-shared --with-jemalloc Issue #20072 has been updated by misdoro (Mikhail Doronin). File config.log added Hi Nobu, you will find the config.log attached. Debugged it a bit deeper, it boils down to running `irb` and running `require 'sassc'` that is immediately crashing: ``` $ irb irb(main):001> require 'sassc' free(): invalid pointer Aborted ``` ---------------------------------------- Bug #20072: free(): invalid pointer when compiled with --enable-shared --with-jemalloc https://bugs.ruby-lang.org/issues/20072#change-105739 * Author: misdoro (Mikhail Doronin) * Status: Open * Priority: Normal * Target version: 3.3 * ruby -v: ruby 3.3.0dev (2023-08-17T01:57:09Z test 5bb9462285) [x86_64-linux] * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- When ruby is built with `--enable-shared --with-jemalloc` on Linux (current Gentoo, ubuntu22 in docker), running a rails app yields: ``` free(): invalid pointer Aborted ``` The issue started appearing after 5bb946228550c7f171c27725860b153a675404f3 https://github.com/ruby/ruby/commit/5bb946228550c7f171c27725860b153a675404f3 Related to https://bugs.ruby-lang.org/issues/18409 (workaround to LD_PRELOAD jemalloc from that issue works) ---Files-------------------------------- config.log (1.34 MB) -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/