Project

General

Profile

Actions

Bug #15887

closed

Process.argv0 can return bad values in Ruby 2.5

Added by joeym (Joey Marianer) over 5 years ago. Updated about 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-darwin18]
[ruby-core:92884]

Description

MacOS 10.14.5 on a clean (source, using ruby-install) installation of Ruby 2.5.5

$ ruby --version
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-darwin18]
$ gem install vault vcr virtus webmock webrick
$ echo Process.argv0 | irb

...sometimes returns {}, sometimes some other nonsense and sometimes segfaults, but never (or rarely enough that I haven't seen it) returns a string ending in bin/irb as expected.

Unfortunately the bug only manifests when certain gems are installed; the set I included above is one possible set of gems that triggers the bug; I don't know what's special about it.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0