[BUG] with ruby 1.8.1 on mingw

T

Tim Sutherland

I have a short (40 line) program which gives the following message when run

----
$RUBYLIB=fooblah ruby demobug.rb
[BUG] unknown node type 0
ruby 1.8.1 (2003-10-31) [i386-mingw32]


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
----


The program `require`s no libraries other than 'test/unit'. I have put
the file on a website rather than listing it here, as changes in whitespace
result in the program running "successfully" (actually, it raises an
exception, but that's the expected behaviour since it tries to use a
constant which is not defined).

The file is at
http://homepages.ihug.co.nz/~umbrella/demobug.rb

If the RUBYLIB variable is not set, then the [BUG] does not occur. This may
just be a coincidence. (NB: There isn't a directory called 'fooblah').


When run like this, $: is
["fooblah",
"S:/tim/msys/1.0/local/lib/ruby/site_ruby/1.8",
"S:/tim/msys/1.0/local/lib/ruby/site_ruby/1.8/i386-msvcrt",
"S:/tim/msys/1.0/local/lib/ruby/site_ruby",
"S:/tim/msys/1.0/local/lib/ruby/1.8",
"S:/tim/msys/1.0/local/lib/ruby/1.8/i386-mingw32",
"."]

I've checked, and the only test/unit I have in that path is the one
distributed with ruby.

The platform is Windows XP with a Ruby I build from msys/mingw. I believe it
is 1.8.1-preview2 (not sure about that).

msys is version 1.0.8.
mingw is version 2.0.0.

gcc is version 3.2 (mingw special 20020817-1).
 
R

Robert Klemme

Tim Sutherland said:
I have a short (40 line) program which gives the following message when run

----
$RUBYLIB=fooblah ruby demobug.rb
[BUG] unknown node type 0
ruby 1.8.1 (2003-10-31) [i386-mingw32]


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
----


The program `require`s no libraries other than 'test/unit'. I have put
the file on a website rather than listing it here, as changes in whitespace
result in the program running "successfully" (actually, it raises an
exception, but that's the expected behaviour since it tries to use a
constant which is not defined).

The file is at
http://homepages.ihug.co.nz/~umbrella/demobug.rb

If the RUBYLIB variable is not set, then the [BUG] does not occur. This may
just be a coincidence. (NB: There isn't a directory called 'fooblah').


When run like this, $: is
["fooblah",
"S:/tim/msys/1.0/local/lib/ruby/site_ruby/1.8",
"S:/tim/msys/1.0/local/lib/ruby/site_ruby/1.8/i386-msvcrt",
"S:/tim/msys/1.0/local/lib/ruby/site_ruby",
"S:/tim/msys/1.0/local/lib/ruby/1.8",
"S:/tim/msys/1.0/local/lib/ruby/1.8/i386-mingw32",
"."]

I've checked, and the only test/unit I have in that path is the one
distributed with ruby.

The platform is Windows XP with a Ruby I build from msys/mingw. I believe it
is 1.8.1-preview2 (not sure about that).

msys is version 1.0.8.
mingw is version 2.0.0.

gcc is version 3.2 (mingw special 20020817-1).

This is what I get:

Robert@Babelfish2 /cygdrive/c/TEMP
$ ruby demobug.rb
Loaded suite demobug
Started
E
Finished in 0.0 seconds.

1) Error!!!
test_closest_year(TC_Type_Conversions):
NameError: uninitialized constant TC_Type_Conversions::LocalImport
demobug.rb:11:in `setup'
demobug.rb:14

1 tests, 0 assertions, 0 failures, 1 errors

Robert@Babelfish2 /cygdrive/c/TEMP
$ uname -a
CYGWIN_NT-5.1 Babelfish2 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown
unknown C
ygwin

Robert@Babelfish2 /cygdrive/c/TEMP
$

Regards

robert
 
T

ts

T> [BUG] unknown node type 0
T> ruby 1.8.1 (2003-10-31) [i386-mingw32]

Try with the CVS version of ruby


Guy Decoux
 
T

Tim Sutherland

T> [BUG] unknown node type 0
T> ruby 1.8.1 (2003-10-31) [i386-mingw32]

Try with the CVS version of ruby

Thank you Guy. With Ruby "2003-12-17", I cannot produce the problem anymore.
 

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,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top