On Fri, 15 Aug 2003 12:35:32 +0900 nobu.nokada / softhome.net wrote: > Hi, > > At Fri, 15 Aug 2003 11:37:42 +0900, > Ryan Pavlik wrote: > > printf("id2ref - %d, %d\n", BUILTIN_TYPE(ptr), RBASIC(ptr)->klass); > > > > When running: > > > > id2ref - 63, 135382017 > > /usr/local/encap/mephle-0.8.0/share/mephle/Driver/Storage_cache.rb:36: > > [BUG] Segmentation fault > > BUILTIN_TYPE 63 is T_NODE, which must not appear in Ruby. Try > with changing the patched line as following. > > if (BUILTIN_TYPE(ptr) == 0 || BUILTIN_TYPE(ptr) >= T_BLKTAG || > RBASIC(ptr)->klass == 0) { This fixes it. Thanks. -- Ryan Pavlik <rpav / users.sf.net> "I distinctly remember dancing on your grave." - 8BT