Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 48426

Summary: rexml exception using test/unit with ruby-1.8.1-r3
Product: Gentoo Linux Reporter: Steven Jenkins <steven.jenkins>
Component: [OLD] DevelopmentAssignee: Gentoo Ruby Team <ruby>
Status: VERIFIED UPSTREAM    
Severity: normal    
Priority: High    
Version: 1.4_rc4   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ruby test script

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
Started
E
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
`each_with_index'
         ... 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
Started
.
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,
2.4.22-gentoo-r5)=================================================================
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
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
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"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
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 ruby-lang.org 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 http://www.ruby-lang.org/cgi-bin/ruby-bugs/incoming?id=1318
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.