Claus-Theodor Riegg
8 years
Claus-Theodor Riegg
7 years
Stefan Langenmaier
1 year
Andreas Vöst
5 months
Claus-Theodor Riegg
5 years
Andreas Vöst
6 months
Emma Heinle
7 months
Andreas Vöst
7 months

Fix "double free or corruption (out)"

Posted . Visible to the public.

Sometime we've seen this error when executing e.g. bundle exec rake asset:precompile:

double free or corruption (out)
rake aborted!

The reason for this can be Jemalloc. Check if you are using Jemalloc by checking the $LD_PRELOAD environment variable:

echo $LD_PRELOAD
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2

To test if Jemalloc is the reason, unset the Environment Variable and run the command again:

unset LD_PRELOAD
bundle exec rake asset:precompile
Last edit
Kim Klotz
License
Source code in this card is licensed under the MIT License.