Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48426 - rexml exception using test/unit with ruby-1.8.1-r3
Summary: rexml exception using test/unit with ruby-1.8.1-r3
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
Depends on:
Reported: 2004-04-19 19:58 UTC by Steven Jenkins
Modified: 2004-04-24 14:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

ruby test script (t.rb,468 bytes, text/plain)
2004-04-19 20:00 UTC, Steven Jenkins

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Jenkins 2004-04-19 19:58:01 UTC
The attached script is a stripped-down test/unit driver. It runs correctly under Ruby 1.8.1-r2 and raises an exception under 1.8.1-r3. 

Reproducible: Always
Steps to Reproduce:
Run the attached script.

Actual Results:  
$ ruby -v
ruby 1.8.1 (2004-04-07) [i686-linux-gnu]
$ ruby t.rb
Loaded suite t
Finished in 0.032405 seconds.
/usr/lib/ruby/1.8/rexml/source.rb:189:in `pos': closed stream (IOError)
        from /usr/lib/ruby/1.8/rexml/source.rb:189:in `current_line'
        from /usr/lib/ruby/1.8/rexml/parseexception.rb:42:in `line'
        from /usr/lib/ruby/1.8/rexml/parseexception.rb:28:in `to_s'
        from /usr/lib/ruby/1.8/test/unit/error.rb:36:in `message'
        from /usr/lib/ruby/1.8/test/unit/error.rb:36:in `message'
        from /usr/lib/ruby/1.8/test/unit/error.rb:47:in `long_display'
        from /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:86:in `finished'
        from /usr/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:84:in
         ... 12 levels...
        from /usr/lib/ruby/1.8/test/unit/autorunner.rb:185:in `run'
        from /usr/lib/ruby/1.8/test/unit/autorunner.rb:13:in `run'
        from /usr/lib/ruby/1.8/test/unit.rb:273
        from /usr/lib/ruby/1.8/test/unit.rb:273

Expected Results:  
$ ruby -v
ruby 1.8.1 (2004-02-06) [i686-linux-gnu]
$ ruby t.rb
Loaded suite t
Finished in 0.056585 seconds.
1 tests, 0 assertions, 0 failures, 0 errors

$ emerge info
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9,
System uname: 2.4.22-gentoo-r5 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.9
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
CFLAGS="-march=pentium3 -O3 -pipe"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
FEATURES="autoaddcvs ccache distcc sandbox"
USE="X afs alsa apm arts avi berkdb bonobo cdr crypt cups distcc dvd encode esd
foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imap imlib java jpeg kde
ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis
opengl oss pam pda pdflib perl png postgres ppds python qt quicktime readline
ruby ruby18 sasl sdl slang spell sse ssl svga tcltk tcpd tetex truetype usb x86
xml2 xmms xv zlib"
Comment 1 Steven Jenkins 2004-04-19 20:00:09 UTC
Created attachment 29674 [details]
ruby test script
Comment 2 Steven Jenkins 2004-04-19 21:51:25 UTC
This appears to be an upstream problem. I just built the latest stable Ruby snapshot (2004-04-19) from and got the same exception. I'll report it to ruby-bugs.
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-04-20 08:28:37 UTC
Thanks for the report. I'll put this in my mind but I'd appreciate if you would report it back when this will be solved by the upstream. 
Comment 4 Steven Jenkins 2004-04-20 21:07:23 UTC
Submitted to ruby-bugs as
Comment 5 Sean E Russell 2004-04-23 07:04:10 UTC
I've been alerted about the bug, and am looking into it.
Comment 6 Sean E Russell 2004-04-23 08:50:44 UTC
Upstream is fixed
Comment 7 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-04-23 11:04:03 UTC
Thank you very much. I confirmed the problem is fixed now
and put a snapshot taken today into Portage (ruby-1.8.1-r4.ebuild).
Comment 8 Steven Jenkins 2004-04-23 23:04:30 UTC
I still have the problem with 1.8.1-r4. I don't think the fix made it into the 2004-04-23 snapshot.
Comment 9 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-04-24 05:32:45 UTC
Right, the problem is fixed in rexml 3.0.4 and once I removed rexml
3.0.4 the problem happened again. I added ruby-1.8.1-r5 shipped with
rexml 3.0.4. Please test it and see if the problem still persists.
Thanks for the reminder.
Comment 10 Steven Jenkins 2004-04-24 14:00:05 UTC
1.8.1-r5 fixes the problem. Thanks for the quick response.