jruby FTBFS when running mspec tests

Bug #1491526 reported by Tiago Stürmer Daitx
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jruby (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

jruby 1.7.21-2ubuntu2 FTBFS while running various mspec tests, the usual maven build and tests run fine.

We want mspec tests to run and succed (instead if simply disabling it) since it "provides the most accurate indication of the stability of your local JRuby source" as stated by https://github.com/jruby/jruby/blob/master/BUILDING.md#just-like-ci

Log error from AMD64 failed build at https://launchpad.net/ubuntu/+source/jruby/1.7.21-2ubuntu2

./bin/jruby spec/mspec/bin/mspec ci
jruby 1.7.21 (1.9.3p551) 2015-08-31 fffffff on OpenJDK 64-Bit Server VM 1.8.0_66-internal-b01 +jit [linux-amd64]
Errno::ENOENT: No such file or directory - echo
  _exec_internal at org/jruby/RubyKernel.java:1752
            exec at file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel19/kernel.rb:28
          (root) at -e:1
Errno::ENOENT: No such file or directory - echo
  _exec_internal at org/jruby/RubyKernel.java:1752
            exec at file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel19/kernel.rb:28
          (root) at -e:1
Errno::ENOENT: No such file or directory - echo
  _exec_internal at org/jruby/RubyKernel.java:1752
            exec at file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel19/kernel.rb:28
          (root) at -e:1
Errno::ENOENT: No such file or directory - echo
  _exec_internal at org/jruby/RubyKernel.java:1752
            exec at file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel19/kernel.rb:28
          (root) at -e:1
Errno::ENOENT: No such file or directory - echo
  _exec_internal at org/jruby/RubyKernel.java:1752
            exec at file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel19/kernel.rb:28
          (root) at -e:1
Errno::ENOENT: No such file or directory - echo
  _exec_internal at org/jruby/RubyKernel.java:1752
            exec at file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel19/kernel.rb:28
          (root) at -e:1
NoMethodError: undefined method `daemon' for Process:Module
  daemon_at_exit at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:55
             run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
          (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
NoMethodError: undefined method `daemon' for Process:Module
  keep_stdio_open_false_stdout at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:64
                           run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
                        (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
NoMethodError: undefined method `daemon' for Process:Module
  keep_stdio_open_false_stderr at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:69
                           run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
                        (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
NoMethodError: undefined method `daemon' for Process:Module
  keep_stdio_open_false_stdout at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:64
                           run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
                        (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
NoMethodError: undefined method `daemon' for Process:Module
  keep_stdio_open_false_stderr at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:69
                           run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
                        (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
NoMethodError: undefined method `daemon' for Process:Module
  keep_stdio_open_false_stdout at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:64
                           run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
                        (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
NoMethodError: undefined method `daemon' for Process:Module
  keep_stdio_open_false_stderr at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:69
                           run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
                        (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
Errno::ENOENT: No such file or directory - echo
  _exec_internal at org/jruby/RubyKernel.java:1752
            exec at file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel19/kernel.rb:28
          (root) at -e:1
Errno::ENOENT: No such file or directory - echo
  _exec_internal at org/jruby/RubyKernel.java:1752
            exec at file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel19/kernel.rb:28
          (root) at -e:1
Errno::ENOENT: No such file or directory - echo
  _exec_internal at org/jruby/RubyKernel.java:1752
            exec at file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel19/kernel.rb:28
          (root) at -e:1
The signal EXIT is in use by the JVM and will not work correctly on this platform
...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E..F........FF...........................E..................F.................................................................................................................................................................................................................................................................................................................E....................F........................................................................F..................................................................................................................................................................................................................................................................................F..............E....................................................E...................................................................................................................................................................................................................................................................................................................................................EE.....F.....................F...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E...EE....EE.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

1)
An exception occurred during: File.open ERROR
Errno::ENOENT: No such file or directory - which
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:28:in ``'
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:55:in ``'
/«PKGBUILDDIR»/spec/ruby/core/file/open_spec.rb:526:in `(root)'
/«PKGBUILDDIR»/spec/ruby/core/file/open_spec.rb:525:in `(root)'
/«PKGBUILDDIR»/spec/ruby/core/file/open_spec.rb:524:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
/«PKGBUILDDIR»/spec/ruby/core/file/open_spec.rb:5:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

2)
File.pipe? returns true if the file is a pipe FAILED
Expected false
 to equal true

/«PKGBUILDDIR»/spec/ruby/core/file/pipe_spec.rb:27:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/file/pipe_spec.rb:8:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

3)
File.setgid? returns true when the gid bit is set FAILED
Expected false
 to equal true

/«PKGBUILDDIR»/spec/ruby/core/file/setgid_spec.rb:31:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/file/setgid_spec.rb:8:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

4)
File.setuid? returns true when the gid bit is set FAILED
Expected false
 to equal true

/«PKGBUILDDIR»/spec/ruby/core/file/setuid_spec.rb:31:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/file/setuid_spec.rb:8:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

5)
File::Stat#pipe? returns true if the file is a pipe ERROR
Errno::ENOENT: No such file or directory - /«PKGBUILDDIR»/rubyspec_temp/283-i_am_a_pipe
org/jruby/RubyFile.java:894:in `stat'
/«PKGBUILDDIR»/spec/ruby/core/file/stat/pipe_spec.rb:25:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/file/stat/pipe_spec.rb:9:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

6)
File.sticky? returns true if the file has sticky bit set FAILED
Expected false
 to equal true

/«PKGBUILDDIR»/spec/ruby/core/file/sticky_spec.rb:29:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/file/sticky_spec.rb:9:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

7)
Kernel#` returns the standard output of the executed sub-process ERROR
Errno::ENOENT: No such file or directory - echo
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:28:in ``'
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:55:in ``'
/«PKGBUILDDIR»/spec/ruby/core/kernel/backtick_spec.rb:11:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/backtick_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

8)
Kernel#` tries to convert the given argument to String using #to_str ERROR
Errno::ENOENT: No such file or directory - echo
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:28:in ``'
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:55:in ``'
/«PKGBUILDDIR»/spec/ruby/core/kernel/backtick_spec.rb:16:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/backtick_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

9)
Kernel#exec runs the specified command, replacing current process FAILED
Expected ""
 to equal "hello\n"

/«PKGBUILDDIR»/spec/ruby/shared/process/exec.rb:32:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/exec_spec.rb:5:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

10)
Kernel#exec with a single argument creates an argument array with shell parsing semantics for whitespace FAILED
Expected ""
 to equal "a b c d\n"

/«PKGBUILDDIR»/spec/ruby/shared/process/exec.rb:50:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/exec_spec.rb:5:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

11)
Kernel#exec with multiple arguments does not subject the arguments to shell expansion FAILED
Expected ""
 to equal "*\n"

/«PKGBUILDDIR»/spec/ruby/shared/process/exec.rb:56:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/exec_spec.rb:5:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

12)
Kernel.exec runs the specified command, replacing current process FAILED
Expected ""
 to equal "hello\n"

/«PKGBUILDDIR»/spec/ruby/shared/process/exec.rb:32:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/exec_spec.rb:13:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

13)
Kernel.exec with a single argument creates an argument array with shell parsing semantics for whitespace FAILED
Expected ""
 to equal "a b c d\n"

/«PKGBUILDDIR»/spec/ruby/shared/process/exec.rb:50:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/exec_spec.rb:13:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

14)
Kernel.exec with multiple arguments does not subject the arguments to shell expansion FAILED
Expected ""
 to equal "*\n"

/«PKGBUILDDIR»/spec/ruby/shared/process/exec.rb:56:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/exec_spec.rb:13:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

15)
Kernel#system executes the specified command in a subprocess FAILED
Expected (STDOUT): "a\n"
          but got: ""
Backtrace
/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:6:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:69:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

16)
Kernel#system returns true when the command exits with a zero exit status FAILED
Expected nil
 to equal true

/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:10:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:69:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

17)
Kernel#system returns false when the command exits with a non-zero exit status FAILED
Expected nil
 to equal false

/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:14:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:69:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

18)
Kernel#system does not expand shell variables when given multiples arguments FAILED
Expected (STDOUT): "$TEST_SH_EXPANSION\n"
          but got: ""
Backtrace
/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:56:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:69:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

19)
Kernel.system executes the specified command in a subprocess FAILED
Expected (STDOUT): "a\n"
          but got: ""
Backtrace
/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:6:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:77:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

20)
Kernel.system returns true when the command exits with a zero exit status FAILED
Expected nil
 to equal true

/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:10:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:77:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

21)
Kernel.system returns false when the command exits with a non-zero exit status FAILED
Expected nil
 to equal false

/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:14:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:77:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

22)
Kernel.system does not expand shell variables when given multiples arguments FAILED
Expected (STDOUT): "$TEST_SH_EXPANSION\n"
          but got: ""
Backtrace
/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:56:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/kernel/system_spec.rb:77:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

23)
Process.exec runs the specified command, replacing current process FAILED
Expected ""
 to equal "hello\n"

/«PKGBUILDDIR»/spec/ruby/shared/process/exec.rb:32:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/process/exec_spec.rb:5:in `(root)'
/«PKGBUILDDIR»/spec/ruby/core/process/exec_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

24)
Process.exec with a single argument creates an argument array with shell parsing semantics for whitespace FAILED
Expected ""
 to equal "a b c d\n"

/«PKGBUILDDIR»/spec/ruby/shared/process/exec.rb:50:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/process/exec_spec.rb:5:in `(root)'
/«PKGBUILDDIR»/spec/ruby/core/process/exec_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

25)
Process.exec with multiple arguments does not subject the arguments to shell expansion FAILED
Expected ""
 to equal "*\n"

/«PKGBUILDDIR»/spec/ruby/shared/process/exec.rb:56:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/process/exec_spec.rb:5:in `(root)'
/«PKGBUILDDIR»/spec/ruby/core/process/exec_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

26)
Process.gid returns the correct gid for the user executing this process ERROR
Errno::ENOENT: No such file or directory - id
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:28:in ``'
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:55:in ``'
/«PKGBUILDDIR»/spec/ruby/core/process/gid_spec.rb:6:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/process/gid_spec.rb:3:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

27)
Process.uid returns the correct uid for the user executing this process ERROR
Errno::ENOENT: No such file or directory - id
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:28:in ``'
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:55:in ``'
/«PKGBUILDDIR»/spec/ruby/core/process/uid_spec.rb:6:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/process/uid_spec.rb:3:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

28)
Time.new creates a time based on the current system time ERROR
Errno::ENOENT: No such file or directory - which
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:28:in ``'
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:55:in ``'
/«PKGBUILDDIR»/spec/ruby/core/time/shared/now.rb:6:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/time/new_spec.rb:7:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

29)
Time.now creates a time based on the current system time ERROR
Errno::ENOENT: No such file or directory - which
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:28:in ``'
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:55:in ``'
/«PKGBUILDDIR»/spec/ruby/core/time/shared/now.rb:6:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/time/now_spec.rb:5:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

30)
Time#strftime returns the timezone with %Z FAILED
Expected "+00:00"
 to equal "GMT"

/«PKGBUILDDIR»/spec/ruby/core/time/strftime_spec.rb:238:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/time/strftime_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

31)
Time#zone returns UTC when called on a UTC time FAILED
Expected "GMT"
 to equal "UTC"

/«PKGBUILDDIR»/spec/ruby/core/time/zone_spec.rb:19:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/core/time/zone_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

32)
An exception occurred during: before :all ERROR
Errno::ENOENT: No such file or directory - id
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:28:in ``'
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:55:in ``'
/«PKGBUILDDIR»/spec/ruby/library/etc/getgrgid_spec.rb:18:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
/«PKGBUILDDIR»/spec/ruby/library/etc/getgrgid_spec.rb:16:in `(root)'
/«PKGBUILDDIR»/spec/ruby/library/etc/getgrgid_spec.rb:15:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

33)
Etc.getpwnam returns a Etc::Passwd struct instance for the given user ERROR
Errno::ENOENT: No such file or directory - whoami
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:28:in ``'
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:55:in ``'
/«PKGBUILDDIR»/spec/ruby/library/etc/getpwnam_spec.rb:25:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
org/jruby/RubyFixnum.java:275:in `times'
org/jruby/RubyArray.java:1613:in `each'
/«PKGBUILDDIR»/spec/ruby/library/etc/getpwnam_spec.rb:15:in `(root)'
/«PKGBUILDDIR»/spec/ruby/library/etc/getpwnam_spec.rb:14:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

34)
An exception occurred during: before :all ERROR
Errno::ENOENT: No such file or directory - id
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:28:in ``'
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:55:in ``'
/«PKGBUILDDIR»/spec/ruby/library/etc/getpwuid_spec.rb:17:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
/«PKGBUILDDIR»/spec/ruby/library/etc/getpwuid_spec.rb:15:in `(root)'
/«PKGBUILDDIR»/spec/ruby/library/etc/getpwuid_spec.rb:14:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

35)
An exception occurred during: before :all ERROR
Errno::ENOENT: No such file or directory - id
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:28:in ``'
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:55:in ``'
/«PKGBUILDDIR»/spec/ruby/library/etc/struct_group_spec.rb:7:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
/«PKGBUILDDIR»/spec/ruby/library/etc/struct_group_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

36)
An exception occurred during: before :all ERROR
Errno::ENOENT: No such file or directory - id
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:28:in ``'
file:/«PKGBUILDDIR»/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:55:in ``'
/«PKGBUILDDIR»/spec/ruby/library/etc/struct_passwd_spec.rb:7:in `(root)'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyEnumerable.java:1412:in `all?'
/«PKGBUILDDIR»/spec/ruby/library/etc/struct_passwd_spec.rb:4:in `(root)'
org/jruby/RubyKernel.java:1059:in `load'
org/jruby/RubyBasicObject.java:1574:in `instance_eval'
org/jruby/RubyArray.java:1613:in `each'

Finished in 350.714000 seconds

3352 files, 19453 examples, 52651 expectations, 23 failures, 13 errors

-----------------------------------------------------
The rubyspec temp directory is not empty. Ensure that
all specs are cleaning up temporary files:
  /«PKGBUILDDIR»/rubyspec_temp
-----------------------------------------------------

debian/rules:56: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory '/«PKGBUILDDIR»'
debian/rules:14: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
────────────────────────────────────────────────────────────────────────────────
Build finished at 20150831-1124

Tags: ftbfs wily
tags: added: ftbfs
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

I've seen similar build failures as well. I investigated a bit and came up with a hunch/theory about the underlying cause. I noticed that Debian had updated rspec to 3.x while Ubuntu was still using 2.x (since some new build dependencies for rspec weren't in main) and it didn't seem too unreasonable that this might affect the outcome of the tests.

I don't have any solid proof for this theory, but the build dependencies have been sorted out and ruby-rspec 3.3.0c0e0m0s0-1build1 is now available on Ubuntu Wily. I attempted a build locally, and I was successfully able to build jruby 1.7.21-2ubuntu4 so it looks like this issue has been sorted out. I will try to poke someone to trigger a rebuild in the Ubuntu archives.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :
Download full text (9.4 KiB)

My previous comment turned out to be a bit too optimistic. jruby 1.7.21-2ubuntu4 was rebuilt on Launchpad, but it still failed (see below for details). It seems to get less errors now, but I am not quite sure why I didn't get similar failures locally.

./bin/jruby spec/mspec/bin/mspec ci
jruby 1.7.21 (1.9.3p551) 2015-09-12 fffffff on OpenJDK 64-Bit Server VM 1.8.0_01-internal-b01 +jit [linux-amd64]

Exception: java.lang.ThreadDeath thrown from the UncaughtExceptionHandler in thread "Thread-96"
NoMethodError: undefined method `daemon' for Process:Module
  daemon_at_exit at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:55
             run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
          (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
NoMethodError: undefined method `daemon' for Process:Module
  keep_stdio_open_false_stdout at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:64
                           run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
                        (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
NoMethodError: undefined method `daemon' for Process:Module
  keep_stdio_open_false_stderr at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:69
                           run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
                        (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
NoMethodError: undefined method `daemon' for Process:Module
  keep_stdio_open_false_stdout at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:64
                           run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
                        (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
NoMethodError: undefined method `daemon' for Process:Module
  keep_stdio_open_false_stderr at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:69
                           run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
                        (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
NoMethodError: undefined method `daemon' for Process:Module
  keep_stdio_open_false_stdout at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:64
                           run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
                        (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
NoMethodError: undefined method `daemon' for Process:Module
  keep_stdio_open_false_stderr at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:69
                           run at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:11
                        (root) at /«PKGBUILDDIR»/spec/ruby/core/process/fixtures/daemon.rb:111
The signal EXIT is in use by the JVM and will not work correctly on this platform
.....................................................................................................................................................................................................................................................................

Read more...

tags: added: wily
Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

Hans,

Thank you for your report.

JRuby has been successfully build on wily proposed now: https://launchpad.net/ubuntu/+source/jruby/1.7.21-2ubuntu4/+build/7851239

Changed in jruby (Ubuntu):
status: New → Fix Released
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Great :)

Do you know what changed between the previous attempt and now? Or did it just start working(tm)?

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

A few of the original failures were fixed after pushing a new joda-time into the repository (LP: #1491530) and the others - as you said - seem to be fixed due to the new rspec.

Without access to the rebuild log that failed I can't tell what went wrong at the time to make any guesses why it went ok this time.

As for your local failure, it happened because your chroot propagates environment variables and HOME was set to '~', which JRuby was unable to expand properly. And yes, it is bad "packaging" practice to depend on HOME being set or even existing, but those particular tests are from JRuby's mspec and hardly makes sense to change them (at most we could try disabling them) - note that the debian/rules file does try to take that into account by setting HOME to '/tmp' but only when it is unset.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.