From: Heesob Park Date: 2009-08-02T00:09:51+09:00 Subject: [ruby-core:24669] [Bug #1856] [BUG] Segmentation fault in 1.9.1p149 Issue #1856 has been updated by Heesob Park. I think this segmentation fault is due to the bug of your code. Here is a patch for your code seg-fault.rb: @@ -42,7 +42,7 @@ rd[1].close ; STDIN .reopen(rd[0]) ; rd[0].close wr[0].close ; STDOUT.reopen(wr[1]) ; wr[1].close err[0].close ; STDERR.reopen(err[1]) ; err[1].close - + ps[0].close begin exec(*cmd) raise "exec returned!" @@ -66,7 +66,7 @@ rescue EOFError # If we get an EOF error, then the exec was successful. end - + ps[0].close # If exc is set, then the exec was NOT successful. if not exc.nil? then raise exc ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1856 ---------------------------------------- http://redmine.ruby-lang.org