Issue #10992 has been updated by Max Power.


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.

----------------------------------------
Bug #10992: *** Error in `ruby': double free or corruption (fasttop): 0x00007fdc088fd5e0 ***
https://bugs.ruby-lang.org/issues/10992#change-51937

* Author: Max Power
* Status: Third Party's Issue
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi,

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

~~~



-- 
https://bugs.ruby-lang.org/