| "make update-download -j4" exit with 0. |
| "make update-src -j4" exit with 0. |
| "make after-update -j4" exit with 0. |
| "make miniruby -j4" exit with 0. |
| "make ruby -j4" exit with 0. |
| "make all -j4" exit with 0. |
| "make install -j4" exit with 0. |
| "make yes-btest TESTOPTS='-q -j4'" exit with 0. |
| |
| "make yes-test-basic TESTS='-j4'" exit with 0. |
| "make yes-test-all TESTOPTS='--stderr-on-failure' TESTS='-j4'" exit with 0. |
| "make yes-test-rubyspec MSPECOPT='--error-output stderr -j' TESTS='-j4'" exit with 512. |
| /tmp/ruby/build/trunk/ruby: [BUG] Segmentation fault at 0x0000003ff5bf6d44 |
| ruby 4.1.0dev (2026-02-19T01:15:43Z master da767cda10) +PRISM [riscv64-linux] |
| -- Control frame information ----------------------------------------------- |
| c:0001 p:0000 s:0003 E:002540 l:y b:---- DUMMY [FINISH] |
| -- Threading information --------------------------------------------------- |
| Total ractor count: 1 |
| Ruby thread count for this ractor: 1 |
| -- Machine register context ------------------------------------------------ |
| sp: 0x0000003fff9c64c0 s0: 0x000000000000000d s1: 0x0000000000000002 |
| a0: 0x0000000000000000 a1: 0x0000000000000002 a2: 0x000000000000000d |
| a3: 0x0000000000000000 a4: 0x000000000000007f a5: 0x0000000000000000 |
| a6: 0x0000000000000000 a7: 0x0000003ff5bf6d20 s2: 0x0000000000000000 |
| s3: 0x0000002acc24acd0 s4: 0x0000000000000005 s5: 0x0000000000000001 |
| s6: 0x0000003ff64fdd18 s7: 0x0000000000000380 s8: 0x0000003ff641eb50 |
| s9: 0x0000000000000004 s10: 0x0000000000000009 s11: 0x0000000000000000 |
| -- C level backtrace information ------------------------------------------- |
| /tmp/ruby/build/trunk/libruby.so.4.1(rb_print_backtrace+0x14) [0x3ff62b66c6] /tmp/ruby/src/trunk/vm_dump.c:1105 |
| /tmp/ruby/build/trunk/libruby.so.4.1(rb_vm_bugreport) /tmp/ruby/src/trunk/vm_dump.c:1450 |
| /tmp/ruby/build/trunk/libruby.so.4.1(rb_bug_for_fatal_signal+0x72) [0x3ff60f19a6] /tmp/ruby/src/trunk/error.c:1131 |
| /tmp/ruby/build/trunk/libruby.so.4.1(sigsegv+0x42) [0x3ff621b4b4] /tmp/ruby/src/trunk/signal.c:948 |
| linux-vdso.so.1(__vdso_rt_sigreturn+0x0) [0x3ff64da800] |
| [0x3ff5bf6d44] |
| -- Other runtime information ----------------------------------------------- |
| * Loaded script: /tmp/ruby/build/trunk/ruby |
| * Ruby Box: disabled |
| * Loaded features: |
| 0 enumerator.so |
| 1 monitor.so |
| 2 thread.rb |
| 3 fiber.so |
| 4 rational.so |
| 5 complex.so |
| 6 pathname.so |
| 7 ruby2_keywords.rb |
| 8 set.rb |
| 9 /tmp/ruby/build/trunk/.ext/riscv64-linux/enc/encdb.so |
| 10 /tmp/ruby/build/trunk/.ext/riscv64-linux/enc/trans/transdb.so |
| * Process memory map: |
| 2acc240000-2acc241000 r-xp 00000000 00:1e 318482 /tmp/ruby/build/trunk/ruby |
| 2acc241000-2acc242000 r--p 00000000 00:1e 318482 /tmp/ruby/build/trunk/ruby |
| 2acc242000-2acc243000 rw-p 00001000 00:1e 318482 /tmp/ruby/build/trunk/ruby |
| 2acc243000-2acc36e000 rw-p 00000000 00:00 0 [heap] |
| 3fd92d5000-3fda7ea000 rw-p 00000000 00:00 0 |
| 3fda7ea000-3fdb698000 r--s 00000000 00:1e 318475 /tmp/ruby/build/trunk/libruby.so.4.1.0 |
| 3fdb698000-3fdb6d3000 r--s 00000000 00:1e 318482 /tmp/ruby/build/trunk/ruby |
| 3fdb6d3000-3fdb6ee000 r-xp 00000000 b3:03 32 /usr/lib/riscv64-linux-gnu/libgcc_s.so.1 |
| 3fdb6ee000-3fdb6ef000 r--p 0001b000 b3:03 32 /usr/lib/riscv64-linux-gnu/libgcc_s.so.1 |
| 3fdb6ef000-3fdb6f0000 rw-p 0001c000 b3:03 32 /usr/lib/riscv64-linux-gnu/libgcc_s.so.1 |
| 3fdb6f0000-3fdb720000 rw-p 00000000 00:00 0 [anon:Ruby:GC:default:heap_page_body_allocate] |
| 3fdb72f000-3fdb730000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb730000-3fdb771000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb771000-3fdb772000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb772000-3fdb7b3000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb7b3000-3fdb7b4000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb7b4000-3fdb7f5000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb7f5000-3fdb7f6000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb7f6000-3fdb837000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb837000-3fdb838000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb838000-3fdb879000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb879000-3fdb87a000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb87a000-3fdb8bb000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb8bb000-3fdb8bc000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb8bc000-3fdb8fd000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb8fd000-3fdb8fe000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb8fe000-3fdb93f000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb93f000-3fdb940000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb940000-3fdb981000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb981000-3fdb982000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb982000-3fdb9c3000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb9c3000-3fdb9c4000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdb9c4000-3fdba05000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdba05000-3fdba06000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdba06000-3fdba47000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdba47000-3fdba48000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdba48000-3fdba89000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdba89000-3fdba8a000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdba8a000-3fdbacb000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbacb000-3fdbacc000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbacc000-3fdbb0d000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbb0d000-3fdbb0e000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbb0e000-3fdbb4f000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbb4f000-3fdbb50000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbb50000-3fdbb91000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbb91000-3fdbb92000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbb92000-3fdbbd3000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbbd3000-3fdbbd4000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbbd4000-3fdbc15000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbc15000-3fdbc16000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbc16000-3fdbc57000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbc57000-3fdbc58000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbc58000-3fdbc99000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbc99000-3fdbc9a000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbc9a000-3fdbcdb000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbcdb000-3fdbcdc000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbcdc000-3fdbd1d000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbd1d000-3fdbd1e000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbd1e000-3fdbd5f000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbd5f000-3fdbd60000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbd60000-3fdbda1000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbda1000-3fdbda2000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbda2000-3fdbde3000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbde3000-3fdbde4000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbde4000-3fdbe25000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbe25000-3fdbe26000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbe26000-3fdbe67000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbe67000-3fdbe68000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbe68000-3fdbea9000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbea9000-3fdbeaa000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbeaa000-3fdbeeb000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbeeb000-3fdbeec000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbeec000-3fdbf2d000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbf2d000-3fdbf2e000 ---p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbf2e000-3fdbf6f000 rw-p 00000000 00:00 0 [anon:Ruby:fiber_pool_allocate_memory] |
| 3fdbf6f000-3fdbf70000 ---p 00000000 00:00 0 |
| 3fdbf70000-3fdc770000 rw-p 00000000 00:00 0 |
| 3fdc770000-3fdc7c0000 rw-p 00000000 00:00 0 [anon:Ruby:GC:default:heap_page_body_allocate] |
| 3fdc7cf000-3ff47cf000 rw-p 00000000 00:00 0 [anon:Ruby:Init_default_shapes:shape_cache] |
| 3ff47cf000-3ff5bcf000 rw-p 00000000 00:00 0 [anon:Ruby:Init_default_shapes:shape_list] |
| 3ff5bcf000-3ff5bf0000 rw-p 00000000 00:00 0 |
| 3ff5bf0000-3ff5c00000 rw-p 00000000 00:00 0 [anon:Ruby:GC:default:heap_page_body_allocate] |
| 3ff5c07000-3ff5c0a000 r-xp 00000000 00:1e 23114 /tmp/ruby/build/trunk/.ext/riscv64-linux/enc/trans/transdb.so |
| 3ff5c0a000-3ff5c0b000 r--p 00002000 00:1e 23114 /tmp/ruby/build/trunk/.ext/riscv64-linux/enc/trans/transdb.so |
| 3ff5c0b000-3ff5c0c000 rw-p 00003000 00:1e 23114 /tmp/ruby/build/trunk/.ext/riscv64-linux/enc/trans/transdb.so |
| 3ff5c0c000-3ff5d0d000 rw-p 00000000 00:00 0 |
| 3ff5d0d000-3ff5d65000 r--p 00000000 b3:03 8804 /usr/lib/locale/C.utf8/LC_CTYPE |
| 3ff5d65000-3ff5d67000 rw-p 00000000 00:00 0 |
| 3ff5d67000-3ff5ed1000 r-xp 00000000 b3:03 5812 /usr/lib/riscv64-linux-gnu/libc.so.6 |
| 3ff5ed1000-3ff5ed4000 r--p 0016a000 b3:03 5812 /usr/lib/riscv64-linux-gnu/libc.so.6 |
| 3ff5ed4000-3ff5ed6000 rw-p 0016d000 b3:03 5812 /usr/lib/riscv64-linux-gnu/libc.so.6 |
| 3ff5ed6000-3ff5ee2000 rw-p 00000000 00:00 0 |
| 3ff5ee2000-3ff5f59000 r-xp 00000000 b3:03 5818 /usr/lib/riscv64-linux-gnu/libm.so.6 |
| 3ff5f59000-3ff5f5a000 r--p 00077000 b3:03 5818 /usr/lib/riscv64-linux-gnu/libm.so.6 |
| 3ff5f5a000-3ff5f5b000 rw-p 00078000 b3:03 5818 /usr/lib/riscv64-linux-gnu/libm.so.6 |
| 3ff5f5b000-3ff5f8a000 r-xp 00000000 b3:03 4307 /usr/lib/riscv64-linux-gnu/libcrypt.so.1.1.0 |
| 3ff5f8a000-3ff5f8b000 r--p 0002e000 b3:03 4307 /usr/lib/riscv64-linux-gnu/libcrypt.so.1.1.0 |
| 3ff5f8b000-3ff5f8c000 rw-p 0002f000 b3:03 4307 /usr/lib/riscv64-linux-gnu/libcrypt.so.1.1.0 |
| 3ff5f8c000-3ff5f94000 rw-p 00000000 00:00 0 |
| 3ff5f94000-3ff5ff0000 r-xp 00000000 b3:03 313 /usr/lib/riscv64-linux-gnu/libgmp.so.10.4.1 |
| 3ff5ff0000-3ff5ff1000 r--p 0005b000 b3:03 313 /usr/lib/riscv64-linux-gnu/libgmp.so.10.4.1 |
| 3ff5ff1000-3ff5ff2000 rw-p 0005c000 b3:03 313 /usr/lib/riscv64-linux-gnu/libgmp.so.10.4.1 |
| 3ff5ff2000-3ff6005000 r-xp 00000000 b3:03 4335 /usr/lib/riscv64-linux-gnu/libz.so.1.2.13 |
| 3ff6005000-3ff6006000 r--p 00013000 b3:03 4335 /usr/lib/riscv64-linux-gnu/libz.so.1.2.13 |
| 3ff6006000-3ff6007000 rw-p 00014000 b3:03 4335 /usr/lib/riscv64-linux-gnu/libz.so.1.2.13 |
| 3ff6009000-3ff600a000 r--p 00000000 00:1e 7288 /tmp/ruby/src/trunk/spec/ruby/language/fixtures/second_line_magic_comment.rb |
| 3ff600a000-3ff600c000 r-xp 00000000 00:1e 19387 /tmp/ruby/build/trunk/.ext/riscv64-linux/enc/encdb.so |
| 3ff600c000-3ff600d000 r--p 00001000 00:1e 19387 /tmp/ruby/build/trunk/.ext/riscv64-linux/enc/encdb.so |
| 3ff600d000-3ff600e000 rw-p 00002000 00:1e 19387 /tmp/ruby/build/trunk/.ext/riscv64-linux/enc/encdb.so |
| 3ff600e000-3ff6015000 r--s 00000000 b3:03 10215 /usr/lib/riscv64-linux-gnu/gconv/gconv-modules.cache |
| 3ff6015000-3ff64b3000 r-xp 00000000 00:1e 318475 /tmp/ruby/build/trunk/libruby.so.4.1.0 |
| 3ff64b3000-3ff64be000 r--p 0049e000 00:1e 318475 /tmp/ruby/build/trunk/libruby.so.4.1.0 |
| 3ff64be000-3ff64c2000 rw-p 004a9000 00:1e 318475 /tmp/ruby/build/trunk/libruby.so.4.1.0 |
| 3ff64c2000-3ff64da000 rw-p 00000000 00:00 0 |
| 3ff64da000-3ff64db000 r-xp 00000000 00:00 0 [vdso] |
| 3ff64db000-3ff64dc000 r--p 00000000 00:00 0 [vdso_data] |
| 3ff64dc000-3ff64fc000 r-xp 00000000 b3:03 5806 /usr/lib/riscv64-linux-gnu/ld-linux-riscv64-lp64d.so.1 |
| 3ff64fc000-3ff64fe000 r--p 0001f000 b3:03 5806 /usr/lib/riscv64-linux-gnu/ld-linux-riscv64-lp64d.so.1 |
| 3ff64fe000-3ff6500000 rw-p 00021000 b3:03 5806 /usr/lib/riscv64-linux-gnu/ld-linux-riscv64-lp64d.so.1 |
| 3fff9a8000-3fff9c9000 rw-p 00000000 00:00 0 [stack] |
| 1) |
| Magic comments in the main file must be at the first line FAILED |
| Expected exit status is 0 but actual is :SIGSEGV for command ruby_exe("/tmp/ruby/build/trunk/miniruby -I/tmp/ruby/src/trunk/lib /tmp/ruby/src/trunk/tool/runruby.rb --archdir=/tmp/ruby/build/trunk --extout=.ext -- -r/tmp/ruby/src/trunk/spec/ruby/language/fixtures/print_magic_comment_result_at_exit.rb /tmp/ruby/src/trunk/spec/ruby/language/fixtures/second_line_magic_comment.rb") |
| Output: |
| /tmp/ruby/src/trunk/spec/ruby/language/magic_comment_spec.rb:69:in 'block (3 levels) in <top (required)>' |
| /tmp/ruby/src/trunk/spec/ruby/language/magic_comment_spec.rb:18:in 'block (2 levels) in <top (required)>' |
| /tmp/ruby/src/trunk/spec/ruby/language/magic_comment_spec.rb:46:in '<top (required)>' |
| make: *** [uncommon.mk:959: yes-test-spec] Error 1 |