[#3726] Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...>

Hi --

15 messages 2004/11/12
[#3749] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3751] Re: Fixnum#clone and Float#clone raise different exceptions — Yukihiro Matsumoto <matz@...> 2004/11/16

Hi,

[#3752] Re: Fixnum#clone and Float#clone raise different exceptions — "David A. Black" <dblack@...> 2004/11/16

Hi --

[#3785] The latest 1.8.2 cvs prints parse error when starting extension compiling — Yukihiro Matsumoto <matz@...>

Hi,

13 messages 2004/11/23
[#3787] Re: The latest 1.8.2 cvs prints parse error when starting extension compiling — Johan Holmberg <holmberg@...> 2004/11/23

Possible Bug: Running thread blocks access to /proc/loadavg

From: Christian Reiniger <creinig@...>
Date: 2004-11-23 20:21:24 UTC
List: ruby-core #3798
Following code:

----------
puts "Outside: " + File.read('/proc/loadavg')

t = Thread.new {
        sleep 3
}

puts "Outside 2: " + File.read('/proc/loadavg')
-----------

On my system, the "Outside 2:..." is never printed (ruby just hangs with 
no CPU utilization). Just the existence of some spawned thread seems to 
prevent access to /proc/loadavg.
Other files (e.g. /proc/cpuinfo) can be accessed just fine.
Putting the thing into the spawned thread generates the same behavior 
(hang on the second File.read).
Using File.open with File::NONBLOCK instead of File.read does not change 
anything.

chris@chrisbig > ruby --version
 ruby 1.8.2 (2004-11-06) [i686-linux]
chris@chrisbig > uname -a
 Linux chrisbig 2.6.9 #3 Tue Nov 23 21:28:15 CET 2004 i686 AMD Athlon(tm) 
XP 2800+ AuthenticAMD GNU/Linux
chris@chrisbig > esearch -F -c dev-lang/ruby
 [ I] ruby (1.8.2_pre3):  An object-oriented scripting language

Same behavior with kernel 2.6.1-rc1.

On the following machine it works fine:

creinig@munin:~$ ruby --version
 ruby 1.8.2 (2004-11-03) [i386-linux]
creinig@munin:~$ uname -a
 Linux munin 2.4.27-1-386 #1 Fri Sep 3 06:24:46 UTC 2004 i686 GNU/Linux

A strace dump (from a run on the first machine) is available at 
http://sunsite.dk/~creinig/tmp/loadavg-strace

Any idea?

-- 
Christian Reiniger

Install once, run forever. Linux.

In This Thread

Prev Next