From: Nobuyoshi Nakada <nobu@ruby-lang.org>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:47899] Re: [ruby-trunk - Bug #7135] GC bug in Ruby 1.9.3-p194?
Date: Thu, 11 Oct 2012 10:13:05 +0900 [thread overview]
Message-ID: <50761d03.a4df440a.306a.26b7@mx.google.com> (raw)
In-Reply-To: <redmine.journal-30222.20121011083221@ruby-lang.org>
Hi,
At Thu, 11 Oct 2012 08:32:23 +0900,
alexdowad (Alex Dowad) wrote in [ruby-core:47897]:
> OK, I overcame the problem with compiling and testing a
> patched Ruby binary. When I comment out line 6229 of
> string.c, the problem goes away. Then when I uncomment the
> line and recompile Ruby, the problem comes back again. This
> is the code (it's for String#codepoints):
Thank you. Could you try this patch?
\f
diff --git i/string.c w/string.c
index 9281e4c..6707c4b 100644
--- i/string.c
+++ w/string.c
@@ -6332,6 +6332,7 @@ rb_str_each_codepoint(VALUE str)
rb_yield(UINT2NUM(c));
ptr += n;
}
+ RB_GC_GUARD(str);
return orig;
}
\f
--
Nobu Nakada
next prev parent reply other threads:[~2012-10-11 1:07 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-10 13:28 [ruby-core:47881] [ruby-trunk - Bug #7135][Open] GC bug in Ruby 1.9.3-p194? alexdowad (Alex Dowad)
2012-10-10 14:39 ` [ruby-core:47886] [ruby-trunk - Bug #7135][Feedback] " nobu (Nobuyoshi Nakada)
2012-10-10 20:12 ` [ruby-core:47890] [ruby-trunk - Bug #7135] " alexdowad (Alex Dowad)
2012-10-10 21:07 ` [ruby-core:47891] " Eric Wong
2012-10-10 21:50 ` [ruby-core:47892] " alexdowad (Alex Dowad)
2012-10-10 22:50 ` [ruby-core:47895] " Eric Wong
2012-10-10 22:00 ` [ruby-core:47893] " alexdowad (Alex Dowad)
2012-10-10 22:03 ` [ruby-core:47894] " alexdowad (Alex Dowad)
2012-10-10 23:05 ` [ruby-core:47896] " alexdowad (Alex Dowad)
2012-10-10 23:32 ` [ruby-core:47897] " alexdowad (Alex Dowad)
2012-10-11 1:13 ` Nobuyoshi Nakada [this message]
2012-10-11 1:08 ` [ruby-core:47898] " alexdowad (Alex Dowad)
2012-10-11 1:27 ` [ruby-core:47900] " Nobuyoshi Nakada
2012-10-11 1:30 ` [ruby-core:47901] " alexdowad (Alex Dowad)
2012-10-11 1:33 ` [ruby-core:47902] " alexdowad (Alex Dowad)
2012-10-11 1:44 ` [ruby-core:47903] " Nobuyoshi Nakada
2012-10-11 1:53 ` [ruby-core:47904] " alexdowad (Alex Dowad)
2012-10-11 2:03 ` [ruby-core:47905] " alexdowad (Alex Dowad)
2012-10-11 2:27 ` [ruby-core:47906] " Nobuyoshi Nakada
2012-10-11 7:20 ` [ruby-core:47907] " alexdowad (Alex Dowad)
2012-10-11 8:19 ` [ruby-core:47908] " alexdowad (Alex Dowad)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50761d03.a4df440a.306a.26b7@mx.google.com \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).