General

Profile

wsfulton (William Fulton)

  • Login: wsfulton
  • Registered on: 04/20/2025
  • Last sign in: 04/20/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

11/14/2025

07:02 PM Ruby Bug #21659: rstring.h error: missing initializer for field ‘len’ of ‘struct RString’ [-Werror=missing-field-initializers] starting in ruby-3.3.10
Using a new macro, which can be used for any struct initialization, could be used throughout the Ruby code base, but most importantly in the one instance in the headers. Backwards compatibility in extension code can be achieved by then l... wsfulton (William Fulton)

11/11/2025

08:26 AM Ruby Bug #21659: rstring.h error: missing initializer for field ‘len’ of ‘struct RString’ [-Werror=missing-field-initializers] starting in ruby-3.3.10
Sigh.
```c
#ifdef __cplusplus
# define RBASIC_INIT
#else
# define RBASIC_INIT 0
#endif
struct RString retval = {RBASIC_INIT};
```
is warning free using "-std=c89 -Wall -Wextra -pedantic" and similarly for c++98 and later. ...
wsfulton (William Fulton)

11/05/2025

07:53 AM Ruby Bug #21659: rstring.h error: missing initializer for field ‘len’ of ‘struct RString’ [-Werror=missing-field-initializers] starting in ruby-3.3.10
I thought it was UB in c++98, but have just checked the standard and I have this wrong as the missing members are indeed default initialized.
A more conventional way for default aggregate initialisation is
```c++
struct RSt...
wsfulton (William Fulton)

11/02/2025

12:18 PM Ruby Bug #21659: rstring.h error: missing initializer for field ‘len’ of ‘struct RString’ [-Werror=missing-field-initializers] starting in ruby-3.3.10
Keep code warning free improves the code quality. Fixing this warning, in particular, removes undefined behaviour. Are the core Ruby developers supportive of these goals and consider a patch to fix this warning and possibly even making i... wsfulton (William Fulton)

11/01/2025

07:37 AM Ruby Bug #21659: rstring.h error: missing initializer for field ‘len’ of ‘struct RString’ [-Werror=missing-field-initializers] starting in ruby-3.3.10
This happens when compiling an EXTENSION. We have always used -Wmissing-field-initializers in our extensions and now they are broken. New Ruby releases really MUST NOT introduce new warnings for extensions which have to include Ruby.h. wsfulton (William Fulton)

10/31/2025

10:45 PM Ruby Bug #21659 (Rejected): rstring.h error: missing initializer for field ‘len’ of ‘struct RString’ [-Werror=missing-field-initializers] starting in ruby-3.3.10
All extensions now have this error when using -Werror -Wmissing-field-initializers:
```
In file included from /home/runner/.rvm/rubies/ruby-3.3.10/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29,
from /home/run...
wsfulton (William Fulton)

04/22/2025

08:10 AM Ruby Bug #21276: Regression segfault instead of exception `require': cannot load such file
master as of 22 April 2025 (888820c581065c7d5cbcd4a137af1e66a708979c) is okay and does NOT have the bug.
Another observation is that we observed the bug in 3.1.5 but it was okay in 3.1.4 and earlier. I've just checked latest 3.1.x:
...
wsfulton (William Fulton)

04/20/2025

10:13 PM Ruby Bug #21276: Regression segfault instead of exception `require': cannot load such file
I've attached a valgrind report which shows a few problems when running:
env LD_LIBRARY_PATH=. valgrind --tool=memcheck --trace-children=yes --track-origins=yes --log-file=./ruby-crash-valgrind.txt /home/william/install/ruby-3_2_3-deb...
wsfulton (William Fulton)
09:54 PM Ruby Bug #21276 (Closed): Regression segfault instead of exception `require': cannot load such file
A segfault occurs instead of a Ruby exception in one of the test cases we have in SWIG. I've run a git bisect on the 3.2 releases to identify commit 2aaa9af75989bb0993a44e9690ed2ca890b2ff91 for when the segfault begins:
```
commit 2a...
wsfulton (William Fulton)

Also available in: Atom