[BUG] unknown node type 0

J

Joe Van Dyk

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.

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!")
 
J

Jamis Buck

Joe said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top