Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segmentation fault related to the relaying of subprocess stdout. #5

Closed
automatthew opened this issue Oct 1, 2012 · 0 comments
Closed
Labels

Comments

@automatthew
Copy link
Contributor

/usr/local/rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/fate-0.2.12/lib/fate/logger.rb:77: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0007 p:0012 s:0030 b:0029 l:000028 d:000028 METHOD /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/fate-0.2.12/lib/fate/logger.rb:77
c:0006 p:0034 s:0024 b:0023 l:000022 d:000022 METHOD /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/fate-0.2.12/lib/fate/logger.rb:32
c:0005 p:---- s:0018 b:0018 l:000017 d:000017 FINISH
c:0004 p:---- s:0016 b:0016 l:000015 d:000015 CFUNC  :copy_stream
c:0003 p:0126 s:0011 b:0011 l:000228 d:000010 BLOCK  /usr/local/rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/fate-0.2.12/lib/fate/process_manager.rb:100
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP   

-- Ruby level backtrace information ----------------------------------------
/usr/local/rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/fate-0.2.12/lib/fate/process_manager.rb:100:in `block in spawn'
/usr/local/rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/fate-0.2.12/lib/fate/process_manager.rb:100:in `copy_stream'
/usr/local/rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/fate-0.2.12/lib/fate/logger.rb:32:in `write'
/usr/local/rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/fate-0.2.12/lib/fate/logger.rb:77:in `format'

-- C level backtrace information -------------------------------------------
Segmentation fault

This looks to be a bug in Ruby's IO.copy_stream method, but the only references I could find are to non-Linux platforms.

Cygwin: http://www.ruby-forum.com/topic/214105

Bug report in Japanese possibly about Mac OS X: http://bugs.ruby-lang.org/issues/4866. After squinting at the Google Translated version, I think that the bug was closed because the assignee couldn't reproduce it on non Mac platforms.

I can avoid the use of IO.copy_stream by manually relaying from one IO object to another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant