[#24705] yaiba (blade clone) 0.0.1 — Hideto ISHIBASHI <hideto-i@...4u.or.jp>

石橋秀仁です。こんにちは。

29 messages 2000/09/03
[#24837] Re: yaiba (blade clone) 0.0.1 — TAKAHASHI Masayoshi <maki@...> 2000/09/06

高橋征義です。遅いフォローですみません。

[#24840] Re: yaiba (blade clone) 0.0.1 — Hideto ISHIBASHI <hideto-i@...4u.or.jp> 2000/09/06

石橋秀仁です。高橋さん、フォローありがとうございます。

[#24852] Re: yaiba (blade clone) 0.0.1 — TAKAHASHI Masayoshi <maki@...> 2000/09/07

高橋征義です。

[#24856] Re: yaiba (blade clone) 0.0.1 — Hideto ISHIBASHI <hideto-i@...4u.or.jp> 2000/09/07

石橋秀仁です。

[#24711] win32 で RDtool — Kazuhiro NISHIYAMA <zn@...>

http://www.geocities.co.jp/SiliconValley-Bay/4076/

95 messages 2000/09/03
[#24713] Re: win32 で RDtool — nobu.nakada@... 2000/09/03

なかだです。

[#24714] Re: win32 で RDtool — Kazuhiro NISHIYAMA <zn@...> 2000/09/03

nobu.nakada@nifty.ne.jp wrote:

[#24716] Re: win32 で RDtool — nobu.nakada@... 2000/09/03

なかだです。

[#24717] Re: win32 で RDtool — Kazuhiro NISHIYAMA <zn@...> 2000/09/03

message "[ruby-list:24715] Re: win32 で RDtool"

[#24728] Re: win32 で RDtool — rubikitch <rubikitch@...> 2000/09/04

From: Kazuhiro NISHIYAMA <zn@mbf.nifty.com>

[#24735] Re: win32 で RDtool — Tokita Kousui <ktokita@...> 2000/09/04

こんにちは、時田です。

[#24757] Re: win32 で RDtool — rubikitch <rubikitch@...> 2000/09/04

From: Tokita Kousui <ktokita@where-i.net>

[#24771] Re: win32 で RDtool — Tokita Kousui <ktokita@...> 2000/09/05

こんにちは、時田です。

[#24772] Re: win32 で RDtool — rubikitch <rubikitch@...> 2000/09/05

From: Tokita Kousui <ktokita@where-i.net>

[#24773] Re: win32 で RDtool — Kazuhiro NISHIYAMA <zn@...> 2000/09/05

rubikitch <rubikitch@ruby-lang.org> wrote:

[#24774] Re: win32 で RDtool — Tokita Kousui <ktokita@...> 2000/09/05

ども、時田です。

[#24779] Re: win32 で RDtool — Kazuhiro NISHIYAMA <zn@...> 2000/09/05

Tokita Kousui <ktokita@where-i.net> wrote:

[#24783] Re: win32 で RDtool — Tokita Kousui <ktokita@...> 2000/09/05

ども、時田です。

[#24814] Re: win32 で RDtool — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp> 2000/09/05

Toshです。

[#24729] Net::IMAP — Shugo Maeda <shugo@...>

前田です。

27 messages 2000/09/04
[#24743] Re: Net::IMAP — sho@... (TADA Tadashi) 2000/09/04

ただただしです。

[#24745] Re: Net::IMAP — Shugo Maeda <shugo@...> 2000/09/04

前田です。

[#24731] win32 Time zone — Kazuhiro Yoshida <moriq.kazuhiro@...>

もりきゅうです。

18 messages 2000/09/04
[#24732] Re: win32 Time zone — matz@... (Yukihiro Matsumoto) 2000/09/04

まつもと ゆきひろです

[#24744] Re: win32 Time zone — Takahiro Kambe <taca@...> 2000/09/04

In message <E13VsUr-0006Cd-00@ev.netlab.zetabits.co.jp>

[#24958] Installer test: ruby-1.6.0-preview — ARIMA Yasuhiro <fit0298@...>

有馬です。

47 messages 2000/09/17
[#24959] Re: Installer test: ruby-1.6.0-preview — Makoto Ozawa <ozawa@...> 2000/09/17

小沢です。

[#24961] Re: Installer test: ruby-1.6.0-preview — ARIMA Yasuhiro <fit0298@...> 2000/09/17

有馬です。

[#24963] Re: Installer test: ruby-1.6.0-preview — Makoto Ozawa <ozawa@...> 2000/09/17

小沢です。

[#24964] Re: Installer test: ruby-1.6.0-preview — ARIMA Yasuhiro <fit0298@...> 2000/09/18

有馬です。

[#24981] Re: Installer test: ruby-1.6.0-preview — ARIMA Yasuhiro <fit0298@...> 2000/09/19

有馬です。

[#24984] Re: Installer test: ruby-1.6.0-preview — Makoto Ozawa <ozawa@...> 2000/09/19

小沢です。

[#24990] Re: Installer test: ruby-1.6.0-preview — ARIMA Yasuhiro <fit0298@...> 2000/09/20

有馬です。

[#24992] Re: Installer test: ruby-1.6.0-preview — Makoto Ozawa <ozawa@...> 2000/09/20

小沢です。

[#24994] Re: Installer test: ruby-1.6.0-preview — ARIMA Yasuhiro <fit0298@...> 2000/09/20

有馬です。

[#25000] Re: Installer test: ruby-1.6.0-preview — Makoto Ozawa <ozawa@...> 2000/09/20

小沢です。Win98でテストしてます。

[#25001] Re: Installer test: ruby-1.6.0-preview — ARIMA Yasuhiro <fit0298@...> 2000/09/20

有馬です。

[#25005] Re: Installer test: ruby-1.6.0-preview — Makoto Ozawa <ozawa@...> 2000/09/20

小沢です。

[#25008] Re: Installer test: ruby-1.6.0-preview — ARIMA Yasuhiro <fit0298@...> 2000/09/20

有馬です。

[#25010] Re: Installer test: ruby-1.6.0-preview — Makoto Ozawa <ozawa@...> 2000/09/20

小沢です。

[#24973] How to check all Thread fin ? — Sakae Kobayashi <sakae@...>

小林栄と申します。

27 messages 2000/09/19
[#24974] Re: How to check all Thread fin ? — Shugo Maeda <shugo@...> 2000/09/19

前田です。

[#24982] Re: How to check all Thread fin ? — kjana@... (YANAGAWA Kazuhisa) 2000/09/19

In message <87k8c9m2az.wl@studly.netlab.co.jp>

[#24987] Re: How to check all Thread fin ? — matz@... (Yukihiro Matsumoto) 2000/09/19

まつもと ゆきひろです

[#25015] Re: How to check all Thread fin ? — keiju@... (石塚圭樹) 2000/09/20

けいじゅ@日本ラショナルソフトウェアです.

[#25022] Re: How to check all Thread fin ? — matz@... (Yukihiro Matsumoto) 2000/09/20

まつもと ゆきひろです

[#25013] file separator for Ruby in Windows — TAKAHASHI Masayoshi <maki@...>

高橋征義です。

36 messages 2000/09/20
[#25024] Re: file separator for Ruby in Windows — matz@... (Yukihiro Matsumoto) 2000/09/20

まつもと ゆきひろです

[#25058] Re: file separator for Ruby in Windows — TAKAHASHI Masayoshi <maki@...> 2000/09/21

高橋征義です。

[#25072] Re: file separator for Ruby in Windows — matz@... (Yukihiro Matsumoto) 2000/09/21

まつもと ゆきひろです

[#25089] Re: file separator for Ruby in Windows — 堀川 久 <vzw00011@...> 2000/09/22

こんにちは。

[#25093] Re: file separator for Ruby in Windows — TAKAHASHI Masayoshi <maki@...> 2000/09/22

高橋征義です。

[#25096] Re: file separator for Ruby in Windows — matz@... (Yukihiro Matsumoto) 2000/09/22

まつもと ゆきひろです

[#25147] media watch 2000.08.24 — Noritsugu Nakamura <nnakamur@...>

16 messages 2000/09/24
[#25148] Re: media watch 2000.08.24 — maili31s@... (SugHimsi as SUGIHARA Hiroshi) 2000/09/24

すぎむし。

[#25169] priority & ThreadGroup (Re: [ruby-dev:9438] Re: $SAFE) — Masatoshi SEKI <m_seki@...>

22 messages 2000/09/25
[#25178] Re: priority & ThreadGroup (Re: [ruby-dev:9438] Re: $SAFE) — matz@... (Yukihiro Matsumoto) 2000/09/26

まつもと ゆきひろです

[#25310] synchronization mechanism — Shugo Maeda <shugo@...> 2000/10/04

前田です。

[#25312] Re: synchronization mechanism — m_seki@... 2000/10/04

[#25316] Re: synchronization mechanism — Shugo Maeda <shugo@...> 2000/10/05

前田です。

[ruby-list:25130] Re: How to check all Thread fin ?

From: Aleksi Niemela <aleksi.niemela@...>
Date: 2000-09-23 20:51:14 UTC
List: ruby-list #25130
Sakae Kobayashi:
> deadlock 0x810104c: 2:0 (main) - /usr/local/lib/ruby/1.6/thread.rb:178
> /usr/local/lib/ruby/1.6/thwait.rb:103:in `pop': Thread: 
> deadlock (fatal)

Yashi pointed me to this thread as it seems we have some interesting
behaviour here. I'm not sure if this is the patch actually fixes the bug,
but at least I didn't manage to get any error messages afterwards.

Index: thwait.rb
===================================================================
RCS file: /home/cvs/ruby/lib/thwait.rb,v
retrieving revision 1.4
diff -u -r1.4 thwait.rb
--- thwait.rb   2000/09/21 06:37:23     1.4
+++ thwait.rb   2000/09/23 20:44:45
@@ -44,7 +44,7 @@
   
   Exception2MessageMapper.extend_to(binding)
   def_exception("ErrNoWaitingThread", "No threads for waiting.")
-  def_exception("ErrNoFinshedThread", "No finished threads.")
+  def_exception("ErrNoFinishedThread", "No finished threads.")
   
   def ThreadsWait.all_waits(*threads)
     tw = ThreadsWait.new(*threads)
@@ -99,8 +99,9 @@
     @threads.concat threads.flatten
     for th in threads
       Thread.start do
-       th = th.join
-       @wait_queue.push th
+       t = th
+       t = t.join
+       @wait_queue.push t
       end
     end
   end
@@ -131,3 +132,4 @@
 end
 
 ThWait = ThreadsWait
+


====================

And if you wonder why the bug happens, please try this patch and run Sakae
Kobayashi's example again. Tell me if you see some surprises :).


Index: thwait.rb
===================================================================
RCS file: /home/cvs/ruby/lib/thwait.rb,v
retrieving revision 1.4
diff -u -r1.4 thwait.rb
--- thwait.rb   2000/09/21 06:37:23     1.4
+++ thwait.rb   2000/09/23 20:46:32
@@ -44,7 +44,7 @@
   
   Exception2MessageMapper.extend_to(binding)
   def_exception("ErrNoWaitingThread", "No threads for waiting.")
-  def_exception("ErrNoFinshedThread", "No finished threads.")
+  def_exception("ErrNoFinishedThread", "No finished threads.")
   
   def ThreadsWait.all_waits(*threads)
     tw = ThreadsWait.new(*threads)
@@ -99,8 +99,10 @@
     @threads.concat threads.flatten
     for th in threads
       Thread.start do
-       th = th.join
-       @wait_queue.push th
+       t = th
+       put "surprise" if t != th
+       t = t.join
+       @wait_queue.push t
       end
     end
   end
@@ -131,3 +133,4 @@
 end
 
 ThWait = ThreadsWait
+


=============

    - Aleksi 

In This Thread

Prev Next