Project

General

Profile

Actions

Bug #12500

closed

TestProcess#test_aspawn_too_long_path fails on mips with "argument too big"

Bug #12500: TestProcess#test_aspawn_too_long_path fails on mips with "argument too big"

Added by zeha (Christian Hofstaedtler) over 9 years ago. Updated about 2 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.1p112 (2016-04-26) [mips-linux-gnu]
[ruby-core:76063]
Tags:

Description

Recently in Debian we've enabled make check and this is one of the test failures we get for ruby2.3, on mips:

TestProcess#test_aspawn_too_long_path [/«PKGBUILDDIR»/test/ruby/test_process.rb:1602]:
[ruby-core:34833] #7904 [ruby-core:52628] #11613.
[Errno::ENOENT, Errno::E2BIG] exception expected, not.
Class: <ArgumentError>
Message: <"argument too big">
---Backtrace---
/«PKGBUILDDIR»/test/ruby/test_process.rb:1619:in `*'
/«PKGBUILDDIR»/test/ruby/test_process.rb:1619:in `block (3 levels) in assert_fail_too_long_path'
/«PKGBUILDDIR»/test/ruby/test_process.rb:1616:in `loop'
/«PKGBUILDDIR»/test/ruby/test_process.rb:1616:in `block (2 levels) in assert_fail_too_long_path'
/«PKGBUILDDIR»/test/lib/test/unit/assertions.rb:74:in `assert_raise'
/«PKGBUILDDIR»/test/ruby/test_process.rb:1614:in `block in assert_fail_too_long_path'
/«PKGBUILDDIR»/test/lib/envutil.rb:159:in `suppress_warning'
/«PKGBUILDDIR»/test/ruby/test_process.rb:1613:in `assert_fail_too_long_path'
/«PKGBUILDDIR»/test/ruby/test_process.rb:1602:in `test_aspawn_too_long_path'
/«PKGBUILDDIR»/test/lib/test/unit.rb:1018:in `run_test'
---------------

I think is caused by some array or string mangling code used by Process.spawn, but can't be sure.

Please also backport any fixes for this to 2.3.

Updated by hsbt (Hiroshi SHIBATA) almost 6 years ago Actions #1

  • Tags set to mips, test

Updated by jeremyevans0 (Jeremy Evans) about 2 years ago Actions #2 [ruby-core:114471]

I submitted a pull request to handle this ArgumentError: https://github.com/ruby/ruby/pull/8270

Updated by jeremyevans (Jeremy Evans) about 2 years ago Actions #3

  • Status changed from Open to Closed

Applied in changeset git|bd22bb259c183b91656bea72899fe91c31aeb44e.


Handle Array#* raising ArgumentError in test

Treat ArgumentError as NoMemoryError, so it will resize the array
and try again.

Fixes [Bug #12500]

Actions

Also available in: PDF Atom