[#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:26008] Re: some trouble on ext/tk/sample
From:
"H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Date:
2005-04-09 16:21:57 UTC
List:
ruby-dev #26008
山本です。
>> まだ良く調べてないんですが、sample/tkextlib/treectrl/mailwasher.rb
>> でカラムをクリックすると segfault するバグがありました。
>
>(;_;)(;_;)(;_;)(;_;)
>まだ問題が残っているのでしょうね.
>時間ができれば調べてみますが,私だけだと 1.8.3-preview1 には
>間に合わない可能性が極めて高いと思います.
>もし他にも情報がありましたら,教えていただけると助かります.
結論から言うと、tk::treectrl 側のバグでした。
私は http://sourceforge.net/projects/tktreectrl でダウンロードした
tktreectrl-1.1-1 を使っているのですが、この版でカラム数の不足した
項目を登録すると、下のように DictionaryCompare に NULL ポインタが
渡り、それをデリファレンスしようとして SEGV します。
Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 1300.0x440]
0x6ce250eb in DictionaryCompare (left=0x0, right=0x0)
at generic/tkTreeItem.c:2163
2163 if (isdigit(UCHAR(*right)) /* INTL: digit */
(gdb) bt
#0 0x6ce250eb in DictionaryCompare (left=0x0, right=0x0)
at generic/tkTreeItem.c:2163
#1 0x6ce2547d in CompareDict (sortData=0x2461370, a=0x95d8f00, b=0x2461250,
n=1) at generic/tkTreeItem.c:2269
#2 0x6ce2583a in CompareProc (sortData=0x2461370, a=0x95d8f00, b=0x2461250)
at generic/tkTreeItem.c:2322
#3 0x6ce25ba2 in partition (sortData=0x2461370, left=0x95d8f00,
right=0x95d8f30, pivot=0x2461250) at generic/tkTreeItem.c:2410
#4 0x6ce25cfb in quicksort (sortData=0x2461370, left=0x95d8f00,
right=0x95d8f30) at generic/tkTreeItem.c:2464
#5 0x6ce25d24 in quicksort (sortData=0x2461370, left=0x95d8f00,
right=0x95d8f48) at generic/tkTreeItem.c:2468
#6 0x6ce25d46 in quicksort (sortData=0x2461370, left=0x95d8ed0,
right=0x95d8f48) at generic/tkTreeItem.c:2472
#7 0x6ce26e99 in ItemSortCmd (clientData=0x92a5e78, interp=0x2b85150,
objc=11, objv=0x95d8cd0) at generic/tkTreeItem.c:2799
#8 0x6ce2a3da in TreeItemCmd (clientData=0x92a5e78, interp=0x2b85150,
objc=11, objv=0x95d8cd0) at generic/tkTreeItem.c:3873
#9 0x6ce0b4f4 in TreeWidgetCmd (clientData=0x92a5e78, interp=0x2b85150,
objc=11, objv=0x95d8cd0) at generic/tkTreeCtrl.c:766
ビルドできなかったので確かめてませんが、HEAD ではすでに修正されているようです。
static int
CompareDict(SortData *sortData, struct SortItem *a, struct SortItem *b, int n)
{
char *left = a->item1[n].string;
char *right = b->item1[n].string;
/* make sure to handle case where no string value has been set */
if (left == NULL) {
return ((right == NULL) ? 0 : (0 - UCHAR(*right)));
} else if (right == NULL) {
return UCHAR(*left);
} else {
return DictionaryCompare(left, right);
}
}
何で不足していたかというと、下のような理由でした。修正しておきます。
# lib/tkextlib/treectrl でこのバグに対処すべきかどうかはお任せします。
Index: mailwasher.rb
===================================================================
RCS file: /src/ruby/ext/tk/sample/tkextlib/treectrl/mailwasher.rb,v
retrieving revision 1.3
diff -u -w -b -p -r1.3 mailwasher.rb
--- mailwasher.rb 7 Apr 2005 14:55:55 -0000 1.3
+++ mailwasher.rb 9 Apr 2005 16:18:24 -0000
@@ -106,7 +106,7 @@ def demoMailWasher(t)
['whoami@spammer.com', "Find out what you think about yourself"],
['downsized@spammer.com', "You need a better job"],
['poorhouse@spammer.com', "Your mortgage is a joke"],
- ['spam4ever@spammer.com' "You need more spam"]
+ ['spam4ever@spammer.com', "You need more spam"]
].each{|frm, subj|
item = t.item_create
status = ['styNormal','styPossSpam','styProbSpam','styBlacklist'][rand(4)]