Joe Van Dyk wrote:
> When I run the following program under Ruby 1.8.2 (2004-11-30) (I think it's
> preview 3), I get the following error message:
> 
> [BUG] unknown node type 0
> ruby 1.8.2 (2004-11-30) [i686-linux]
> 
> I've been running into this error seemingly randomly over the past month or
> so.  In the case of this program, removing a blank line at the end of the
> file fixed the problem.  This problem is getting fairly annoying.

Any chance you could try recompiling Ruby with a different version of 
gcc? Mine was built using gcc 3.3.4, and I've never had that problem. I 
did some mild stress tests of the script you included, and can't 
duplicate the problem, either. :(

- Jamis

> 
> System specs follow.  Let me know if I can provide more information.
> 
> fatire@~$ gcc -v
> Reading specs from
> /home/mz652c/mine-linux/lib/gcc/i686-pc-linux-gnu/3.4.2/specs
> Configured with: ../configure --prefix=/home/mz652c/mine-linux :
> (reconfigured) ../configure --prefix=/home/mz652c/mine-linux --without-java
> : (reconfigured)
> ..../configure --prefix=/home/mz652c/mine-linux --enable-languages=c,c++
> Thread model: posix
> gcc version 3.4.2
> 
> fatire@~$ uname -a
> Linux fatire.itdl.ds.boeing.com 2.4.20-8-960Hz #2 SMP Fri Oct 10 12:47:25
> PDT 2003 i686 i686 i386 GNU/Linux
> 
> 
> 
> 
> 
> 
> require 'needle'
> 
> class Bar
>     def foo(x)
>         puts "In Bar::foo"
>         puts "passed in #{x}"
>     end
> end
> 
> registry = Needle::Registry.new
> 
> registry.register(:bar) { Bar.new }
> 
> registry.intercept(:bar).with! { logging_interceptor }
> 
> 
> m = registry.bar
> 
> m.foo("hello!")
> 
> 
> 
> 
> 
> 
> 


-- 
Jamis Buck
jgb3 / email.byu.edu
http://www.jamisbuck.org/jamis