[#42945] [Ruby 1.8-Bug#4231][Open] configure.bat --with-winsock2 が socket/extconf.rbに効いていない — Masahiro Kitajima <redmine@...>

Bug #4231: configure.bat --with-winsock2 が socket/extconf.rbに効いていない

8 messages 2011/01/05

[#43027] [Ruby 1.9-Feature#4280][Assigned] SJIS should be an alias of Windows-31J, not of Shift_JIS — Usaku NAKAMURA <redmine@...>

Feature #4280: SJIS should be an alias of Windows-31J, not of Shift_JIS

13 messages 2011/01/14
[#43030] [Ruby 1.9-Feature#4280] SJIS should be an alias of Windows-31J, not of Shift_JIS — Motohiro KOSAKI <redmine@...> 2011/01/14

チケット #4280 が更新されました。 (by Motohiro KOSAKI)

[#43031] Re: [Ruby 1.9-Feature#4280] SJIS should be an alias of Windows-31J, not of Shift_JIS — "U.Nakamura" <usa@...> 2011/01/14

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

[#43033] Re: [Ruby 1.9-Feature#4280] SJIS should be an alias of Windows-31J, not of Shift_JIS — KOSAKI Motohiro <kosaki.motohiro@...> 2011/01/14

2011年1月14日16:35 U.Nakamura <usa@garbagecollect.jp>:

[#43039] ext/openssl development repository — Hiroshi Nakamura <nakahiro@...>

W3J1YnktY29yZTozNDQxNl3jga7ml6XmnKzlkJHjgZHniYjjgafjgZnjgIIKCuacgOi/kU1hcnRp

21 messages 2011/01/14
[#43040] Re: ext/openssl development repository — "U.Nakamura" <usa@...> 2011/01/14

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

[#43041] Re: ext/openssl development repository — Yusuke ENDOH <mame@...> 2011/01/14

遠藤です。

[#43053] Re: ext/openssl development repository — Hiroshi Nakamura <nakahiro@...> 2011/01/17

MjAxMS8xLzE0IFl1c3VrZSBFTkRPSCA8bWFtZUB0c2cubmUuanA+Ogo+Pj4gwqAgwqAgwqAgwqAg

[#43092] pthread_cond を用いたConditionVariable — keiju@... (Keiju ISHITSUKA)

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

15 messages 2011/01/24

[ruby-dev:43018] [Ruby 1.9-Bug#4260] some SEGVs in test/ruby/test_enum.rb

From: Tomoyuki Chikanaga <redmine@...>
Date: 2011-01-12 10:26:04 UTC
List: ruby-dev #43018
チケット #4260 が更新されました。 (by Tomoyuki Chikanaga)


手元では SEGV は起きないのですが、valgrind にかけると不正なメモリアクセスが検出されていました。

以下で valgrind の警告は消えたのですが、効くでしょうか?

diff --git a/enum.c b/enum.c
index d17d9d4..c891d71 100644
--- a/enum.c
+++ b/enum.c
@@ -802,13 +802,15 @@ sort_by_i(VALUE i, VALUE _data, int argc, VALUE *argv)
 static int
 sort_by_cmp(const void *ap, const void *bp, void *data)
 {
-    VALUE a = *(VALUE *)ap;
-    VALUE b = *(VALUE *)bp;
+    VALUE a;
+    VALUE b;
     VALUE ary = (VALUE)data;

     if (RBASIC(ary)->klass) {
        rb_raise(rb_eRuntimeError, "sort_by reentered");
     }
+    a = *(VALUE *)ap;
+    b = *(VALUE *)bp;
     return rb_cmpint(rb_funcall(a, id_cmp, 1, b), a, b);
 }

----------------------------------------
http://redmine.ruby-lang.org/issues/show/4260

----------------------------------------
http://redmine.ruby-lang.org

In This Thread