Debian Bug report logs -
#472702
ruby1.8: thread implementation has "a couple serious bugs"
Reported by: Matt Zagrabelny <mzagrabe@d.umn.edu>
Date: Tue, 25 Mar 2008 21:15:07 UTC
Severity: normal
Tags: moreinfo, unreproducible
Found in version ruby1.8/1.8.6.114-2
Done: Matt Zagrabelny <mzagrabe@d.umn.edu>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, akira yamada <akira@debian.org>:
Bug#472702; Package ruby1.8.
(full text, mbox, link).
Acknowledgement sent to Matt Zagrabelny <mzagrabe@d.umn.edu>:
New Bug report received and forwarded. Copy sent to akira yamada <akira@debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: ruby1.8
Version: 1.8.6.114-2
Severity: normal
According to a discussion thread on Google's ruby-talk [1], there are "a
couple serious bugs" in Ruby's thread implementation.
Please consider rebuilding the package using the thread.c file found at
[2].
If this fix is done, then there will be no need to package
libfastthread-ruby and bug #472500 can be closed.
[1] http://groups.google.com/group/ruby-talk-google/browse_thread/thread/7933e7e987dad1c3
[2] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ext/thread/thread.c?revision=12278
Thanks,
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ruby1.8 depends on:
ii libc6 2.7-9 GNU C Library: Shared libraries
ii libruby1.8 1.8.6.114-2 Libraries necessary to run Ruby 1.
ruby1.8 recommends no packages.
-- no debconf information
Information forwarded to debian-bugs-dist@lists.debian.org, akira yamada <akira@debian.org>:
Bug#472702; Package ruby1.8.
(full text, mbox, link).
Acknowledgement sent to Lucas Nussbaum <lucas@lucas-nussbaum.net>:
Extra info received and forwarded to list. Copy sent to akira yamada <akira@debian.org>.
(full text, mbox, link).
Message #10 received at 472702@bugs.debian.org (full text, mbox, reply):
tags 472702 + moreinfo unreproducible
thanks
On 25/03/08 at 16:12 -0500, Matt Zagrabelny wrote:
> Package: ruby1.8
> Version: 1.8.6.114-2
> Severity: normal
>
>
> According to a discussion thread on Google's ruby-talk [1], there are "a
> couple serious bugs" in Ruby's thread implementation.
Please provide precise pointers to the bugs (or code to reproduce them).
The mailing list thread you are pointing to is very old, and only
contains vague accusations.
> Please consider rebuilding the package using the thread.c file found at
> [2].
This version is older than the one in the package. So no.
> If this fix is done, then there will be no need to package
> libfastthread-ruby and bug #472500 can be closed.
>
> [1] http://groups.google.com/group/ruby-talk-google/browse_thread/thread/7933e7e987dad1c3
> [2] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ext/thread/thread.c?revision=12278
--
| Lucas Nussbaum
| lucas@lucas-nussbaum.net http://www.lucas-nussbaum.net/ |
| jabber: lucas@nussbaum.fr GPG: 1024D/023B3F4F |
Tags added: moreinfo, unreproducible
Request was from Lucas Nussbaum <lucas@lucas-nussbaum.net>
to control@bugs.debian.org.
(Tue, 25 Mar 2008 23:15:04 GMT) (full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#472702; Package ruby1.8.
(full text, mbox, link).
Acknowledgement sent to akira yamada <akira@debian.org>:
Extra info received and forwarded to list.
(full text, mbox, link).
Message #17 received at 472702@bugs.debian.org (full text, mbox, reply):
Hi,
>> According to a discussion thread on Google's ruby-talk [1], there are "a
>> couple serious bugs" in Ruby's thread implementation.
>
> Please provide precise pointers to the bugs (or code to reproduce them).
> The mailing list thread you are pointing to is very old, and only
> contains vague accusations.
I don't know detail of the problem.
But Capistrano 2.1 print outs the following message:
You are running Ruby 1.8.6, which has a bug in its threading implementation.
You are liable to encounter deadlocks running Capistrano, unless you install
the fastthread library, which is available as a gem:
I think that it is a case of "a couple serious bugs".
(I couldn't find detail of the reason of
the message from the svn-repo of Capistrano.)
I tested about this message using unit-tests of Capistrano 2.1.
When I run the tests with ruby1.8_1.8.6-2,
the result was the following:
$ rake
[...]
Loaded suite /usr/lib/ruby/1.8/rake/rake_test_loader
Started
... [...] ...deadlock 0xb76afb14: sleep:- - ./test/../lib/capistrano/gateway.rb:57
deadlock 0xb7c3a700: sleep:- (main) - ./test/../lib/capistrano/gateway.rb:64
./test/../lib/capistrano/gateway.rb:64:in `wait': Thread(0xb7c3a700): deadlock (fatal)
And when I run it with ruby1.8_1.8.6.36-1 or ruby1.8_1.8.6.111-2,
the result was all OK.
--
ay
Information forwarded to debian-bugs-dist@lists.debian.org, akira yamada <akira@debian.org>:
Bug#472702; Package ruby1.8.
(full text, mbox, link).
Acknowledgement sent to Matt Zagrabelny <mzagrabe@d.umn.edu>:
Extra info received and forwarded to list. Copy sent to akira yamada <akira@debian.org>.
(full text, mbox, link).
Message #22 received at 472702@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi,
> I don't know detail of the problem.
Unfortunately neither do I. I was taking Capistrano and the ruby-talk
thread's "word" that there was a problem.
> But Capistrano 2.1 print outs the following message:
>
> You are running Ruby 1.8.6, which has a bug in its threading implementation.
> You are liable to encounter deadlocks running Capistrano, unless you install
> the fastthread library, which is available as a gem:
>
> I think that it is a case of "a couple serious bugs".
> (I couldn't find detail of the reason of
> the message from the svn-repo of Capistrano.)
>
> I tested about this message using unit-tests of Capistrano 2.1.
>
> When I run the tests with ruby1.8_1.8.6-2,
> the result was the following:
>
> $ rake
> [...]
> Loaded suite /usr/lib/ruby/1.8/rake/rake_test_loader
> Started
> ... [...] ...deadlock 0xb76afb14: sleep:- - ./test/../lib/capistrano/gateway.rb:57
> deadlock 0xb7c3a700: sleep:- (main) - ./test/../lib/capistrano/gateway.rb:64
> ./test/../lib/capistrano/gateway.rb:64:in `wait': Thread(0xb7c3a700): deadlock (fatal)
>
> And when I run it with ruby1.8_1.8.6.36-1 or ruby1.8_1.8.6.111-2,
> the result was all OK.
So the current version of ruby1.8 looks good. I will close the bug.
Thanks for your time.
Whoever packages Capistrano for Debian should then disable the warning
about fastthread, since it is fixed in ruby1.8.
--
Matt Zagrabelny - mzagrabe@d.umn.edu - (218) 726 8844
University of Minnesota Duluth
Information Technology Systems & Services
PGP key 1024D/84E22DA2 2005-11-07
Fingerprint: 78F9 18B3 EF58 56F5 FC85 C5CA 53E7 887F 84E2 2DA2
He is not a fool who gives up what he cannot keep to gain what he cannot
lose.
-Jim Elliot
[signature.asc (application/pgp-signature, inline)]
Reply sent to Matt Zagrabelny <mzagrabe@d.umn.edu>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Matt Zagrabelny <mzagrabe@d.umn.edu>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #27 received at 472702-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Bug was already fixed in Debian archive.
--
Matt Zagrabelny - mzagrabe@d.umn.edu - (218) 726 8844
University of Minnesota Duluth
Information Technology Systems & Services
PGP key 1024D/84E22DA2 2005-11-07
Fingerprint: 78F9 18B3 EF58 56F5 FC85 C5CA 53E7 887F 84E2 2DA2
He is not a fool who gives up what he cannot keep to gain what he cannot
lose.
-Jim Elliot
[signature.asc (application/pgp-signature, inline)]
Information forwarded to debian-bugs-dist@lists.debian.org, akira yamada <akira@debian.org>:
Bug#472702; Package ruby1.8.
(full text, mbox, link).
Acknowledgement sent to Daigo Moriwaki <beatles@sgtpepper.net>:
Extra info received and forwarded to list. Copy sent to akira yamada <akira@debian.org>.
(full text, mbox, link).
Message #32 received at 472702@bugs.debian.org (full text, mbox, reply):
Hi Matt,
Matt Zagrabelny wrote:
>> I don't know detail of the problem.
>
> Unfortunately neither do I. I was taking Capistrano and the ruby-talk
> thread's "word" that there was a problem.
I asked ruby-dev and Nakada-san replied.
He said that Ruby 1.8.6 p110 was merged (backport) with fastthread, and that the
current situation is opposite. fastthread 1.0.1 does not yet fix an issue that
Ruby 1.8.6 p110 has fixed. You should not use fastthread 1.0.1 with Ruby 1.8.6
p110 or later. So, you don't have to care about fastthread. Use Debian's latest
Ruby package.
Sorry, I don't know what the issue is, though.
Regards,
Daigo
--
Daigo Moriwaki
beatles at sgtpepper dot net
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Thu, 24 Apr 2008 07:26:07 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Jan 11 20:37:33 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.