From: chrisliaw@... Date: 2014-10-07T15:30:46+00:00 Subject: [ruby-core:65479] [ruby-trunk - Bug #10338] [Open] ruby script running gnome-open will crash vim, if the file open by gnome-open is handled by vim Issue #10338 has been reported by Chris Liaw. ---------------------------------------- Bug #10338: ruby script running gnome-open will crash vim, if the file open by gnome-open is handled by vim https://bugs.ruby-lang.org/issues/10338 * Author: Chris Liaw * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: 2.1.2 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- I hit this bug recently. Code to reproduce the error under my environment: require 'rubygems' require 'bundler/setup' out = system "gnome-open","model.rb" p out out = `gnome-open model.rb` p out Both system and backtick will crash the vim. Vim is default handler for .rb file. File is open via "gvim -f %i" This only observe in ruby 2.1.2. Ruby v1.9.3 and v2.0.0 successful without error. Only file require with bundler/setup will hit this error. My environment setup: OS : Ubuntu 14.04 64 bits Kernel : 3.13.0-36-generic Affected ruby : 2.1.2 NOT affected ruby : 1.9.3, 2.0.0 Vim version : 7.4.52 bundler version : 1.6.2 rvm version : 1.25.27 -- https://bugs.ruby-lang.org/