Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935871 - dev-lang/ruby-3.1.5 fails tests on arm: stack level too deep (SystemStackError)
Summary: dev-lang/ruby-3.1.5 fails tests on arm: stack level too deep (SystemStackError)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL: https://github.com/ruby/readline-ext/...
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-07-11 19:36 UTC by matoro
Modified: 2024-07-13 07:48 UTC (History)
2 users (show)

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


Attachments
build.log and emerge --info (file_935871.txt,402.92 KB, text/plain)
2024-07-11 19:36 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-07-11 19:36:28 UTC
Created attachment 897464 [details]
build.log and emerge --info

Does not repro on arm64.

exec ./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems" --excludes-dir=./test/excludes --name=!/memory_leak/  
/var/tmp/portage/dev-lang/ruby-3.1.5/work/ruby-3.1.5/test/ruby/test_jit_debug.rb: cannot load such file -- /var/tmp/portage/dev-lang/ruby-3.1.5/work/ruby-3.1.5/test/ruby/test_jit
Run options: 
  --seed=29417
  "--ruby=./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems"
  --excludes-dir=./test/excludes
  --name=!/memory_leak/
 
# Running tests:
 
  1) Failure:
TestReadline#test_interrupt_in_other_thread [/var/tmp/portage/dev-lang/ruby-3.1.5/work/ruby-3.1.5/test/readline/test_readline.rb:587]:
Unknown failure with exit status #<Process::Status: pid 5271 exit 1>
Log: ** START **Readline::VERSION is 8.2.
#<Thread:0xf4f4caa0 /var/tmp/portage/dev-lang/ruby-3.1.5/temp/interrupt_in_other_thread20240711-2735-xvhpe5:9 run> terminated with exception (report_on_exception is true):
/var/tmp/portage/dev-lang/ruby-3.1.5/temp/interrupt_in_other_thread20240711-2735-xvhpe5:13:in `readline': stack level too deep (SystemStackError)
        from /var/tmp/portage/dev-lang/ruby-3.1.5/temp/interrupt_in_other_thread20240711-2735-xvhpe5:13:in `block in <main>'
/var/tmp/portage/dev-lang/ruby-3.1.5/temp/interrupt_in_other_thread20240711-2735-xvhpe5:13:in `readline': stack level too deep (SystemStackError)
        from /var/tmp/portage/dev-lang/ruby-3.1.5/temp/interrupt_in_other_thread20240711-2735-xvhpe5:13:in `block in <main>'
 
Killed by timeout
----
 
Finished tests in 1668.841265s, 12.6591 tests/s, 1649.3252 assertions/s.
21126 tests, 2752462 assertions, 1 failures, 0 errors, 52 skips
 
ruby -v: ruby 3.1.5p252 (2024-04-23 revision 1945f8dc0e) [armv7a-linux-eabihf]
make: *** [uncommon.mk:829: yes-test-all] Error 1
Comment 1 Hans de Graaff gentoo-dev Security 2024-07-12 08:09:56 UTC
Things to test or consider:

- does this also happen with ruby 3.1.6, which has various build fixes (although none that point directly to this issue)?
- is this a regression compared to 3.1.4?
- is this perhaps related to a readline version (8.1 vs 8.2)?
Comment 2 Larry the Git Cow gentoo-dev 2024-07-13 07:37:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcb9310e224faff66061736ebfb78ce2eaf74afe

commit dcb9310e224faff66061736ebfb78ce2eaf74afe
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2024-07-13 07:36:59 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2024-07-13 07:37:42 +0000

    dev-lang/ruby: avoid broken readline test on arm
    
    Bug: https://bugs.gentoo.org/935871
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 .../ruby/files/3.1/020-arm-readline-test.patch     | 28 ++++++++++++++++++++++
 dev-lang/ruby/ruby-3.1.5.ebuild                    |  1 +
 dev-lang/ruby/ruby-3.1.6-r1.ebuild                 |  1 +
 3 files changed, 30 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2024-07-13 07:48:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5766128be9c98956afbc367174353b11cefccf83

commit 5766128be9c98956afbc367174353b11cefccf83
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2024-07-13 07:46:52 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2024-07-13 07:47:48 +0000

    dev-lang/ruby: avoid broken readline test on arm
    
    Backport unreleased upstream fix by matoro.
    
    Closes: https://bugs.gentoo.org/935871
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 .../ruby/files/3.2/020-arm-readline-test.patch     | 32 ++++++++++++++++++++++
 dev-lang/ruby/ruby-3.2.4-r1.ebuild                 |  1 +
 dev-lang/ruby/ruby-3.2.4.ebuild                    |  1 +
 3 files changed, 34 insertions(+)