Issue #3532 has been updated by Paul Donohue.


Sample output:


ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
Compiled using "autoconf ; ./configure ; make" with no additional options:
$ ./ruby ~/Work/Projects/crash.rb
/home/psd/Work/Projects/crash.rb:14/home/psd/Work/Projects/crash.rb:4: [BUG] rb_gc_mark(): unknown data type 0x0(0x7fa5bf783e7c) non object
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
  
Aborted
$


ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
Installed via the Ubuntu 'ruby1.8' package does not appear to have a problem, however downloading the source and patches used to generate the package, and manually compiling them using "autoconf ; ./configure ; make" with no additional options does crash:
$ ./ruby ~/Work/Projects/crash.rb 
/home/psd/Work/Projects/crash.rb:14/home/psd/Work/Projects/crash.rb:4: [BUG] Segmentation fault
ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]

Aborted
$


ruby 1.8.7 (2010-04-19 patchlevel 253) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.02
Compiled using "autoconf ; ./configure ; make" with no additional options:
$ ./ruby ~/Work/Projects/crash.rb_
  /home/psd/Work/Projects/crash.rb:14 ----------------- Register state dump ----------------------
  rax = 0x00000000007a76e0  rbx    = 0x00000000007a7628  rcx = 0x00000000007a76d0  rdx = 0x00000000000013b9
  rdi = 0x0000000000000000  rsi    = 0x0000000000000000  rbp = 0x00000000007a7480  rsp = 0x0000000044e71b80
  r8  = 0x0000000000000001  r9     = 0x000000004440ce68  r10 = 0x00000000007a76d0  r11 = 0x0000000000000080
  r12 = 0x0000000000000018  r13    = 0x0000000000000000  r14 = 0x0000000000000000  r15 = 0x0000000000000000
  rip = 0x0000000000411326  rflags = 0x0000000000010246  cs  = 0x0000000000000033  fs  = 0x00000000007a7628
  gs  = 0x00000000440c2af0  
  /home/psd/Work/Projects/crash.rb:4: [BUG] Segmentation fault
  ruby 1.8.7 (2010-04-19 patchlevel 253) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.02
  
  Aborted
$


ruby 1.8.7 (2010-04-19 patchlevel 253) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.02
Installed via ruby-enterprise_1.8.7-2010.02_amd64_ubuntu10.04.deb:
$ ./ruby ~/Work/Projects/crash.rb 
/home/psd/Work/Projects/crash.rb:14
(Process is stuck and is running at 100% CPU, 'kill -TERM' will not kill the process, a 'kill -9' is required)


ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux]
Compiled using "autoconf ; ./configure ; make" with no additional options does not appear to be affected:
$ ./ruby ~/Work/Projects/crash.rb 
/home/psd/Work/Projects/crash.rb:14:in `block in <main>': MyError
$
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3532

----------------------------------------
http://redmine.ruby-lang.org