Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887015 - dev-lang/ruby-3.1.3 fails test - [2022-12-18 10:52:51] ERROR CGIHandler: .../ruby31: error while loading shared libraries: libruby
Summary: dev-lang/ruby-3.1.3 fails test - [2022-12-18 10:52:51] ERROR CGIHandler: .../...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2022-12-18 15:16 UTC by Toralf Förster
Modified: 2023-12-03 09:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.44 KB, text/plain)
2022-12-18 15:16 UTC, Toralf Förster
Details
dev-lang:ruby-3.1.3:20221218-105028.log.bz2 (dev-lang:ruby-3.1.3:20221218-105028.log.bz2,23.06 KB, application/x-bzip)
2022-12-18 15:16 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,16.33 KB, text/plain)
2022-12-18 15:16 UTC, Toralf Förster
Details
environment (environment,95.25 KB, text/plain)
2022-12-18 15:16 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,33.80 KB, application/x-bzip)
2022-12-18 15:16 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,68.19 KB, application/x-bzip)
2022-12-18 15:16 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,46.62 KB, application/x-bzip)
2022-12-18 15:16 UTC, Toralf Förster
Details
emerge '=dev-lang/ruby-3.1.4-r3::gentoo' -qvp (em_qvp,3.44 KB, text/plain)
2023-11-16 10:55 UTC, bschnzl
Details
Portage Neighborhood (einfo,6.52 KB, text/plain)
2023-11-16 10:57 UTC, bschnzl
Details
Portage Tracks (build.log,432.66 KB, text/plain)
2023-11-16 10:59 UTC, bschnzl
Details
emerge '=dev-lang/ruby-3.1.4-r4::gentoo' -qvp et al (em-qvp,5.16 KB, text/plain)
2023-11-16 21:39 UTC, bschnzl
Details
Portage Neighborhood r4 (einfo,6.47 KB, text/plain)
2023-11-16 21:42 UTC, bschnzl
Details
Portage Tracks r4 (build.log,485.20 KB, text/plain)
2023-11-16 21:43 UTC, bschnzl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-12-18 15:16:36 UTC
too long lines were shrinked:

  "--ruby=./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems"

# Running tests:

#<Thread:0x00007faa52a7d150 /var/tmp/portage/dev-lang/ruby-3.1.3/work/ruby-3.1.3/tool/test/webrick/utils.rb:67 run> terminated with exception (report_on_exception is true):
/var/tmp/portage/dev-lang/ruby-3.1.3/work/ruby-3.1.3/tool/lib/test/unit/assertions.rb:109:in `assert': webrick log start: (Test::Unit::AssertionFailedError)
  [2022-12-18 10:52:51] ERROR CGIHandler: /var/tmp/portage/dev-lang/ruby-3.1.3/work/ruby-3.1.3/tool/test/webrick/webrick.cgi:\\n/var/tmp/portage/dev-lang/ruby-3.1.3/work/ruby-3.1.3/ruby31: error while loading shared libraries: libruby31.so.3.1: cannot open shared object file: No such file or directo
  [2022-12-18 10:52:51] ERROR CGIHandler: /var/tmp/portage/dev-lang/ruby-3.1.3/work/ruby-3.1.3/tool/test/webrick/webrick.cgi exit with 127
  [2022-12-18 10:52:51] ERROR Premature end of script headers: /var/tmp/portage/dev-lang/ruby-3.1.3/work/ruby-3.1.3/tool/test/webrick/webrick.cgi

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j4_test-20221218-040005

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
/usr/lib/llvm/15
15.0.6
Python 3.10.9
Available Ruby profiles:
  [1]   ruby27 *
Available Rust versions:
  (none found)
php cli (if any):

  HEAD of ::gentoo
commit 45422a44322e69771aab2392db29e38643a31a6d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Dec 18 03:32:08 2022 +0000

    2022-12-18 03:32:07 UTC

emerge -qpvO dev-lang/ruby
[ebuild  NS   ] dev-lang/ruby-3.1.3 [2.7.7] USE="berkdb gdbm rdoc socks5 ssl systemtap -debug -doc -examples -ipv6 -jemalloc -jit -static-libs -tk -xemacs (-rubytests%*)"
Comment 1 Toralf Förster gentoo-dev 2022-12-18 15:16:38 UTC
Created attachment 843433 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-12-18 15:16:39 UTC
Created attachment 843435 [details]
dev-lang:ruby-3.1.3:20221218-105028.log.bz2
Comment 3 Toralf Förster gentoo-dev 2022-12-18 15:16:40 UTC
Created attachment 843437 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-12-18 15:16:41 UTC
Created attachment 843439 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-12-18 15:16:42 UTC
Created attachment 843441 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-12-18 15:16:44 UTC
Created attachment 843443 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-12-18 15:16:45 UTC
Created attachment 843445 [details]
temp.tar.bz2
Comment 8 bschnzl 2023-11-16 10:55:44 UTC
Created attachment 874877 [details]
emerge '=dev-lang/ruby-3.1.4-r3::gentoo' -qvp
Comment 9 bschnzl 2023-11-16 10:57:16 UTC
Created attachment 874878 [details]
Portage Neighborhood
Comment 10 bschnzl 2023-11-16 10:59:24 UTC
Created attachment 874879 [details]
Portage Tracks

  1) Failure:
WEBrick::TestFileHandler#test_script_disclosure [/var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4/tool/test/webrick/utils.rb:74]:
exceptions on 2 threads:
webrick log start:
  [2023-11-15 23:20:09] ERROR CGIHandler: /var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4/tool/test/webrick/webrick.cgi:\n/var/tmp/po
rtage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4/ruby31: error while loading shared libraries: libruby31.so.3.1: cannot open shared object file:
No such file or directory\n
  [2023-11-15 23:20:09] ERROR CGIHandler: /var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4/tool/test/webrick/webrick.cgi exit with 127
  [2023-11-15 23:20:09] ERROR Premature end of script headers: /var/tmp/portage/dev-lang/ruby-3.1.4-r3/work/ruby-3.1.4/tool/test/webrick/webr
ick.cgi

webrick log end.
------------------------------------
Plus Three More...g end.
Comment 11 bschnzl 2023-11-16 21:39:46 UTC
Created attachment 874907 [details]
emerge '=dev-lang/ruby-3.1.4-r4::gentoo' -qvp et al

with 
dev-lang/ruby ~amd64
and
dev-ruby/irb ~amd64
in /etc/portage/package.accept_keywords/file

The first is (Suggested in IRC:gentoo:-ruby)
FEATURES="-test" did not solve circular dependenies
USE="-test" emerge =dev-lang/ruby-3.1.4-r4 --with-test-deps -v1op
then
emerge -pqv '=dev-lang/ruby-3.1.4-r4::gentoo'
Comment 12 bschnzl 2023-11-16 21:42:14 UTC
Created attachment 874908 [details]
Portage Neighborhood r4
Comment 13 bschnzl 2023-11-16 21:43:03 UTC
Created attachment 874909 [details]
Portage Tracks r4
Comment 14 Hans de Graaff gentoo-dev Security 2023-12-03 09:29:41 UTC
This was "fixed" in ruby 3.1.4-r4 by avoiding these specific tests. (We can't seem to pass LD_LIBRARY_PATH to these tests in an obvious way).