[ruby-core:85538] Re: [Ruby trunk Bug#14334] Segmentation fault after running rspec (ruby/2.5.0/erb.rb:885 / simplecov/source_file.rb:85)

From: Eric Wong <normalperson@...>
Date: 2018-02-14 02:06:59 UTC
List: ruby-core #85538
Eric Wong wrote:
> [email protected] wrote:
> > issue" means, but I'm relatively certain that it's a bug in
> > Ruby we managed to reproduce it without any simplecov involved
> > purely using the coverage library:
> > https://github.com/colszowka/simplecov/issues/652#issuecomment-362436552
> 
> I couldn't reproduce it (using Coverage directly), but I suspect
> the following patch is a fix for more aggressive compilers:

Sorry, I think my patch was bogus (wrote it while barely awake that day :x)

However, I have a suspicion that this is related to
https://bugs.ruby-lang.org/issues/14357 and fixed by r62396 in
trunk since Coverage uses unoptimized objects as hash keys which
require rb_funcall (which allow triggering thread switches).

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next