Project

General

Profile

Actions

Bug #7855

closed

Rare segfault within yielding block

Added by nathanaeljones (Nathanael Jones) about 11 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-darwin12.2.0]
[ruby-core:52270]

Description

I'm getting a segfault every few days inside an enumerator yield block:

    Enumerator.new  do |y| 
      cache.each do |k,v|      
        y << v if yield(v) #segfaulting here every million executions or so
      end
    end

Source code:
https://github.com/nathanaeljones/hardwired/blob/master/lib/hardwired/index.rb

Full crash info
https://gist.github.com/nathanaeljones/4686226

Another instance it happened
https://gist.github.com/nathanaeljones/4957920

Updated by ko1 (Koichi Sasada) about 11 years ago

  • Status changed from Open to Feedback
  • Target version set to 2.6

Could you give us more small reproduce-able code?
I'm not sure it is core's matter or 3rd party issue.

Actions #2

Updated by naruse (Yui NARUSE) over 6 years ago

  • Target version deleted (2.6)
Actions #3

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0