[#25936] [Bug:1.9] [rubygems] $LOAD_PATH includes bin directory — Nobuyoshi Nakada <nobu@...>

Hi,

10 messages 2009/10/05

[#25943] Disabling tainting — Tony Arcieri <tony@...>

Would it make sense to have a flag passed to the interpreter on startup that

16 messages 2009/10/05

[#26028] [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error — Marc-Andre Lafortune <redmine@...>

Bug #2189: Math.atanh(1) & Math.atanh(-1) should not raise an error

14 messages 2009/10/10

[#26222] [Bug #2250] IO::for_fd() objects' finalization dangerously closes underlying fds — Mike Pomraning <redmine@...>

Bug #2250: IO::for_fd() objects' finalization dangerously closes underlying fds

11 messages 2009/10/22

[#26244] [Bug #2258] Kernel#require inside rb_require() inside rb_protect() inside SysV context fails — Suraj Kurapati <redmine@...>

Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails

24 messages 2009/10/22

[#26361] [Feature #2294] [PATCH] ruby_bind_stack() to embed Ruby in coroutine — Suraj Kurapati <redmine@...>

Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine

42 messages 2009/10/27

[#26371] [Bug #2295] segmentation faults — tomer doron <redmine@...>

Bug #2295: segmentation faults

16 messages 2009/10/27

[ruby-core:25949] [Bug #2171] Kernel#respond_to_missing? Invoked for Unimplemented Methods

From: Nikolai Lugovoi <redmine@...>
Date: 2009-10-05 22:55:18 UTC
List: ruby-core #25949
Issue #2171 has been updated by Nikolai Lugovoi.


This update introduced some strange/broken behaviour of RSS parser -- test/rss/ were severely failing.

I had to use following patch to restore its work:

diff --git a/vm_method.c b/vm_method.c
index a31fb8b..22b4700 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -512,7 +512,7 @@ rb_method_boundp(VALUE klass, ID id, int ex)
     rb_method_entry_t *me = rb_method_entry(klass, id);
 
     if (me != 0) {
-	if (ex && (me->flag & NOEX_PRIVATE)) {
+	if ((ex & NOEX_PRIVATE) && (me->flag & NOEX_PRIVATE)) {
 	    return FALSE;
 	}
 	if (!me->def) return 0;
@@ -1153,7 +1153,7 @@ basic_obj_respond_to(VALUE obj, ID id, int pub)
 {
     VALUE klass = CLASS_OF(obj);
 
-    switch (rb_method_boundp(klass, id, pub|NOEX_RESPONDS)) {
+    switch (rb_method_boundp(klass, id, (pub & 0x7F) |NOEX_RESPONDS)) {
       case 2:
 	return FALSE;
       case 0:

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

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

In This Thread