[BUG] with ruby 1.8.1 on mingw

“Tim Sutherland” timsuth@ihug.co.nz schrieb im Newsbeitrag
news:slrnbtvj6e.gkn.timsuth@europa.zone…

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 requires 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