I've bisected the failure (git bisect is great!), and it seems that
the problem was introduced in rev. r15806: "dir.c (dir_inspect,
dir_path, dir_tell): check for frozen and closed is not needed.
[ruby-dev:32640]"

Thanks,
  --Vladimir