Error: [40;33;1mtest_post_empty(TestHTTPClient)[0m: HTTPClient::ReceiveTimeoutError: execution expired /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:375:in `gets' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:375:in `gets' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:805:in `block in parse_header' /usr/lib64/ruby/2.6.0/timeout.rb:103:in `timeout' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:801:in `parse_header' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:784:in `read_header' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:561:in `get_header' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1299:in `do_get_header' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1245:in `do_get_block' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1019:in `block in do_request' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1133:in `protect_keep_alive_disconnected' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1014:in `do_request' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:856:in `request' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:765:in `post' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/test/test_httpclient.rb:872:in `test_post_empty' 869: def test_post_empty 870: @client.debug_dev = str = '' 871: # nil body means 'no content' that is allowed but WEBrick cannot handle it. [40;33;1m => 872: @client.post(serverurl + 'servlet', :body => nil)[0m 873: # request does not have 'Content-Type' 874: assert_equal(1, str.scan(/content-type/i).size) 875: end =============================================================================== [33mE[0m =============================================================================== Error: [40;33;1mtest_post_follow_redirect(TestHTTPClient)[0m: HTTPClient::ReceiveTimeoutError: execution expired /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:805:in `gets' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:805:in `block in parse_header' /usr/lib64/ruby/2.6.0/timeout.rb:103:in `timeout' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:801:in `parse_header' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:784:in `read_header' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:561:in `get_header' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1299:in `do_get_header' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1245:in `do_get_block' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1019:in `block in do_request' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1133:in `protect_keep_alive_disconnected' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1014:in `do_request' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1104:in `follow_redirect' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:854:in `request' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:765:in `post' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/test/test_httpclient.rb:893:in `test_post_follow_redirect' 890: end 891: 892: def test_post_follow_redirect [40;33;1m => 893: assert_equal('hello', @client.post(serverurl + 'hello', :follow_redirect => true).body)[0m 894: assert_equal('hello', @client.post(serverurl + 'redirect1', :follow_redirect => true).body) 895: assert_equal('hello', @client.post(serverurl + 'redirect2', :follow_redirect => true).body) 896: end =============================================================================== [32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[33mE[0m =============================================================================== Error: [40;33;1mtest_redirect_see_other(TestHTTPClient)[0m: HTTPClient::ReceiveTimeoutError: execution expired /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:805:in `gets' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:805:in `block in parse_header' /usr/lib64/ruby/2.6.0/timeout.rb:103:in `timeout' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:801:in `parse_header' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:784:in `read_header' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient/session.rb:561:in `get_header' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1299:in `do_get_header' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1245:in `do_get_block' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1019:in `block in do_request' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1133:in `protect_keep_alive_disconnected' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1014:in `do_request' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:1104:in `follow_redirect' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/lib/httpclient.rb:697:in `post_content' /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/test/test_httpclient.rb:507:in `test_redirect_see_other' 504: end 505: 506: def test_redirect_see_other [40;33;1m => 507: assert_equal('hello', @client.post_content(serverurl + 'redirect_see_other'))[0m 508: end 509: 510: def test_redirect_relative =============================================================================== [32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[32;1m.[0m[34mO[0m =============================================================================== Omission: [44;37;1mTODO: it does not pass with Java 7 or old openssl [0m [test_use_higher_TLS(TestSSL)] /var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3/test/test_ssl.rb:267:in `test_use_higher_TLS' =============================================================================== [32;1m.[0m[32;1m.[0m Finished in 387.106826859 seconds. [33m-------------------------------------------------------------------------------[0m 205 tests, 726 assertions, 0 failures, 6 errors, 0 pendings, 1 omissions, 0 notifications 97.0588% passed [33m-------------------------------------------------------------------------------[0m 0.53 tests/s, 1.88 assertions/s * ERROR: dev-ruby/httpclient-2.8.3-r2::gentoo failed (test phase): * (no error message) * * Call stack: * ebuild.sh, line 127: Called src_test * environment, line 2250: Called ruby-ng_src_test * environment, line 1875: Called _ruby_each_implementation 'each_ruby_test' * environment, line 547: Called _ruby_invoke_environment 'ruby26' 'each_ruby_test' * environment, line 676: Called each_ruby_test * environment, line 918: Called die * The specific snippet of code: * ${RUBY} -Ilib:test:. -e 'gem "test-unit"; Dir["test/test_*.rb"].each{|f| require f}' || die * * If you need support, post the output of `emerge --info '=dev-ruby/httpclient-2.8.3-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-ruby/httpclient-2.8.3-r2::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/temp/environment'. * Working directory: '/var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3' * S: '/var/tmp/portage/dev-ruby/httpclient-2.8.3-r2/work/ruby26/httpclient-2.8.3'
Portage 3.0.30 (python 3.9.12-final-0, default/linux/arm64/17.0/systemd, gcc-11.3.0, glibc-2.35-r1, 5.15.32-gentoo-dist aarch64) ================================================================= System uname: Linux-5.15.32-gentoo-dist-aarch64-with-glibc2.35 KiB Mem: 32813268 total, 8869476 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sun, 15 May 2022 15:17:59 +0000 sh bash 5.1_p16 ld GNU ld (Gentoo 2.38 p3) 2.38 app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p16::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.1::gentoo dev-lang/python: 2.7.18_p15::gentoo, 3.9.12::gentoo, 3.10.4::gentoo dev-lang/rust: 1.59.0::gentoo dev-util/cmake: 3.23.0::gentoo dev-util/meson: 0.61.4-r2::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/sandbox: 2.29::gentoo sys-apps/systemd: 250.4-r1::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.38-r1::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 13.0.1::gentoo, 14.0.0-r1::gentoo sys-devel/gcc: 11.3.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 13.0.1::gentoo sys-devel/llvm: 13.0.1::gentoo, 14.0.0::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.17::gentoo (virtual/os-headers) sys-libs/glibc: 2.35-r1::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="arm64 ~arm64" ACCEPT_LICENSE="* @FREE" CBUILD="aarch64-unknown-linux-gnu" CFLAGS="-O2 -pipe" CHOST="aarch64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--jobs=8" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X acl alsa arm64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd udev unicode xattr zlib" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTF
This is a bug in dev-ruby/webrick-1.7.0. See https://github.com/ruby/webrick/issues/67 and https://github.com/nahi/httpclient/issues/448. If I apply the patch at https://github.com/ruby/webrick/commit/f87aec09fce09c142d2aa5108987338114327e4c locally (which Debian's done as well), then they no longer hang.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fff456a0e8335f6445e3df911ddd8875e4c3ca60 commit fff456a0e8335f6445e3df911ddd8875e4c3ca60 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-12-24 06:30:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-12-24 06:31:52 +0000 dev-ruby/httpclient: enable ruby31 Tests pass with all Rubys *but* they hang even before this commit with even Ruby 2.7 unless dev-ruby/webrick has a patch applied. Bug: https://github.com/ruby/webrick/issues/67 Bug: https://github.com/nahi/httpclient/issues/448 Bug: https://bugs.gentoo.org/844892 Signed-off-by: Sam James <sam@gentoo.org> dev-ruby/httpclient/httpclient-2.8.3-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
(In reply to Sam James from comment #2) > This is a bug in dev-ruby/webrick-1.7.0. > > See https://github.com/ruby/webrick/issues/67 and > https://github.com/nahi/httpclient/issues/448. > > If I apply the patch at > https://github.com/ruby/webrick/commit/ > f87aec09fce09c142d2aa5108987338114327e4c locally (which Debian's done as > well), then they no longer hang. I haven't applied it myself in tree to webrick because it's not in a release and it feels like overstepping to decide myself, but I think we probably should.
webrick-1.8.0 and webrick-1.8.1 have been released in the meantime.