Issue #13537 has been updated by kwilczynski (Krzysztof Wilczynski).


I can confirm having the same issue. It's intermediate but reproducible, and affects both 2.4.0 and 2.4.1 versions.

The setup is simple:

- OS X (macOS 10.12.5 with latest patches)
- XCode command line tools (also latest)
- rbenv with ruby-install (installed via Homebrew)

The guard Ruby gem is installed and run using fsnotify events to trigger builds, and it would randomly crash Ruby interpreter. Sometimes at the very beginning, sometimes after running a while.

Since I test against multiple Ruby versions, I can confirm that this does not happen on 2.2.6 and 2.3.3, only 2.4.x family is affected.

----------------------------------------
Bug #13537: ruby crash in rb_gc_mark
https://bugs.ruby-lang.org/issues/13537#change-65154

* Author: viamin (Bart Agapinan)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.4.1p111
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
ruby crashes on me fairly regularly while working on a rails app. It happens after a file has changed and the guard gem fires up some tests. It appears to be happening when running rubycritic via guard:

```
running flay smells

running flog smells
..
running reek smells
..
running complexity
..
running attributes
..
running churn
.
/usr/local/var/rbenv/versions/2.4.1/lib/ruby/2.4.0/pathname.rb:41: [BUG] rb_gc_mark(): 0x007fd0efd68a68 is T_NONE
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
```


---Files--------------------------------
ruby_2017-05-02-065959_Barts-iMac.crash (27.2 KB)
bug-13537.log (159 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>