*** Error in `ruby': double free or corruption (fasttop): 0x00007fdc088fd5e0 ***
I'm developing rails application and for my tests I use capybara (selenium driver). Running 'rake test' (or 'rake test test/units/capybara_test.rb' command might end up in such issue. I noticed it fails in capybara tests. I want to point out the rate of happening of this issue may vary. Sometimes it happens 1/10 of running of tests, sometimes 9/10.
my uname -a: Linux egg 3.13.0-46-generic #79-Ubuntu SMP Tue Mar 10 20:06:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Updated by elserpiente (Max Power) over 5 years ago
Sorry, my bad. I used hacky way in order to force capybara use same transaction among threads. https://github.com/jnicklas/capybara#transactions-and-database-setup.
After removing this code the issue goes away.