From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,URIBL_GREY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 445461F953 for ; Mon, 27 Dec 2021 03:52:33 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 9A733120BF8; Mon, 27 Dec 2021 12:52:28 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 086D2120BF8 for ; Mon, 27 Dec 2021 12:52:25 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sendgrid.me; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to; s=smtpapi; bh=Yei8AvcCpyBWKh19QLjDFDrtbBnei4jTFX2ABnIbQrg=; b=QZvMFUfnvLmq77ZCJPEsySTcSkKsJeBEPiu4CGqdDBGJfoVEkJjgDCQD19cIpyjnbxX3 HAOQVx62PeMdHB5C/jvCwZfANWN8SiZPCD4GB3EwnXCtflGpaqGyfoAiExT8Nb6E5o4xRt 6kGi2FbEZL1/EnhhtRYOU2YR7FIZ1S7wQ= Received: by filterdrecv-7bf5c69d5-m2pn4 with SMTP id filterdrecv-7bf5c69d5-m2pn4-1-61C93872-15 2021-12-27 03:52:18.834898917 +0000 UTC m=+10042276.490533603 Received: from herokuapp.com (unknown) by ismtpd0145p1iad2.sendgrid.net (SG) with ESMTP id GpjQDfq5TKCj-lid1yxuBw for ; Mon, 27 Dec 2021 03:52:18.711 +0000 (UTC) Date: Mon, 27 Dec 2021 03:52:18 +0000 (UTC) From: "os (Shigeki OHARA)" Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 18437 X-Redmine-Issue-Author: os X-Redmine-Sender: os X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 83094 X-SG-EID: =?us-ascii?Q?xYgRE8kTR26RsOj3s30jGTJsoWy8pmTo9OM1zozq6T7POIMq6pOQHmPB9OqlMf?= =?us-ascii?Q?5NQm2jSgWnLbD7ZsTrXMZcEAD=2FWRnxXl6yJunBb?= =?us-ascii?Q?1Zsd1FsMX2IJeGBsZGqKdcqPdm7O5s3BKxy7cZ4?= =?us-ascii?Q?qCDtc0kjtgCS7=2FzNzfGkmVjmzGQ4NGcv137amRW?= =?us-ascii?Q?e+gvVSt7+LCJtc7lcFmNCck5XUSFNZVMbTi6tng?= =?us-ascii?Q?hXoGEArftLd4Rc8Rw=2FtUt8oa8Q23WOOCnr2Emx?= To: ruby-dev@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-dev X-Mail-Count: 51130 Subject: [ruby-dev:51130] [Ruby master Bug#18437] 3.1.0 install stucks on FreeBSD & NFS X-BeenThere: ruby-dev@ruby-lang.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Ruby developers \(Japanese\)" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Reply-To: "Ruby developers \(Japanese\)" Errors-To: ruby-dev-bounces@ruby-lang.org Sender: "ruby-dev" Issue #18437 has been reported by os (Shigeki OHARA).=0D =0D ----------------------------------------=0D Bug #18437: 3.1.0 install stucks on FreeBSD & NFS=0D https://bugs.ruby-lang.org/issues/18437=0D =0D * Author: os (Shigeki OHARA)=0D * Status: Open=0D * Priority: Normal=0D * ruby -v: ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x86_64-freebsd13.= 0]=0D * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN=0D ----------------------------------------=0D ## =E6=A6=82=E8=A6=81=0D =0D FreeBSD =E3=83=9E=E3=82=B7=E3=83=B3=E3=81=A7 NFS =E4=B8=8A=E3=81=AE=E3=83= =9B=E3=83=BC=E3=83=A0=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF=E3=83=88=E3=83=AA= =E3=83=BC=E3=81=B8 Ruby 3.1.0 =E3=82=92 rbenv install 3.1.0 =E3=81=A7=E3=82= =A4=E3=83=B3=E3=82=B9=E3=83=88=E3=83=BC=E3=83=AB=E3=81=97=E3=82=88=E3=81=86= =E3=81=A8=E3=81=99=E3=82=8B=E3=81=A8=E3=80=81=0D gem =E3=81=AE=E3=82=A4=E3=83=B3=E3=82=B9=E3=83=88=E3=83=BC=E3=83=AB=E3=81= =A7=E5=87=A6=E7=90=86=E3=81=8C=E6=AD=A2=E3=81=BE=E3=81=A3=E3=81=A6=E3=81=97= =E3=81=BE=E3=81=84=E3=81=BE=E3=81=99=E3=80=82=0D =0D ## =E5=86=8D=E7=8F=BE=E6=89=8B=E9=A0=86=0D =0D ### =E7=92=B0=E5=A2=83=0D =0D * OS (NFS =E3=82=AF=E3=83=A9=E3=82=A4=E3=82=A2=E3=83=B3=E3=83=88): FreeBSD = 13.0-RELEASE-p5=0D * NFS =E3=82=B5=E3=83=BC=E3=83=90=E3=83=BC: CentOS 7.9=0D * NFSv4=0D * rbenv 1.2.0-6-g304cb7b, ruby-build 20211225-2-g927aec4=0D =0D ### =E6=89=8B=E9=A0=86=0D =0D ```=0D % rbenv install 3.1.0=0D ```=0D =0D ### =E7=B5=90=E6=9E=9C=0D =0D 10 =E6=95=B0=E5=88=86=E5=BE=85=E3=81=A3=E3=81=A6=E3=82=82=E3=82=A4=E3=83=B3= =E3=82=B9=E3=83=88=E3=83=BC=E3=83=AB=E3=81=AF=E7=B5=82=E4=BA=86=E3=81=9B=E3= =81=9A=E3=80=82=0D =E3=81=93=E3=81=AE=E3=81=A8=E3=81=8D=E3=80=81 rbenv install =E3=81=AE=E3=83= =AD=E3=82=B0=E3=81=AF=E4=B8=8B=E8=A8=98=E7=AE=87=E6=89=80=E3=81=A7=E6=AD=A2= =E3=81=BE=E3=81=A3=E3=81=A6=E3=81=84=E3=81=BE=E3=81=99=E3=80=82=0D =0D ```=0D (snip...)=0D =0D installing default gems from lib: /home/XXXXXXXX/.rbenv-amd64-freebsd13/v= ersions/3.1.0/lib/ruby/gems/3.1.0=0D abbrev 0.1.0=0D ```=0D =0D =E3=81=9D=E3=81=AE=E5=BE=8C=E3=80=81 C-c =E3=81=99=E3=82=8B=E3=81=A8=E3=80= =81=E4=B8=8B=E8=A8=98=E3=83=88=E3=83=AC=E3=83=BC=E3=82=B9=E3=81=A7=E7=B5=82= =E4=BA=86=E3=81=97=E3=81=BE=E3=81=99=E3=80=82=0D =0D ```=0D /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rubygems.rb:793:= in `flock': Interrupt=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems.rb:793:in `block in open_with_flock'=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems.rb:790:in `open'=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems.rb:790:in `open_with_flock'=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems/stub_specification.rb:113:in `data'=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems/stub_specification.rb:203:in `valid?'=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems/specification.rb:778:in `select'=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems/specification.rb:778:in `gemspec_stubs_in'=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems/specification.rb:824:in `default_stubs'=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems/specification.rb:850:in `stubs_for_pattern'=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems/specification.rb:811:in `stubs'=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems/specification.rb:1085:in `latest_specs'=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems/specification.rb:1092:in `latest_spec_for'=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems/installer.rb:514:in `generate_plugins'=0D from /tmp/ruby-build.20211227102425.80508.kNmLXp/ruby-3.1.0/lib/rub= ygems/installer.rb:324:in `install'=0D from ./tool/rbinstall.rb:899:in `block in install'=0D from ./tool/rbinstall.rb:713:in `no_write'=0D from ./tool/rbinstall.rb:899:in `install'=0D from ./tool/rbinstall.rb:1002:in `block in install_default_gem'=0D from ./tool/rbinstall.rb:989:in `each'=0D from ./tool/rbinstall.rb:989:in `install_default_gem'=0D from ./tool/rbinstall.rb:927:in `block in
'=0D from ./tool/rbinstall.rb:1127:in `block in
'=0D from ./tool/rbinstall.rb:1124:in `each'=0D from ./tool/rbinstall.rb:1124:in `
'=0D gmake: *** [uncommon.mk:383: do-install-all] =E5=89=B2=E3=82=8A=E8=BE=BC=E3= =81=BF=0D ```=0D =0D =E4=B8=8B=E8=A8=98=E3=82=B5=E3=82=A4=E3=83=88=E3=81=AB=E3=82=88=E3=82=8B=E3= =81=A8=E3=80=81 NFS =E4=B8=8A=E3=81=AE=E6=8E=92=E4=BB=96=E7=9A=84=E3=83=AD= =E3=83=83=E3=82=AF=E3=81=AF=E6=9B=B8=E3=81=8D=E8=BE=BC=E3=81=BF=E3=81=A7=E3= =81=8D=E3=82=8B=E3=83=A2=E3=83=BC=E3=83=89=E3=81=A7=E3=82=AA=E3=83=BC=E3=83= =97=E3=83=B3=E3=81=99=E3=82=8B=E5=BF=85=E8=A6=81=E3=81=8C=E3=81=82=E3=82=8B= =E3=81=A8=E3=81=AE=E3=81=93=E3=81=A8=E3=81=AA=E3=81=AE=E3=81=A7=E3=80=81=0D =0D * https://blog.tmtms.net/entry/2016/03/11/flock=0D =0D =E4=B8=8B=E8=A8=98=E3=81=AE=E3=82=88=E3=81=86=E3=81=AA=E3=83=91=E3=83=83=E3= =83=81=E3=82=92=E5=BD=93=E3=81=A6=E3=81=A6=E8=A9=A6=E3=81=97=E3=81=9F=E3=81= =A8=E3=81=93=E3=82=8D=E3=80=81=0D rbenv install 3.1.0 =E3=81=8C=E5=AE=8C=E9=81=82=E3=81=99=E3=82=8B=E3=82=88= =E3=81=86=E3=81=AB=E3=81=AA=E3=82=8A=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82=0D =0D ```=0D diff -ur ruby-3.1.0.orig/lib/rubygems/specification.rb ruby-3.1.0/lib/rubyg= ems/specification.rb=0D --- ruby-3.1.0.orig/lib/rubygems/specification.rb 2021-12-25 21:23:14= .000000000 +0900=0D +++ ruby-3.1.0/lib/rubygems/specification.rb 2021-12-27 12:21:31.7566228= 31 +0900=0D @@ -1116,7 +1116,7 @@=0D file =3D file.dup.tap(&Gem::UNTAINT)=0D return unless File.file?(file)=0D =0D - code =3D Gem.open_with_flock(file, 'r:UTF-8:-', &:read)=0D + code =3D Gem.open_with_flock(file, 'r+:UTF-8:-', &:read)=0D =0D code.tap(&Gem::UNTAINT)=0D =0D diff -ur ruby-3.1.0.orig/lib/rubygems/stub_specification.rb ruby-3.1.0/lib/= rubygems/stub_specification.rb=0D --- ruby-3.1.0.orig/lib/rubygems/stub_specification.rb 2021-12-25 21:23:14= .000000000 +0900=0D +++ ruby-3.1.0/lib/rubygems/stub_specification.rb 2021-12-27 12:21:05= .161104183 +0900=0D @@ -9,7 +9,7 @@=0D PREFIX =3D "# stub: ".freeze=0D =0D # :nodoc:=0D - OPEN_MODE =3D 'r:UTF-8:-'.freeze=0D + OPEN_MODE =3D 'r+:UTF-8:-'.freeze=0D =0D class StubLine # :nodoc: all=0D attr_reader :name, :version, :platform, :require_paths, :extensions,=0D ```=0D =0D =E5=85=88=E3=81=AE=E3=82=B5=E3=82=A4=E3=83=88=E3=81=AB=E3=82=88=E3=82=8B=E3= =81=A8=E3=80=81=E8=AA=AD=E3=81=BF=E8=BE=BC=E3=81=BF=E5=B0=82=E7=94=A8=E3=81= =A7=E6=8E=92=E4=BB=96=E7=9A=84=E3=83=AD=E3=83=83=E3=82=AF=E3=82=92=E6=8E=9B= =E3=81=91=E3=82=8B=E3=81=A8=E3=80=81=0D Linux =E3=81=A7=E3=81=AF EBADF =E3=81=AB=E3=81=AA=E3=82=8B=E3=82=88=E3=81= =86=E3=81=AA=E3=81=AE=E3=81=A7=E3=81=99=E3=81=8C=E3=80=81=0D FreeBSD =E3=81=A0=E3=81=A8=E3=83=96=E3=83=AD=E3=83=83=E3=82=AF=E3=81=99=E3= =82=8B=E3=82=88=E3=81=86=E3=81=A7=E3=81=99=E3=80=82=0D =0D ```=0D % cat locktest.rb=0D #!/usr/bin/env ruby=0D require "timeout"=0D filepath =3D ARGV.shift=0D File.open(filepath, "w").close # just touch=0D File.open(filepath, "r") do |f|=0D Timeout.timeout(3) do=0D f.flock(File::LOCK_EX)=0D end=0D end=0D % ruby locktest.rb /tmp/locktest.lock=0D % ruby locktest.rb ~/locktest.lock=0D Traceback (most recent call last):=0D 5: from locktest.rb:5:in `
'=0D 4: from locktest.rb:5:in `open'=0D 3: from locktest.rb:6:in `block in
'=0D 2: from /usr/local/lib/ruby/2.7/timeout.rb:110:in `timeout'=0D 1: from locktest.rb:7:in `block (2 levels) in
'=0D locktest.rb:7:in `flock': execution expired (Timeout::Error)=0D %=20=0D ```=0D =0D =0D =0D =0D --=20=0D https://bugs.ruby-lang.org/=0D