Issue #14334 has been updated by dazuma (Daniel Azuma).

Status changed from Third Party's Issue to Open

Some additional information. We're encountering the same segmentation fault, with the same C backtrace from inside the GC. (https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues/1979). We can reproduce it even when we remove simplecov from our bundle completely, and we are also not using the coverage library, so those libraries don't appear to be the direct culprit.

I also applied patch r62396 and can still reproduce this segfault, so this in fact appears to be a distinct problem from https://bugs.ruby-lang.org/issues/14357

The top of the C backtrace is:

-- C level backtrace information -------------------------------------------
0   ruby                                0x00000001025aeee7 rb_vm_bugreport + 135
1   ruby                                0x00000001024346b8 rb_bug_context + 472
2   ruby                                0x00000001025234a1 sigsegv + 81
3   libsystem_platform.dylib            0x00007fff6d0fef5a _sigtramp + 26
4   ruby                                0x000000010244dba3 rb_gc_mark_machine_stack + 99
5   ruby                                0x000000010259df49 rb_execution_context_mark + 137
6   ruby                                0x000000010241c3bb cont_mark + 27
7   ruby                                0x0000000102458a12 gc_marks_rest + 146
8   ruby                                0x00000001024573d0 gc_start + 2816
9   ruby                                0x000000010245674f newobj_slowpath + 1055
10  ruby                                0x0000000102456304 newobj_slowpath_wb_protected + 20
11  ruby                                0x0000000102544716 rb_sym_to_s + 38
12  ruby                                0x00000001025a9480 vm_call0_body + 560
13  ruby                                0x00000001025aa208 rb_call0 + 152
14  ruby                                0x0000000102597aae rb_funcall_with_block + 62
15  ruby                                0x0000000102597fbe rb_yield + 158
(etc...)


----------------------------------------
Bug #14334: Segmentation fault after running rspec (ruby/2.5.0/erb.rb:885 / simplecov/source_file.rb:85)
https://bugs.ruby-lang.org/issues/14334#change-70606

* Author: jesselatham (Jesse Latham)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin16]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
Segmentation fault after running rspec (ruby/2.5.0/erb.rb:885 and simplecov-0.15.1/lib/simplecov/source_file.rb:85)

Intermittently receiving a segmentation fault as rspec test suite is finishing up run of about 400 tests on a Rails application.  No good way to effectively reproduce this as I can also get through complete rspec test runs without issues.

Attached console output and log file from DiagnosticReports folder.

Never experienced the issue when working with ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]

Please let me know what else you might need to diagnose.

---Files--------------------------------
ruby_2018-01-07-175630_Australia.crash (43.3 KB)
segfault simplecov.rb console-output-2.txt (423 KB)
segfault erb.rb console-output-1.txt (423 KB)
ruby_2018-01-31-095536_Blackbriar.crash (45.1 KB)


-- 
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>