[BUG] unknown node type 0

Discussion in 'Ruby' started by Joe Van Dyk, Dec 3, 2004.

  1. Joe Van Dyk

    Joe Van Dyk Guest

    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!")
     
    Joe Van Dyk, Dec 3, 2004
    #1
    1. Advertising

  2. Joe Van Dyk

    Jamis Buck Guest

    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

    http://www.jamisbuck.org/jamis
     
    Jamis Buck, Dec 4, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    1,654
  2. Hal Fulton

    [BUG] unknown node type 0

    Hal Fulton, Sep 3, 2003, in forum: Ruby
    Replies:
    12
    Views:
    358
  3. Guillaume Marcais

    : [BUG] unknown node type 0

    Guillaume Marcais, Apr 6, 2004, in forum: Ruby
    Replies:
    1
    Views:
    142
    Yukihiro Matsumoto
    Apr 6, 2004
  4. Andrew Walrond

    [BUG] unknown node type 0. Very Weird.

    Andrew Walrond, Sep 4, 2004, in forum: Ruby
    Replies:
    6
    Views:
    186
    Andrew Walrond
    Sep 16, 2004
  5. Wybo Dekker

    [BUG] unknown node type 0

    Wybo Dekker, Nov 29, 2005, in forum: Ruby
    Replies:
    4
    Views:
    101
    Wybo Dekker
    Nov 29, 2005
Loading...

Share This Page