Ruby 1.2.6

Details

Version
1.2.6
Released
Command
ruby-1.2.6
Try
ruby-1.2.6 -e 'print "Hello from Ruby ", VERSION, "\n"'
Samples
~/samples/1.2.6/
Source
ruby-1.2.6.tar.gz
SHA-256
74e57fa7ce5228030cf7c0fb82cd8258498dba886c51691705c340fdff663da5

Notes

Not patched: 1.1b9_19 and later use <stdarg.h> themselves, so there’s no varargs conversion, and glob.c includes <alloca.h> when configure finds it, so all-ruby’s glob-alloca stops before 1.2.

make install puts seven extensions in lib/ruby/i686-linux/: curses, etc, fcntl, kconv, md5, socket and tkutil (marshal moved into the interpreter in 1.1), and 61 libraries in lib/ruby/.

1.2’s sample/test.rb runs ./miniruby, the interpreter make builds before the extensions, where 1.0’s ran ./ruby, so scripts/test-ruby.mjs links both names. Every case passes with -fwrapv in CC (bignum 8 failed without it; see Shared build settings) and 0003, so knownTestFailures is empty. Ctrl-C raises Interrupt, as in 1.0, so checks.interruptStatus is 1, and 1.0’s uninterruptible empty loop do end is still there.

0003 only matters where the heap is above 2 GiB: in the guest, whose 3 GiB user address space puts it at 0xb7…, and on CI, where the 32-bit container runs natively on an x86_64 kernel. Under emulation, as on Apple silicon, qemu-user maps the program low, so pnpm test:ruby passes there without it; CI’s run is the one that catches this kind of bug. (test.rb’s marshal case crashed at line 922.)

sample/rbc.rb, installed as rbc-1.2.6, is irb’s forerunner, by the same author. It tries to use readline, which 1.2 doesn’t have yet (it came with 1.3), so there’s no line editing, and Ctrl-C quits it.

Patches