From: "robotmay (Robert May)" Date: 2013-06-20T17:01:00+09:00 Subject: [ruby-core:55570] [ruby-trunk - Bug #8547] FileUtils.chmod("a+r", "foobar", verbose: true) crashes Issue #8547 has been updated by robotmay (Robert May). I submitted a pull request on the GitHub mirror which fixes the issue. Whether it's the correct fix I can't be certain, as I've not submitted code to Ruby core before :) https://github.com/ruby/ruby/pull/329 ---------------------------------------- Bug #8547: FileUtils.chmod("a+r", "foobar", verbose: true) crashes https://bugs.ruby-lang.org/issues/8547#change-40064 Author: gurgeous (Adam Doppelt) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.0.0p195 Backport: 1.9.3: DONTNEED, 2.0.0: REQUIRED To reproduce in IRB: >> require "fileutils" ; FileUtils.chmod("a+r", "foobar", verbose: true) Here's the stack: NoMethodError: undefined method `mode_to_s' for FileUtils:Module from ~/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/fileutils.rb:970:in `chmod' This ONLY crashes with :verbose. If you leave off :verbose it skips the call to mode_to_s, so there's no crash. -- http://bugs.ruby-lang.org/