leahneukirchen (Leah Neukirchen)
- Login: leahneukirchen
- Registered on: 01/03/2021
- Last sign in: 01/03/2021
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
11/26/2025
-
06:59 PM Ruby Bug #21516: Segfault in String#succ! on 32-bit i686
- Indeed it fixes the bug for me.
07/17/2025
-
02:54 PM Ruby Bug #21516: Segfault in String#succ! on 32-bit i686
- I tried that, it didn't help. But I also couldn't reproduce it on Debian unstable GCC 14, so it may be an issue with my toolchain.
This patch works around it and shouldn't do much harm else:
```
--- a/string.c
+++ b/string.c
@@...
07/16/2025
-
08:52 PM Ruby Bug #21516: Segfault in String#succ! on 32-bit i686
- It seems RESIZE_CAPA_TERM is miscompiled, so this may not be a Ruby issue but a compiler problem.
At the end of the if(STR_EMBED_P(str)) block, RSTRING_PTR(str) still points into the string object and not to the new heap-allocated str... -
04:28 PM Ruby Bug #21516 (Closed): Segfault in String#succ! on 32-bit i686
- I noticed segfaults in the test suite of Ruby 3.4.5, related to String#succ!
A very easy reproducer is:
```
./miniruby -e 'puts "ZZZZ999".succ!'
```
```
$ ./miniruby -e 'puts "ZZZZ999".succ!'
-e:1: [BUG] Segmentation fault a...
01/03/2021
-
07:35 PM Ruby Feature #6362: Modular exponentiation/inverse
- As of Python 3.8, modular inverses are supported by Python's pow function, which can take a mod argument, just like Ruby's.
https://docs.python.org/3/library/functions.html#pow
I therefore propose to add this feature as
```
n.pow(-1, m...