Bug #1344
closedsleep(0) sleeps forever on Mac OSX 10.4
Description
=begin
Instead of not sleeping at all, sleep(0) sleeps forever on Mac OSX 10.4. Multiruby output below:
$ uname -a
Darwin xxxx 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
$ multiruby -rtimeout -e 'Timeout::timeout(2) { sleep(0) }'
VERSION = jruby-1.1.6
CMD = ~/.multiruby/install/jruby-1.1.6/bin/ruby -rtimeout -e Timeout::timeout(2) { sleep(0) }
RESULT = 0
VERSION = jruby-1.2.0RC2
CMD = ~/.multiruby/install/jruby-1.2.0RC2/bin/ruby -rtimeout -e Timeout::timeout(2) { sleep(0) }
RESULT = 0
VERSION = 1.8.7-p72
CMD = ~/.multiruby/install/1.8.7-p72/bin/ruby -rtimeout -e Timeout::timeout(2) { sleep(0) }
RESULT = 0
VERSION = v1_8_6_110
CMD = ~/.multiruby/install/v1_8_6_110/bin/ruby -rtimeout -e Timeout::timeout(2) { sleep(0) }
RESULT = 0
VERSION = v1_9_1_0
CMD = ~/.multiruby/install/v1_9_1_0/bin/ruby -rtimeout -e Timeout::timeout(2) { sleep(0) }
-e:1:in sleep': execution expired (Timeout::Error) from -e:1:in
block in '
from -e:1:in `'
RESULT = 256
TOTAL RESULT = 1 failures out of 5
Passed: jruby-1.2.0RC2, jruby-1.1.6, v1_8_6_110, 1.8.7-p72
Failed: v1_9_1_0
=end
Updated by nobu (Nobuyoshi Nakada) over 15 years ago
=begin
Hi,
At Wed, 1 Apr 2009 17:33:51 +0900,
Sean O'Halpin wrote in [ruby-core:23094]:
Instead of not sleeping at all, sleep(0) sleeps forever on
Mac OSX 10.4. Multiruby output below:
Seems only on OS X 10.4. It worked fine on 10.5.
Could you tell where it stops?
--
Nobu Nakada
=end
Updated by akr (Akira Tanaka) over 15 years ago
=begin
It may be related to follows.
"pthread_cond_timedwait() bug in Tiger?"
http://lists.apple.com/archives/darwin-dev/2005/May/msg00148.html
http://lists.apple.com/archives/Darwin-dev/2005/Jun/msg00174.html
=end
Updated by nobu (Nobuyoshi Nakada) over 15 years ago
- Status changed from Open to Third Party's Issue
=begin
=end