General

Profile

kurly (Greg Kubaryk)

  • Login: kurly
  • Registered on: 10/29/2025
  • Last sign in: 10/29/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

11/09/2025

05:16 AM Ruby Bug #21655: segfault when building 3.3.10 with GCC 15.2.1, regression from 3.3.9
nagachika (Tomoyuki Chikanaga) wrote in #note-14:
> Do you know the issue was reproducible on ruby-3.4.7 or master branch?
Yes, the issue can be reproduced at master branch (`529dd8d76efbe655fabce8933852504851266b2b`) and ruby_3_4 ta...
kurly (Greg Kubaryk)

10/29/2025

11:53 PM Ruby Bug #21655: segfault when building 3.3.10 with GCC 15.2.1, regression from 3.3.9
alanwu (Alan Wu) wrote in #note-5:
> It's surprising that leaving the temporary struct uninitialized avoids the crash. Smells like a GCC bug or some UB on our end the optimizer is exploiting.
> ...
Per a suggestion on the downstream bu...
kurly (Greg Kubaryk)
11:41 PM Ruby Bug #21655: segfault when building 3.3.10 with GCC 15.2.1, regression from 3.3.9
alanwu (Alan Wu) wrote in #note-5:
> It's surprising that leaving the temporary struct uninitialized avoids the crash. Smells like a GCC bug or some UB on our end the optimizer is exploiting.
> ...
It doesn't appear to, when added to C...
kurly (Greg Kubaryk)
06:40 AM Ruby Bug #21655: segfault when building 3.3.10 with GCC 15.2.1, regression from 3.3.9
I manually bisected inside that "bad" commit and found that this minimal diff on top of v3_3_10 eliminates the build failure:
```
diff --git a/include/ruby/internal/core/rstring.h b/include/ruby/internal/core/rstring.h
index 9cf9daa...
kurly (Greg Kubaryk)
06:10 AM Ruby Bug #21655: segfault when building 3.3.10 with GCC 15.2.1, regression from 3.3.9
Thank you for fixing the markdown in the comment 0.
On an affected machine, I was able to bisect the git repo between tags v3_3_9 and v3_3_10:
```
5a8d7642168f4ea0d9331fded3033c225bbc36c5 is the first bad commit
commit 5a8d7642168f...
kurly (Greg Kubaryk)
05:44 AM Ruby Bug #21655: segfault when building 3.3.10 with GCC 15.2.1, regression from 3.3.9
backtrace using a gentoo-built build with -ggdb3 added to CFLAGS
```
beans ~ # cd /var/tmp/portage/dev-lang/ruby-3.3.10/work/ruby-3.3.10/
beans /var/tmp/portage/dev-lang/ruby-3.3.10/work/ruby-3.3.10 # gdb --args ./miniruby -I./lib -...
kurly (Greg Kubaryk)
05:35 AM Ruby Bug #21655 (Closed): segfault when building 3.3.10 with GCC 15.2.1, regression from 3.3.9
ref downstream bug https://bugs.gentoo.org/965095 - reporting upstream because I was able to reproduce the problem from ruby-3.3.10.tar.xz manually
build log excerpt; the rest will be provided as an attachment
```
gcc -O2 -pipe -m...
kurly (Greg Kubaryk)

Also available in: Atom