Date: Fri, 30 Oct 2020 03:08:27 +0000 From: bugzilla-noreply@freebsd.org To: ruby@FreeBSD.org Subject: [Bug 250731] lang/jruby: File.stat and File.lstat return incorrect values Message-ID: <bug-250731-21402@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250731 Bug ID: 250731 Summary: lang/jruby: File.stat and File.lstat return incorrect values Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ruby@FreeBSD.org Reporter: dearblue@users.osdn.me Assignee: ruby@FreeBSD.org Flags: maintainer-feedback?(ruby@FreeBSD.org) I tried jruby-9.2.5.0. Wrong result by jruby: ``` % jruby -e 'p File.lstat "/usr/local/share/jruby/lib/ruby/gems/shared/gems/rubygems-update-3.1.4"' #<File::Stat dev=3D0xffffffffe2d119e8, ino=3D762223326, mode=3D0110572, nli= nk=3D6, uid=3D0, gid=3D2, rdev=3D0x0, size=3D721299000, blksize=3D721299000, blocks= =3D1604023633, atime=3D1970-01-01 13:41:17 +0900, mtime=3D1970-01-01 09:00:00 +0900, ctime=3D1992-11-09 17:50:01 +0900, birthtime=3D2020-10-30 11:07:13 +0900> ``` Expected result: ``` % ruby27 -e 'p File.lstat "/usr/local/share/jruby/lib/ruby/gems/shared/gems/rubygems-update-3.1.4"' #<File::Stat dev=3D0x2d6e9adee2d119e8, ino=3D430458, mode=3D040755, nlink= =3D2, uid=3D0, gid=3D0, rdev=3D0xffffffffffffffff, size=3D2, blksize=3D131072, blocks=3D1, atime=3D2020-10-30 11:07:13.721299 +0900, mtime=3D2020-10-30 11:07:13.72129= 9 +0900, ctime=3D2020-10-30 11:07:13.721299 +0900, birthtime=3D2020-10-30 11:07:13.7= 21299 +0900> ``` This will determine that there is a "path problem" and will fail to update = or install `jgem`. ``` % sudo jgem up --system --debug NOTE: Debugging mode prints all exceptions even when rescued Updating rubygems-update Exception `Resolv::DNS::Config::NXDomain' at /usr/local/share/jruby/lib/ruby/stdlib/resolv.rb:551 - _rubygems._tcp.api.rubygems.org Exception `Resolv::DNS::Config::NXDomain' at /usr/local/share/jruby/lib/ruby/stdlib/resolv.rb:551 - _rubygems._tcp.api.rubygems.org Exception `Resolv::DNS::Config::NXDomain' at /usr/local/share/jruby/lib/ruby/stdlib/resolv.rb:551 - _rubygems._tcp.api.rubygems.org.home Exception `Resolv::DNS::Config::NXDomain' at /usr/local/share/jruby/lib/ruby/stdlib/resolv.rb:551 - _rubygems._tcp.api.rubygems.org.home Exception `Resolv::ResolvError' at /usr/local/share/jruby/lib/ruby/stdlib/resolv.rb:496 - DNS result has no information for _rubygems._tcp.api.rubygems.org Exception `Gem::Package::PathError' at /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:441 - installing into parent path .bundle/config of /usr/local/share/jruby/lib/ruby/gems/shared/gems/rubygems-update-3.1.4 is n= ot allowed Exception `Gem::Package::PathError' at /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:441 - installing into parent path .bundle/config of /usr/local/share/jruby/lib/ruby/gems/shared/gems/rubygems-update-3.1.4 is n= ot allowed Exception `Gem::Package::PathError' at /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:441 - installing into parent path .bundle/config of /usr/local/share/jruby/lib/ruby/gems/shared/gems/rubygems-update-3.1.4 is n= ot allowed Exception `Gem::Package::PathError' at /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:441 - installing into parent path .bundle/config of /usr/local/share/jruby/lib/ruby/gems/shared/gems/rubygems-update-3.1.4 is n= ot allowed ERROR: While executing gem ... (Gem::Package::PathError) installing into parent path .bundle/config of /usr/local/share/jruby/lib/ruby/gems/shared/gems/rubygems-update-3.1.4 is n= ot allowed /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:441:in `block in mkdir_p_safe' org/jruby/RubyArray.java:1792:in `each' org/jruby/RubyEnumerable.java:1042:in `inject' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:435:in `mkdir_p_safe' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:381:in `block in extract_tar_gz' =20=20=20=20=20=20=20 /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package/tar_reader.rb:65:in `each' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:365:in `block in extract_tar_gz' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:474:in `block in open_tar_gz' org/jruby/ext/zlib/RubyGzipFile.java:97:in `wrap' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:471:in `open_tar_gz' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:364:in `extract_tar_gz' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:345:in `block in extract_files' =20=20=20=20=20=20=20 /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package/tar_reader.rb:65:in `each' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:342:in `block in extract_files' org/jruby/RubyIO.java:1154:in `open' =20=20=20=20=20=20=20 /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package/file_source.rb:30:in `with_read_io' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/package.rb:339:in `extract_files' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/installer.rb:794:in `extract_files' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/installer.rb:304:in `install' =20=20=20=20=20=20=20 /usr/local/share/jruby/lib/ruby/stdlib/rubygems/resolver/specification.rb:9= 7:in `install' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/request_set.rb:168:= in `block in install' org/jruby/RubyArray.java:1792:in `each' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/request_set.rb:156:= in `install' =20=20=20=20=20=20=20 /usr/local/share/jruby/lib/ruby/stdlib/rubygems/dependency_installer.rb:409= :in `install' =20=20=20=20=20=20=20 /usr/local/share/jruby/lib/ruby/stdlib/rubygems/commands/update_command.rb:= 213:in `update_gem' =20=20=20=20=20=20=20 /usr/local/share/jruby/lib/ruby/stdlib/rubygems/commands/update_command.rb:= 241:in `update_rubygems' =20=20=20=20=20=20=20 /usr/local/share/jruby/lib/ruby/stdlib/rubygems/commands/update_command.rb:= 90:in `execute' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/command.rb:313:in `invoke_with_build_args' =20=20=20=20=20=20=20 /usr/local/share/jruby/lib/ruby/stdlib/rubygems/command_manager.rb:171:in `process_args' =20=20=20=20=20=20=20 /usr/local/share/jruby/lib/ruby/stdlib/rubygems/command_manager.rb:141:in `= run' /usr/local/share/jruby/lib/ruby/stdlib/rubygems/gem_runner.rb:59:in `run' /usr/local/bin/jgem:21:in `<main>' Exception `Gem::SystemExitException' at /usr/local/share/jruby/lib/ruby/stdlib/rubygems/user_interaction.rb:394 - Exiting RubyGems with exit_code 1 ``` --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250731-21402>