[BUG] unknown node type 0

Hello,

From time to time, one ruby cgi scripts gives me the message:

[BUG] unknown node type 0
ruby 1.8.0 (2003-03-03) [i686-linux]

Observations:

  • strikes really randomly: the system run perfectly for days, then this
    message comes

  • seems to strike only when there is a “here document” (x = <<- EOF) somewhere
    in the script.

  • goes away if I add / remove empty lines around the “here document”, or in
    fact do some completely unrelated formatting stuff.

  • never shows up on my production machine (good :wink: but only on my test
    machine. May be related to different compiler / libraries:

  • gcc 2.95.3 + libc-2.2.5 : no problem
  • gcc 3.2.2 + libc-2.3.1 : on the machine which has that bug.
    The two systems have exactly the same Ruby 1.8.0 preview 2, compiled from
    source without any fancy option (./configure ; make ; make install).

Is there anybody having the same problem so that we can share observations and
eventually make a sensible bug report?

Francois

Hi,

···

In message “[BUG] unknown node type 0” on 03/04/09, Francois GORET fg@siamecommerce.com writes:

From time to time, one ruby cgi scripts gives me the message:

[BUG] unknown node type 0
ruby 1.8.0 (2003-03-03) [i686-linux]

There are some reports like this from gcc 3.x users. I’m not sure
this is caused by gcc 3.x bug or ruby 1.8 bug. No clue yet.

						matz.

I had the same problem with several Ruby versions (1.6.7, 1.6.8,
1.8.0-pre1, 1.8.0-cvs). Now I have 1.8.0-pre2 and so far was unable to
reproduce it. When I was experiencing the bug, adding empty lines worked
for me, too. I sent the program causing the bug to appear to Guy, but he
was unable to reproduce it :confused:

Ruby was compiled using various versions of gcc 3.x (starting with 3.1
IIRC) and glibs 2.2/2.3.

The good thing is, I notice that the bug appears more and more rarely
with each Ruby release.

···

On Wed, 9 Apr 2003 14:07:54 +0900, Francois GORET wrote:

Is there anybody having the same problem so that we can share observations and
eventually make a sensible bug report?


Marek Janukowicz

If anything, it would be a bug in 1.6.8 too.

[ruby-talk:66166]

···

On Wed, Apr 09, 2003 at 04:25:21PM +0900, Yukihiro Matsumoto wrote:

Hi,

In message “[BUG] unknown node type 0” > on 03/04/09, Francois GORET fg@siamecommerce.com writes:

From time to time, one ruby cgi scripts gives me the message:

[BUG] unknown node type 0
ruby 1.8.0 (2003-03-03) [i686-linux]

There are some reports like this from gcc 3.x users. I’m not sure
this is caused by gcc 3.x bug or ruby 1.8 bug. No clue yet.


_ _

__ __ | | ___ _ __ ___ __ _ _ __
'_ \ / | __/ __| '_ _ \ / ` | ’ \
) | (| | |
__ \ | | | | | (| | | | |
.__/ _,
|_|/| || ||_,|| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

Sex, Drugs & Linux Rules
– MaDsen Wikholm, mwikholm@at8.abo.fi

Hi,

From time to time, one ruby cgi scripts gives me the message:

[BUG] unknown node type 0
ruby 1.8.0 (2003-03-03) [i686-linux]

There are some reports like this from gcc 3.x users. I’m not sure
this is caused by gcc 3.x bug or ruby 1.8 bug. No clue yet.

I had problems on Solaris building 1.8.0 snapshots with less that
3.x. I succeeded with 3.2.2. Do you have values for x in “3.x”
that are known to fail? Have you any test cases for this bug so I
can try to reproduce it on the machines for which I have built a 1.8
snapshot?

  					matz.
    Hugh
···

On Wed, 9 Apr 2003, Yukihiro Matsumoto wrote:

In message “[BUG] unknown node type 0” > on 03/04/09, Francois GORET fg@siamecommerce.com writes:

FWIW, I’m using Ruby 1.6.8 compiled with gcc 3.2.1 and I don’t see this
message except when I have a bug in one of my extensions.

Exactly which combinations of gcc and ruby versions seem to be causing
the problem?

Paul

···

On Wed, Apr 09, 2003 at 04:25:21PM +0900, Yukihiro Matsumoto wrote:

In message “[BUG] unknown node type 0” > on 03/04/09, Francois GORET fg@siamecommerce.com writes:

[BUG] unknown node type 0
ruby 1.8.0 (2003-03-03) [i686-linux]

There are some reports like this from gcc 3.x users. I’m not sure
this is caused by gcc 3.x bug or ruby 1.8 bug. No clue yet.

Or perhaps your subconscious mind has learned how to write code that
doesn’t cause the error to occur. :slight_smile:

Paul

···

On Thu, Apr 10, 2003 at 07:23:56PM +0900, Marek Janukowicz wrote:

The good thing is, I notice that the bug appears more and more rarely
with each Ruby release.

Hi,

···

In message “Re: [BUG] unknown node type 0” on 03/04/09, Hugh Sasse Staff Elec Eng hgs@dmu.ac.uk writes:

I had problems on Solaris building 1.8.0 snapshots with less that
3.x. I succeeded with 3.2.2. Do you have values for x in “3.x”
that are known to fail? Have you any test cases for this bug so I
can try to reproduce it on the machines for which I have built a 1.8
snapshot?

I’m using gcc 3.2.3 without any problem. But I can’t tell whether
3.2.3 is OK, or just lucky I am. Any report is welcome.

						matz.

In my case Ruby 1.6.8 w/ GCC 3.2.1ds6-1.
I will try with 3.2.3ds5-0pre6.

···

On Wed, Apr 09, 2003 at 10:32:21PM +0900, Paul Brannan wrote:

On Wed, Apr 09, 2003 at 04:25:21PM +0900, Yukihiro Matsumoto wrote:

In message “[BUG] unknown node type 0” > > on 03/04/09, Francois GORET fg@siamecommerce.com writes:

[BUG] unknown node type 0
ruby 1.8.0 (2003-03-03) [i686-linux]

There are some reports like this from gcc 3.x users. I’m not sure
this is caused by gcc 3.x bug or ruby 1.8 bug. No clue yet.

FWIW, I’m using Ruby 1.6.8 compiled with gcc 3.2.1 and I don’t see this
message except when I have a bug in one of my extensions.

Exactly which combinations of gcc and ruby versions seem to be causing
the problem?


_ _

__ __ | | ___ _ __ ___ __ _ _ __
'_ \ / | __/ __| '_ _ \ / ` | ’ \
) | (| | |
__ \ | | | | | (| | | | |
.__/ _,
|_|/| || ||_,|| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

If you really want pure ASCII, save it as text… or browse
it with your favorite browser…
– Alexandre Maret amaret@infomaniak.ch

Had that bug with Ruby 1.8.0 preview 2, or versions from CVS, compiled with
gcc-3.2.2. I use mysql-ruby-2.4.3b, maybe a bug in mysql-ruby?

Since last day, I’ve recompiled all ruby and mysql-ruby with gcc-2.95.3, and
no more bug so far. I’m really puzzled :frowning:

Francois

···

On Wednesday 09 April 2003 20:32, Paul Brannan wrote:

On Wed, Apr 09, 2003 at 04:25:21PM +0900, Yukihiro Matsumoto wrote:

In message “[BUG] unknown node type 0” > > > > on 03/04/09, Francois GORET fg@siamecommerce.com writes:

[BUG] unknown node type 0
ruby 1.8.0 (2003-03-03) [i686-linux]

There are some reports like this from gcc 3.x users. I’m not sure
this is caused by gcc 3.x bug or ruby 1.8 bug. No clue yet.

FWIW, I’m using Ruby 1.6.8 compiled with gcc 3.2.1 and I don’t see this
message except when I have a bug in one of my extensions.

Exactly which combinations of gcc and ruby versions seem to be causing
the problem?

Paul

Hi,

I had problems on Solaris building 1.8.0 snapshots with less that
3.x. I succeeded with 3.2.2. Do you have values for x in “3.x”
that are known to fail? Have you any test cases for this bug so I
can try to reproduce it on the machines for which I have built a 1.8
snapshot?

I’m using gcc 3.2.3 without any problem. But I can’t tell whether
3.2.3 is OK, or just lucky I am. Any report is welcome.

Just to clarify: Is that really 3.2.3?
http://gcc.gnu.org/index.html
would suggest this is not out yet?
(Meanwhile I’m trying to rebuild rubicon on an alpha to get some
more reports out to you, on how that performs.)

  					matz.
    Hugh
···

On Wed, 9 Apr 2003, Yukihiro Matsumoto wrote:

In message “Re: [BUG] unknown node type 0” > on 03/04/09, Hugh Sasse Staff Elec Eng hgs@dmu.ac.uk writes:

I believe he’s using the following
batsman@kodos:~$ apt-cache show gcc-3.2
Package: gcc-3.2
Priority: standard
Section: devel
Installed-Size: 5504
Maintainer: Debian GCC maintainers debian-gcc@lists.debian.org
Architecture: i386
Source: gcc-3.2 (1:3.2.3ds6-0pre7)
Version: 1:3.2.3-0pre7

···

On Wed, Apr 09, 2003 at 08:06:35PM +0900, Hugh Sasse Staff Elec Eng wrote:

On Wed, 9 Apr 2003, Yukihiro Matsumoto wrote:

I’m using gcc 3.2.3 without any problem. But I can’t tell whether
3.2.3 is OK, or just lucky I am. Any report is welcome.

Just to clarify: Is that really 3.2.3?
GCC, the GNU Compiler Collection - GNU Project
would suggest this is not out yet?
(Meanwhile I’m trying to rebuild rubicon on an alpha to get some
more reports out to you, on how that performs.)

       ===========

Debian sometimes packages things directly from the CVS.


_ _

__ __ | | ___ _ __ ___ __ _ _ __
'_ \ / | __/ __| '_ _ \ / ` | ’ \
) | (| | |
__ \ | | | | | (| | | | |
.__/ _,
|_|/| || ||_,|| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

  • gb notes that fdisk thinks his cdrom can store one terabyte
    – Seen on #Linux

I’m using gcc 3.2.3 without any problem. But I can’t tell whether
3.2.3 is OK, or just lucky I am. Any report is welcome.

Just to clarify: Is that really 3.2.3?

I believe he’s using the following
[…]
Source: gcc-3.2 (1:3.2.3ds6-0pre7)
Version: 1:3.2.3-0pre7
===========

Debian sometimes packages things directly from the CVS.

OIC. Thanks.

    Hugh
···

On Wed, 9 Apr 2003, Mauricio [iso-8859-1] Fernández wrote:

On Wed, Apr 09, 2003 at 08:06:35PM +0900, Hugh Sasse Staff Elec Eng wrote:

On Wed, 9 Apr 2003, Yukihiro Matsumoto wrote: