[#25976] tnono dumps core — nobu@...
なかだです。
16 messages
2005/04/02
[#25977] Re: tnono dumps core
— Masaki Suketa <masaki.suketa@...>
2005/04/03
助田です。
[#25978] Re: tnono dumps core
— nobu@...
2005/04/03
なかだです。
[#25979] Re: tnono dumps core
— Hidetoshi NAGAI <nagai@...>
2005/04/03
永井@知能.九工大です.
[#25980] Re: tnono dumps core
— nobu@...
2005/04/03
なかだです。
[#25982] Re: tnono dumps core
— Hidetoshi NAGAI <nagai@...>
2005/04/04
永井@知能.九工大です.
[#25981] tktable doesn't have selection_present — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
山本です。
9 messages
2005/04/03
[#25986] Re: tktable doesn't have selection_present
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2005/04/04
山本です。
[#25988] Re: tktable doesn't have selection_present
— Hidetoshi NAGAI <nagai@...>
2005/04/04
永井@知能.九工大です.
[#25989] Re: tktable doesn't have selection_present
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2005/04/04
山本です。
[#25998] ruby 1.8.3 preview予定 — Yukihiro Matsumoto <matz@...>
まつもと ゆきひろです
45 messages
2005/04/07
[#25999] irb マージ[Re: ruby 1.8.3 preview予定]
— keiju@... (石塚圭樹)
2005/04/07
けいじゅ@いしつかです.
[#26011] bcc32、win32 での install-doc の動作
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2005/04/10
山本です。
[#26012] Re: bcc32、win32 での install-doc の動作
— nobu@...
2005/04/10
なかだです。
[#26013] Re: bcc32、win32 での install-doc の動作
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2005/04/11
山本です。
[#26014] Re: bcc32、win32 での install-doc の動作
— "U.Nakamura" <usa@...>
2005/04/11
こんにちは、なかむら(う)です。
[#26034] Re: bcc32、win32 での install-doc の動作
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2005/04/12
山本です。
[#26035] Re: bcc32、win32 での install-doc の動作
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2005/04/12
山本です。
[#26036] Re: bcc32、win32 での install-doc の動作
— "U.Nakamura" <usa@...>
2005/04/12
こんにちは、なかむら(う)です。
[#26040] Re: bcc32、win32 での install-doc の動作
— nobu@...
2005/04/13
なかだです。
[#26041] Re: bcc32、win32 での install-doc の動作
— "U.Nakamura" <usa@...>
2005/04/13
こんにちは、なかむら(う)です。
[#26042] Re: bcc32、win32 での install-doc の動作
— nobu@...
2005/04/13
なかだです。
[#26043] Re: bcc32、win32 での install-doc の動作
— "U.Nakamura" <usa@...>
2005/04/13
こんにちは、なかむら(う)です。
[#26045] Re: bcc32、win32 での install-doc の動作
— nobu@...
2005/04/13
なかだです。
[#26049] Re: bcc32、win32 での install-doc の動作
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2005/04/14
山本です。
[#26051] Re: bcc32、win32 での install-doc の動作
— nobu@...
2005/04/14
なかだです。
[#26059] Re: bcc32、win32 での install-doc の動作
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2005/04/14
山本です。
[#26060] Re: bcc32、win32 での install-doc の動作
— nobu@...
2005/04/15
なかだです。
[#26067] Re: bcc32、win32 での install-doc の動作
— "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
2005/04/15
山本です。
[#26047] "Florian Frank": Small 1.9 fixes — keiju@... (Keiju ISHITSUKA)
けいじゅ@いしつかです.
10 messages
2005/04/13
[#26048] Re: "Florian Frank": Small 1.9 fixes
— Yukihiro Matsumoto <matz@...>
2005/04/13
[#26050] Re: "Florian Frank": Small 1.9 fixes
— keiju@... (石塚圭樹)
2005/04/14
けいじゅ@いしつかです.
[#26079] absolute path in $LOADED_FEATURES — nobu@...
なかだです。
6 messages
2005/04/18
[#26096] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIGbindings — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
山本です。
4 messages
2005/04/23
[#26100] FileUtils.rm_rf security problem — Tanaka Akira <akr@...17n.org>
ふと、CVE で perl 関係のを見ていたら、File::Path の rmtree に関するも
21 messages
2005/04/26
[#26101] Re: FileUtils.rm_rf security problem
— Yukihiro Matsumoto <matz@...>
2005/04/26
まつもと ゆきひろです
[#26102] Re: FileUtils.rm_rf security problem
— Tanaka Akira <akr@...17n.org>
2005/04/26
[#26103] Re: FileUtils.rm_rf security problem
— Yukihiro Matsumoto <matz@...>
2005/04/26
まつもと ゆきひろです
[#26190] Re: FileUtils.rm_rf security problem
— Minero Aoki <aamine@...>
2005/05/20
青木です。
[#26191] Re: FileUtils.rm_rf security problem
— Tanaka Akira <akr@...17n.org>
2005/05/20
In article <20050520171837N.aamine@loveruby.net>,
[#26192] Re: FileUtils.rm_rf security problem
— Minero Aoki <aamine@...>
2005/05/20
青木です。
[#26197] Re: FileUtils.rm_rf security problem
— Minero Aoki <aamine@...>
2005/05/21
青木です。
[#26234] Re: FileUtils.rm_rf security problem
— Tanaka Akira <akr@...17n.org>
2005/05/26
In article <20050526081855Q.aamine@loveruby.net>,
[#26237] Re: FileUtils.rm_rf security problem
— Minero Aoki <aamine@...>
2005/05/26
青木です。
[#26238] Re: FileUtils.rm_rf security problem
— Tanaka Akira <akr@...17n.org>
2005/05/26
In article <20050526203322Z.aamine@loveruby.net>,
[#26105] close(2) without flushing buffer for redirection in child process — Tomoaki NISHIYAMA <tomoakin@...>
ruby-devの皆様
3 messages
2005/04/27
[#26113] race condition in fixnum..fixnum ? — Tanaka Akira <akr@...17n.org>
例によってとあるソフトウェアで core を吐いたので調べたところ、
5 messages
2005/04/30
[ruby-dev:26115] Re: race condition in fixnum..fixnum ?
From:
nobu@...
Date:
2005-04-30 12:20:33 UTC
List:
ruby-dev #26115
なかだです。
At Sat, 30 Apr 2005 15:00:59 +0900,
Tanaka Akira wrote in [ruby-dev:26113]:
> とりあえず、スレッドではないかと見当をつけて、
>
> Index: eval.c
> ===================================================================
> RCS file: /src/ruby/eval.c,v
> retrieving revision 1.776
> diff -u -p -r1.776 eval.c
> --- eval.c 30 Apr 2005 02:59:41 -0000 1.776
> +++ eval.c 30 Apr 2005 05:45:41 -0000
> @@ -3223,6 +3223,7 @@ rb_eval(self, n)
>
> case NODE_DOT2:
> case NODE_DOT3:
> + rb_thread_schedule();
> result = rb_range_new(rb_eval(self, node->nd_beg),
> rb_eval(self, node->nd_end),
> nd_type(node) == NODE_DOT3);
ここでコンテキストスイッチが起きることはないはず、と思うんです
が。
> で、実際のところどうなんでしょう?
> 変更を加えなくても推測した問題は起きうるものでしょうか?
少なくともこれに関しては、rb_eval()よりもparserで処理したほうが
適切のような気がします。
* eval.c (rb_eval), parse.y (arg): reduce fixnum range literal at
parser. fixed: [ruby-dev:26113]
Index: eval.c
===================================================================
RCS file: /cvs/ruby/src/ruby/eval.c,v
retrieving revision 1.776
diff -U2 -p -r1.776 eval.c
--- eval.c 30 Apr 2005 02:59:41 -0000 1.776
+++ eval.c 30 Apr 2005 12:16:46 -0000
@@ -3227,14 +3227,4 @@ rb_eval(self, n)
rb_eval(self, node->nd_end),
nd_type(node) == NODE_DOT3);
- if (node->nd_state) break;
- if (nd_type(node->nd_beg) == NODE_LIT && FIXNUM_P(node->nd_beg->nd_lit) &&
- nd_type(node->nd_end) == NODE_LIT && FIXNUM_P(node->nd_end->nd_lit))
- {
- nd_set_type(node, NODE_LIT);
- node->nd_lit = result;
- }
- else {
- node->nd_state = 1;
- }
break;
Index: parse.y
===================================================================
RCS file: /cvs/ruby/src/ruby/parse.y,v
retrieving revision 1.377
diff -U2 -p -r1.377 parse.y
--- parse.y 14 Apr 2005 10:05:27 -0000 1.377
+++ parse.y 30 Apr 2005 12:09:49 -0000
@@ -1761,5 +1761,12 @@ arg : lhs '=' arg
value_expr($1);
value_expr($3);
- $$ = NEW_DOT2($1, $3);
+ if (nd_type($1) == NODE_LIT && FIXNUM_P($1->nd_lit) &&
+ nd_type($3) == NODE_LIT && FIXNUM_P($3->nd_lit)) {
+ $1->nd_lit = rb_range_new($1->nd_lit, $3->nd_lit, Qfalse);
+ $$ = $1;
+ }
+ else {
+ $$ = NEW_DOT2($1, $3);
+ }
/*%
$$ = dispatch2(dot2, $1, $3);
@@ -1771,5 +1778,12 @@ arg : lhs '=' arg
value_expr($1);
value_expr($3);
- $$ = NEW_DOT3($1, $3);
+ if (nd_type($1) == NODE_LIT && FIXNUM_P($1->nd_lit) &&
+ nd_type($3) == NODE_LIT && FIXNUM_P($3->nd_lit)) {
+ $1->nd_lit = rb_range_new($1->nd_lit, $3->nd_lit, Qtrue);
+ $$ = $1;
+ }
+ else {
+ $$ = NEW_DOT3($1, $3);
+ }
/*%
$$ = dispatch2(dot3, $1, $3);
--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
中田 伸悦