Public bug reported:

A current (failing) build on focal and bionic currently runs a suite of tests 
and hangs indefinitely
at the send_invalid_number test, but in previous builds of jruby this does not 
occur because the version of java used causes an exception that kills the test 
suite. 


 This is the full log from a new build:

https://launchpadlibrarian.net/745700157/buildlog_ubuntu-focal-
amd64.jruby_9.1.17.0-3ubuntu0.1_BUILDING.txt.gz

And this is where the hang occurs:

  [exec] /<<PKGBUILDDIR>>/test/mri/ruby/test_marshal.rb:272: warning: already 
initialized constant Résumé
     [exec] WARNING: An illegal reflective access operation has occurred
     [exec] WARNING: Illegal reflective access by org.jruby.ext.zlib.RubyZlib 
to field java.util.zip.CRC32.crc
     [exec] WARNING: Please consider reporting this to the maintainers of 
org.jruby.ext.zlib.RubyZlib
     [exec] WARNING: Use --illegal-access=warn to enable warnings of further 
illegal reflective access operations
     [exec] WARNING: All illegal access operations will be denied in a future 
release
     [exec] /<<PKGBUILDDIR>>/test/mri/psych/test_alias_and_anchor.rb: no such 
file to load -- psych
     [exec] Run options: -v --color=never --tty=no --excludes=test/mri/excludes 
-q --
     [exec] 
     [exec] # Running tests:
...
     [exec] IMAPTest#test_idle_done_not_during_idle = 0.00 s = .
     [exec] IMAPTest#test_idle_timeout = 0.21 s = .
     [exec] IMAPTest#test_imaps_unknown_ca = 0.16 s = .
     [exec] IMAPTest#test_imaps_verify_none = 0.09 s = .
     [exec] IMAPTest#test_imaps_with_ca_file = 0.05 s = F
     [exec] IMAPTest#test_send_invalid_number = 0.01 s = .
E: Build killed with signal TERM after 150 minutes of inactivity

This differs from previous builds, for example this is a log from a
build on bionic:

https://launchpadlibrarian.net/412856810/buildlog_ubuntu-bionic-
amd64.jruby_9.1.17.0-1~18.04_BUILDING.txt.gz

and the specific test suite in question fails because of a known issue.
The same portion of the log in this older build goes:

 [exec] /<<PKGBUILDDIR>>/test/mri/ruby/test_marshal.rb:272: warning: already 
initialized constant Résumé
     [exec] WARNING: An illegal reflective access operation has occurred
     [exec] WARNING: Illegal reflective access by 
jnr.posix.JavaLibCHelper$ReflectiveAccess to method sun.nio.ch.SelChImpl.getFD()
     [exec] WARNING: Please consider reporting this to the maintainers of 
jnr.posix.JavaLibCHelper$ReflectiveAccess
     [exec] WARNING: Use --illegal-access=warn to enable warnings of further 
illegal reflective access operations
     [exec] WARNING: All illegal access operations will be denied in a future 
release
     [exec] org/jruby/RubyProcess.java:1566:in `spawn': Bad file descriptor - 
/<<PKGBUILDDIR>>/bin/jruby (Errno::EBADF)
     [exec]     from org/jruby/RubyKernel.java:1535:in `spawn'
     [exec]     from /<<PKGBUILDDIR>>/test/mri/lib/envutil.rb:60:in 
`invoke_ruby'
     [exec]     from /<<PKGBUILDDIR>>/test/mri/lib/envutil.rb:243:in 
`gc_stress_to_class?'
     [exec]     from 
/<<PKGBUILDDIR>>/test/mri/bigdecimal/test_bigdecimal.rb:1573:in 
`<class:TestBigDecimal>'
     [exec]     from 
/<<PKGBUILDDIR>>/test/mri/bigdecimal/test_bigdecimal.rb:7:in `<main>'
     [exec]     from org/jruby/RubyKernel.java:956:in `require'
     [exec]     from 
/<<PKGBUILDDIR>>/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in 
`(root)'
     [exec]     from 
/<<PKGBUILDDIR>>/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55:in 
`block in require'
     [exec]     from org/jruby/RubyArray.java:1735:in `each'
     [exec]     from /<<PKGBUILDDIR>>/test/mri/lib/test/unit.rb:833:in 
`non_options'
     [exec]     from /<<PKGBUILDDIR>>/test/mri/lib/test/unit.rb:827:in 
`non_options'
     [exec]     from /<<PKGBUILDDIR>>/test/mri/lib/test/unit.rb:64:in 
`process_args'
     [exec]     from /<<PKGBUILDDIR>>/test/mri/lib/test/unit.rb:130:in 
`process_args'
     [exec]     from /<<PKGBUILDDIR>>/test/mri/lib/test/unit.rb:972:in 
`process_args'
     [exec]     from /<<PKGBUILDDIR>>/test/mri/lib/test/unit.rb:977:in `run'
     [exec]     from /<<PKGBUILDDIR>>/test/mri/lib/test/unit.rb:984:in `<main>'
     [exec] rake aborted!
     [exec] Command failed with status (1): [/<<PKGBUILDDIR>>/bin/jru...]
     [exec] /<<PKGBUILDDIR>>/rakelib/test.rake:96:in `block in (root)'
     [exec] Tasks: TOP => test:mri:fullint
     [exec] (See full trace by running task with --trace)

instead of ever running any tests. The exception thrown, "Bad file
descriptor", pertains to this issue:

https://github.com/jruby/jruby/issues/5249

the last comment on the github thread goes:

'''
In order to support all Ruby features we sometimes have to open up core Java 
objects, for example to get a real file descriptor. When running on Java 9+, we 
are not able to open those objects unless we pass specific flags to Java or 
work around the limitations in other ways. Those sorts of changes are in more 
recent JRuby versions.

I would not recommend using Java 9+ with anything earlier than JRuby 9.2.1, and 
of course we always recommend running the latest JRuby release for best 
compatibility and security.
'''

** Affects: jruby (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2078377

Title:
  jruby does not successfully rebuild on bionic and focal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/jruby/+bug/2078377/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to