Package: ruby1.9.1
Version: 1.9.1.243-1
Hi,
Several tests fail during ruby1.9.1's build on KFreeBSD, both on i386
and amd64:
#226 test_io.rb:11:in `<top (required)>':
begin
require "io/nonblock"
r, w = IO.pipe
w.nonblock = true
w.write_nonblock("a" * 100000)
w.nonblock = false
t1 = Thread.new { w.write("b" * 4096) }
t2 = Thread.new { w.write("c" * 4096) }
sleep 0.5
r.sysread(4096).length
sleep 0.5
r.sysread(4096).length
t1.join
t2.join
rescue LoadError
end
#=> not finished in 10 seconds [ruby-dev:32566]
Unreproducible on Linux. Might be caused by slightly different kernel semantics on Freebsd.
#913 test_thread.rb:219:in `<top (required)>':
open("zzz.rb", "w") do |f|
f.puts <<-END
begin
Thread.new { fork { GC.start } }.join
pid, status = Process.wait2
$result = status.success? ? :ok : :ng
rescue NotImplementedError
$result = :ok
end
END
end
require "zzz.rb"
$result
#=> "" (expected "ok")
Uh?
#916 test_thread.rb:254:in `<top (required)>':
STDERR.reopen(STDOUT)
exec "/"
#=> killed by signal 32
Same: uh? What's signal 32 on FreeBSD?
Appropriate steps to investigate those:
- rebuild ruby1.9.1 with DEB_BUILD_OPTIONS=nocheck (so the test suite won't be
executed)
- try the attached scripts with ruby1.9.1 and investigate
Help from BSD porters is welcomed;)
--
| Lucas Nussbaum
| lucas@lucas-nussbaum.net http://www.lucas-nussbaum.net/ |
| jabber: lucas@nussbaum.fr GPG: 1024D/023B3F4F |
Attachment:
t226.rb
Description: application/ruby
Attachment:
t913.rb
Description: application/ruby
Attachment:
t916.rb
Description: application/ruby