[#25430] 1.8 warn nonblocking IO#read and add IO#readpartial — Tanaka Akira <akr@...17n.org>

1.8 に以下の変更を行いたいんですが、どうでしょうか?

29 messages 2005/01/08
[#25445] Re: 1.8 warn nonblocking IO#read and add IO#readpartial — Tanaka Akira <akr@...17n.org> 2005/01/09

In article <20050109063005.3048a4ba.tommy@tmtm.org>,

[#25479] some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>

山本です。

44 messages 2005/01/15
[#25488] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/22

永井@知能.九工大です.

[#25489] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/22

山本です。

[#25490] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/22

永井@知能.九工大です.

[#25517] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/25

山本です。

[#25519] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/25

永井@知能.九工大です.

[#25521] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/25

山本です。

[#25523] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/25

永井@知能.九工大です.

[#25530] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/25

山本です。

[#25537] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25545] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25546] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/26

山本です。

[#25547] Re: some problems on ext/tk/sample/**/*.rb — "U.Nakamura" <usa@...> 2005/01/26

こんにちは、なかむら(う)です。

[#25548] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/26

山本です。

[#25550] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25553] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/26

山本です。

[#25556] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25567] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/27

永井@知能.九工大です.

[#25569] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/01/27

山本です。

[#25578] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/28

永井@知能.九工大です.

[#25585] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/28

永井@知能.九工大です.

[#25605] Re: some problems on ext/tk/sample/**/*.rb — Hidetoshi NAGAI <nagai@...> 2005/01/31

永井@知能.九工大です.

[#25609] Re: some problems on ext/tk/sample/**/*.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/02/01

山本です。

[#25500] priority between commandline option and RUBYOPT env variable — Hidetoshi NAGAI <nagai@...>

永井@知能.九工大です.

13 messages 2005/01/25

[#25522] merge tcltklib and tk — Hidetoshi NAGAI <nagai@...>

永井@知能.九工大です.

32 messages 2005/01/25
[#25552] Re: merge tcltklib and tk — nobu@... 2005/01/26

なかだです。

[#25555] Re: merge tcltklib and tk — Hidetoshi NAGAI <nagai@...> 2005/01/26

永井@知能.九工大です.

[#25557] Re: merge tcltklib and tk — nobu@... 2005/01/26

なかだです。

[#25561] Re: merge tcltklib and tk — Hidetoshi NAGAI <nagai@...> 2005/01/27

永井@知能.九工大です.

[#25566] Re: merge tcltklib and tk — Hidetoshi NAGAI <nagai@...> 2005/01/27

永井@知能.九工大です.

[#25590] Can I copy doc/irb/irb.rd.ja to the reference Wiki? — sheepman <sheepman@...>

こんばんは、sheepman です。

16 messages 2005/01/29
[#25591] Re: Can I copy doc/irb/irb.rd.ja to the reference Wiki? — keiju@... (石塚圭樹) 2005/01/29

けいじゅ@いしつかです.

[#25592] irb history saving feature is not in ruby 1.8 — sheepman <sheepman@...> 2005/01/30

こんにちは、sheepman です。

[#25593] Re: irb history saving feature is not in ruby 1.8 — keiju@... (石塚圭樹) 2005/01/30

けいじゅ@いしつかです.

[#25594] Re: irb history saving feature is not in ruby 1.8 — sheepman <sheepman@...> 2005/01/30

こんにちは、sheepman です。

[#25595] Re: irb history saving feature is not in ruby 1.8 — keiju@... (石塚圭樹) 2005/01/30

けいじゅ@いしつかです.

[ruby-dev:25569] Re: some problems on ext/tk/sample/**/*.rb

From: "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Date: 2005-01-27 16:05:23 UTC
List: ruby-dev #25569
山本です。

>Tcl_Eval を使わない方法だと,逆に SEGV の可能性が
>高くなってしまいました.(^_^;
>仕方ないのでその代りに別のチェックを追加してみました.
>これでもダメなら本当にお手上げ (少なくとも現時点では) ですので,
>問題となっている終了処理を bcc32 の場合だけ一切行わないように
>修正することにします.(;_;)

落ちなくなったようです。お疲れ様でした・・・

下のパッチをつくったところ、bcc32 では Tcl_Eval の後
namespace が(おそらく不正な値に)変化し、その後の
Tcl コマンドで落ちることがはっきりしました。

tcl8.3以前で Tcl_Eval(ip, "foreach id [after info] { after cancel $id }")
が落ちていたというのも、実は同じ理由なんでしょうか?

問題は「なぜ bcc32 では namespace が変化するのか」ですが・・・

Index: tcltklib.c
===================================================================
RCS file: /src/ruby/ext/tk/tcltklib.c,v
retrieving revision 1.1
diff -u -w -b -p -r1.1 tcltklib.c
--- tcltklib.c	25 Jan 2005 14:31:44 -0000	1.1
+++ tcltklib.c	27 Jan 2005 15:12:05 -0000
@@ -222,6 +222,22 @@ struct tcltkip {
     int return_value;           /* return value */
 };
 
+static int
+tcl_eval(ip, string)
+    Tcl_Interp *ip;
+    const char *string;
+{
+    int i;
+
+    printf("%d ", Tcl_GetCurrentNamespace(ip));
+    i = Tcl_Eval(ip, string);
+    printf("-------> %d : %s\n", Tcl_GetCurrentNamespace(ip), string);
+    return i;
+}
+
+#undef Tcl_Eval
+#define Tcl_Eval(ip, string) tcl_eval(ip, string)
+
 static struct tcltkip *
 get_ip(self)
     VALUE self;

///////////////////////////////////////////////////////////////

E:\ruby-cvs\bcc32>ruby19 \tktestmultiwin.rb
49571192 -------> 49571192 : info slaves
49571192 -------> 49571192 : proc __ruby_tcltklib_cancel_after_scripts__ {} {for
each id [after info] {after cancel $id}}
49571192 -------> 20352 : __ruby_tcltklib_cancel_after_scripts__
E:/ruby-cvs/bcc32/.ext/tk.rb:1180: [BUG] Segmentation fault
ruby 1.9.0 (2005-01-27) [i386-bccwin32]


Abnormal program termination

E:\ruby-cvs\bcc32>ruby19 ..\ruby\ext\tk\sample\menubar1.rb
49571192 -------> 49571192 : info slaves
49571192 -------> 49571192 : proc __ruby_tcltklib_cancel_after_scripts__ {} {for
each id [after info] {after cancel $id}}
49571192 -------> 37808004 : __ruby_tcltklib_cancel_after_scripts__
E:/ruby-cvs/bcc32/.ext/tk.rb:1180: [BUG] Segmentation fault
ruby 1.9.0 (2005-01-27) [i386-bccwin32]


Abnormal program termination

///////////////////////////////////////////////////////////////

E:\ruby-cvs\win32>ruby19 \tktestmultiwin.rb
46368920 -------> 46368920 : info slaves
46368920 -------> 46368920 : proc __ruby_tcltklib_cancel_after_scripts__ {} {for
each id [after info] {after cancel $id}}
46368920 -------> 46368920 : __ruby_tcltklib_cancel_after_scripts__
46368920 -------> 46368920 : INTERP_FINALIZE_HOOK

E:\ruby-cvs\win32>ruby19 ..\ruby\ext\tk\sample\menubar1.rb
46330368 -------> 46330368 : info slaves
46330368 -------> 46330368 : proc __ruby_tcltklib_cancel_after_scripts__ {} {for
each id [after info] {after cancel $id}}
46330368 -------> 46330368 : __ruby_tcltklib_cancel_after_scripts__
46330368 -------> 46330368 : INTERP_FINALIZE_HOOK



In This Thread