[ruby-core:112179] [Ruby master Bug#19400] testcase failed on 3.2.0

Issue #19400 has been reported by xiacunshun (xiacunshun xia). ---------------------------------------- Bug #19400: testcase failed on 3.2.0 https://bugs.ruby-lang.org/issues/19400 * Author: xiacunshun (xiacunshun xia) * Status: Open * Priority: Normal * ruby -v: 3.2.0 * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- 1) Failure: TestRubyOptions#test_enable [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_rubyoptions.rb:176]: pid 2482783 killed by SIGABRT (signal 6) (core dumped) | thread '<unnamed>' panicked at 'assertion failed: `(left == right)` | left: `16384`, | right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace .. 1. [1/2] Assertion for "stdout" | <[]> expected but was | <["YJIT: rb_yjit_init_rust() panicked. Aborting."]>. 2. [2/2] Assertion for "stderr" | <[]> expected but was | <["thread '<unnamed>' panicked at 'assertion failed: `(left == right)`", | " left: `16384`,", | " right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13", | "note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"]>. 2) Failure: TestYJIT#test_string_interpolation [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:457]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 3) Failure: TestYJIT#test_string_then_nil [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:302]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace -- https://bugs.ruby-lang.org/

Issue #19400 has been updated by xiacunshun (xiacunshun xia). xiacunshun (xiacunshun xia) wrote:
1) Failure: TestRubyOptions#test_enable [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_rubyoptions.rb:176]: pid 2482783 killed by SIGABRT (signal 6) (core dumped) | thread '<unnamed>' panicked at 'assertion failed: `(left == right)` | left: `16384`, | right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace . 1. [1/2] Assertion for "stdout" | <[]> expected but was | <["YJIT: rb_yjit_init_rust() panicked. Aborting."]>. 2. [2/2] Assertion for "stderr" | <[]> expected but was | <["thread '<unnamed>' panicked at 'assertion failed: `(left == right)`", | " left: `16384`,", | " right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13", | "note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"]>. 2) Failure: TestYJIT#test_string_interpolation [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:457]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 3) Failure: TestYJIT#test_string_then_nil [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:302]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I run into this problem on armv8 and the pagesize is 64K. The page_size of CodeBlock is const 16K, which leads to `16K % 64K = 16K`. ---------------------------------------- Bug #19400: testcase failed on 3.2.0 https://bugs.ruby-lang.org/issues/19400#change-101617 * Author: xiacunshun (xiacunshun xia) * Status: Open * Priority: Normal * ruby -v: 3.2.0 * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- 1) Failure: TestRubyOptions#test_enable [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_rubyoptions.rb:176]: pid 2482783 killed by SIGABRT (signal 6) (core dumped) | thread '<unnamed>' panicked at 'assertion failed: `(left == right)` | left: `16384`, | right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace .. 1. [1/2] Assertion for "stdout" | <[]> expected but was | <["YJIT: rb_yjit_init_rust() panicked. Aborting."]>. 2. [2/2] Assertion for "stderr" | <[]> expected but was | <["thread '<unnamed>' panicked at 'assertion failed: `(left == right)`", | " left: `16384`,", | " right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13", | "note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"]>. 2) Failure: TestYJIT#test_string_interpolation [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:457]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 3) Failure: TestYJIT#test_string_then_nil [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:302]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace -- https://bugs.ruby-lang.org/

Issue #19400 has been updated by nobu (Nobuyoshi Nakada). Status changed from Open to Assigned Assignee set to yjit ---------------------------------------- Bug #19400: testcase failed on 3.2.0 https://bugs.ruby-lang.org/issues/19400#change-101619 * Author: xiacunshun (xiacunshun xia) * Status: Assigned * Priority: Normal * Assignee: yjit * ruby -v: 3.2.0 * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- 1) Failure: TestRubyOptions#test_enable [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_rubyoptions.rb:176]: pid 2482783 killed by SIGABRT (signal 6) (core dumped) | thread '<unnamed>' panicked at 'assertion failed: `(left == right)` | left: `16384`, | right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace .. 1. [1/2] Assertion for "stdout" | <[]> expected but was | <["YJIT: rb_yjit_init_rust() panicked. Aborting."]>. 2. [2/2] Assertion for "stderr" | <[]> expected but was | <["thread '<unnamed>' panicked at 'assertion failed: `(left == right)`", | " left: `16384`,", | " right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13", | "note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"]>. 2) Failure: TestYJIT#test_string_interpolation [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:457]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 3) Failure: TestYJIT#test_string_then_nil [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:302]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace -- https://bugs.ruby-lang.org/

Issue #19400 has been updated by alanwu (Alan Wu). Curious what OS distribution you're using for reproduction. I guess you compile your own custom Linux kernel? ---------------------------------------- Bug #19400: testcase failed on 3.2.0 https://bugs.ruby-lang.org/issues/19400#change-101621 * Author: xiacunshun (xiacunshun xia) * Status: Assigned * Priority: Normal * Assignee: yjit * ruby -v: 3.2.0 * Backport: 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONTNEED, 3.2: REQUIRED ---------------------------------------- 1) Failure: TestRubyOptions#test_enable [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_rubyoptions.rb:176]: pid 2482783 killed by SIGABRT (signal 6) (core dumped) | thread '<unnamed>' panicked at 'assertion failed: `(left == right)` | left: `16384`, | right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace .. 1. [1/2] Assertion for "stdout" | <[]> expected but was | <["YJIT: rb_yjit_init_rust() panicked. Aborting."]>. 2. [2/2] Assertion for "stderr" | <[]> expected but was | <["thread '<unnamed>' panicked at 'assertion failed: `(left == right)`", | " left: `16384`,", | " right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13", | "note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"]>. 2) Failure: TestYJIT#test_string_interpolation [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:457]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 3) Failure: TestYJIT#test_string_then_nil [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:302]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace -- https://bugs.ruby-lang.org/

Issue #19400 has been updated by xiacunshun (xiacunshun xia). alanwu (Alan Wu) wrote in #note-4:
Curious what OS distribution you're using for reproduction. I guess you compile your own custom Linux kernel?
We are building ruby on OpenCloudOS stream. Yes, we use the kernel which is compiled by ourself. ---------------------------------------- Bug #19400: testcase failed on 3.2.0 https://bugs.ruby-lang.org/issues/19400#change-101630 * Author: xiacunshun (xiacunshun xia) * Status: Assigned * Priority: Normal * Assignee: yjit * ruby -v: 3.2.0 * Backport: 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONTNEED, 3.2: REQUIRED ---------------------------------------- 1) Failure: TestRubyOptions#test_enable [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_rubyoptions.rb:176]: pid 2482783 killed by SIGABRT (signal 6) (core dumped) | thread '<unnamed>' panicked at 'assertion failed: `(left == right)` | left: `16384`, | right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace .. 1. [1/2] Assertion for "stdout" | <[]> expected but was | <["YJIT: rb_yjit_init_rust() panicked. Aborting."]>. 2. [2/2] Assertion for "stderr" | <[]> expected but was | <["thread '<unnamed>' panicked at 'assertion failed: `(left == right)`", | " left: `16384`,", | " right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13", | "note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"]>. 2) Failure: TestYJIT#test_string_interpolation [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:457]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 3) Failure: TestYJIT#test_string_then_nil [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:302]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace -- https://bugs.ruby-lang.org/

Issue #19400 has been updated by naruse (Yui NARUSE). Backport changed from 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONTNEED, 3.2: REQUIRED to 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONE ruby_3_2 f93c7b9f58966fd04496bfeb2538fb1ff41f788e merged revision(s) b78f871d838c168789648738e5c67b071beb8a19,ecd0cdaf820af789f355f1a18c31d6adfe8aad94. ---------------------------------------- Bug #19400: YJIT fails to boot on ARM64 systems with 64 KiB pages https://bugs.ruby-lang.org/issues/19400#change-102161 * Author: xiacunshun (xiacunshun xia) * Status: Closed * Priority: Normal * Assignee: yjit * ruby -v: 3.2.0 * Backport: 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONE ---------------------------------------- 1) Failure: TestRubyOptions#test_enable [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_rubyoptions.rb:176]: pid 2482783 killed by SIGABRT (signal 6) (core dumped) | thread '<unnamed>' panicked at 'assertion failed: `(left == right)` | left: `16384`, | right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace .. 1. [1/2] Assertion for "stdout" | <[]> expected but was | <["YJIT: rb_yjit_init_rust() panicked. Aborting."]>. 2. [2/2] Assertion for "stderr" | <[]> expected but was | <["thread '<unnamed>' panicked at 'assertion failed: `(left == right)`", | " left: `16384`,", | " right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13", | "note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"]>. 2) Failure: TestYJIT#test_string_interpolation [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:457]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 3) Failure: TestYJIT#test_string_then_nil [/builddir/build/BUILD/ruby-3.2.0/test/ruby/test_yjit.rb:302]: exited with status 134, stderr: thread '<unnamed>' panicked at 'assertion failed: `(left == right)` left: `16384`, right: `0`: code page size is not page-aligned', /builddir/build/BUILD/ruby-3.2.0/yjit/src/codegen.rs:7235:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace -- https://bugs.ruby-lang.org/
participants (4)
-
alanwu (Alan Wu)
-
naruse (Yui NARUSE)
-
nobu (Nobuyoshi Nakada)
-
xiacunshun (xiacunshun xia)