Crash using latest ruby-1.9.0 snapshots, FXRuby

Anyone else see this? FXRuby’s glviewer.rb example crashes with two
recent 1.9.0 snapshots:

···

$ ruby glviewer.rb
Loading required GL library /usr/X11R6/lib/libGL.so.1.2
/usr/local/lib/ruby/site_ruby/1.9/fox/glshapes.rb:314: [BUG] unknown
type 0x22
ruby 1.9.0 (2004-04-27) [i686-linux]

zsh: abort ruby glviewer.rb

After updating the snapshot:


$ ruby glviewer.rb
Loading required GL library /usr/X11R6/lib/libGL.so.1.2
/usr/local/lib/ruby/site_ruby/1.9/fox/glshapes.rb:314: [BUG] unknown
type 0x22
ruby 1.9.0 (2004-05-09) [i686-linux]

zsh: abort ruby glviewer.rb

It was working fine with
ruby 1.9.0 (2004-03-09) [i686-linux]

This is with FXRuby-1.0.28, which I rebuilt after installing the
2004-04-27 ruby 1.9.0 snapshot.

The gdb backtrace is:

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 16384 (LWP 3772)]
0x410b7d77 in __driUtilCreateScreen ()
from /usr/X11R6/lib/modules/dri/i810_dri.so
(gdb) bt
#0 0x410b7d77 in __driUtilCreateScreen ()
from /usr/X11R6/lib/modules/dri/i810_dri.so
#1 0x410b7ac1 in __driUtilCreateScreen ()
from /usr/X11R6/lib/modules/dri/i810_dri.so
#2 0x410b7bd1 in __driUtilCreateScreen ()
from /usr/X11R6/lib/modules/dri/i810_dri.so
#3 0x4102a71b in __driUtilCreateScreen ()
from /usr/X11R6/lib/modules/dri/i810_dri.so
#4 0x40fb5fea in __driUtilCreateScreen ()
from /usr/X11R6/lib/modules/dri/i810_dri.so
#5 0x40fb8354 in __driUtilCreateScreen ()
from /usr/X11R6/lib/modules/dri/i810_dri.so
#6 0x40fb8799 in __driUtilCreateScreen ()
from /usr/X11R6/lib/modules/dri/i810_dri.so
#7 0x410bbe7a in __driUtilCreateScreen ()
from /usr/X11R6/lib/modules/dri/i810_dri.so
#8 0x40fa386b in __driUtilUpdateDrawableInfo ()
from /usr/X11R6/lib/modules/dri/i810_dri.so
#9 0x40f119ea in _glthread_SetTSD () from /usr/X11R6/lib/libGL.so.1.2
#10 0x40f11b1e in glXCreateContext () from /usr/X11R6/lib/libGL.so.1.2

Hi,

At Tue, 11 May 2004 14:13:32 +0900,
Joel VanderWerf wrote in [ruby-talk:99815]:

$ ruby glviewer.rb
Loading required GL library /usr/X11R6/lib/libGL.so.1.2
/usr/local/lib/ruby/site_ruby/1.9/fox/glshapes.rb:314: [BUG] unknown
type 0x22
ruby 1.9.0 (2004-05-09) [i686-linux]

zsh: abort ruby glviewer.rb

It was working fine with
ruby 1.9.0 (2004-03-09) [i686-linux]

The slight change on ruby.h at 2004-03-10 is very significant
to extension libraries. Make sure that the shared objects are
recompiled with latest ruby.h.

···


Nobu Nakada

Thanks, Nobu, I think that was it. I had rebuilt FXRuby, and the problem
remained, but I forgot to rebuild opengl (rbogl). After rebuilding
opengl, everything seems ok.

One glitch: extconf.rb in rbogl uses “PLATFORM”, rather than
“RUBY_PLATFORM”. I had to make this replacement to get extconf.rb to run.

Extension writers might want to make a note of this change.

···

nobu.nokada@softhome.net wrote:

Hi,

At Tue, 11 May 2004 14:13:32 +0900,
Joel VanderWerf wrote in [ruby-talk:99815]:

$ ruby glviewer.rb
Loading required GL library /usr/X11R6/lib/libGL.so.1.2
/usr/local/lib/ruby/site_ruby/1.9/fox/glshapes.rb:314: [BUG] unknown
type 0x22
ruby 1.9.0 (2004-05-09) [i686-linux]

zsh: abort ruby glviewer.rb

It was working fine with
ruby 1.9.0 (2004-03-09) [i686-linux]

The slight change on ruby.h at 2004-03-10 is very significant
to extension libraries. Make sure that the shared objects are
recompiled with latest ruby.h.