[#106355] [Ruby master Bug#18373] RBS build failure: '/include/x86_64-linux/ruby/config.h', needed by 'constants.o'. — "vo.x (Vit Ondruch)" <noreply@...>
Issue #18373 has been reported by vo.x (Vit Ondruch).
28 messages
2021/12/01
[ruby-core:106697] [Ruby master Bug#18409] Crash (free(): invalid pointer) if LD_PRELOAD doesn't explicitly include libjemalloc.so.2
From:
"itay-grudev (Itay Grudev)" <noreply@...>
Date:
2021-12-15 17:04:00 UTC
List:
ruby-core #106697
Issue #18409 has been updated by itay-grudev (Itay Grudev). How can I try to trace it? I tried attaching GDB to the process with little success. ---------------------------------------- Bug #18409: Crash (free(): invalid pointer) if LD_PRELOAD doesn't explicitly include libjemalloc.so.2 https://bugs.ruby-lang.org/issues/18409#change-95379 * Author: itay-grudev (Itay Grudev) * Status: Open * Priority: Normal * ruby -v: ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-linux] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- I recently installed Ruby 3.0.2 using rbenv with: ``` RUBY_CONFIGURE_OPTS='--with-jemalloc' rbenv install 3.0.2 ``` After running our app it always crashed with: ``` free(): invalid pointer [1] 51364 IOT instruction (core dumped) bundle exec rails assets:precompile ``` I also tried upgrading to `3.0.3` with no success. After researching the bug a lot and lots of failed attempt to track it down I stumbled upon this report: https://github.com/grpc/grpc/issues/25450 that recommended trying: ``` LD_PRELOAD=$LD_PRELOAD:/lib/x86_64-linux-gnu/libjemalloc.so.2 bundle exec rails assets:precompile ``` That seems to have worked, but that can't be the proper solution in production. Surely it shouldn't be required. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>