https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112010-05-05T23:28:34ZRuby Issue Tracking SystemRuby master - Bug #3250: [BUG] Segmentation faulthttps://bugs.ruby-lang.org/issues/3250?journal_id=108102010-05-05T23:28:34Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Third Party's Issue</i></li></ul><p>=begin<br>
Hi,</p>
<p>Could you ask the author of MediaInfo first?<br>
I temporarily set this ticket status to Third Party's issue.</p>
<p>The invoking code is not self-contained and cannot be executed.<br>
To investigate this issue, a self-contained code and a target video<br>
would be very helpful.</p>
<p>In addition, what are you using XML parser?<br>
MediaInfo seems to be configurable to use REXML, Hpricot or Nokogiri.<br>
If you use REXML then ruby core might have a bug because it is all<br>
pure ruby. But if you use Hpricot or Nokogiri, they might have a bug.</p>
<p>--<br>
Yusuke Endoh <a href="mailto:mame@tsg.ne.jp" class="email">mame@tsg.ne.jp</a><br>
=end</p> Ruby master - Bug #3250: [BUG] Segmentation faulthttps://bugs.ruby-lang.org/issues/3250?journal_id=108472010-05-07T07:27:06ZDBA (Diogo Almeida)diogo.borges.almeida@gmail.com
<ul></ul><p>=begin<br>
Hello Yusuke Endoh,</p>
<p>I've created a github public repository, which is accessible at <a href="http://github.com/DBA/mediainfo_ruby_bug" class="external">http://github.com/DBA/mediainfo_ruby_bug</a>. In this repo you'll be able to find a couple of self-contained tests that reproduce the reported bug, along with a target video.</p>
<p>The bug occurs while using REXML as a parser, though it also occurs with nokogiri. It might be something with the way the gem is coded, but it could also be something at the Ruby level itself. Might be worth double checking by someone with more ruby-fu than I :)</p>
<p>Last reproduced the issue with the following stack:</p>
<p>ruby 1.9.2dev (2010-05-05 trunk 27631) [x86_64-darwin10.3.0]<br>
Using mediainfo (0.7.1) from bundler gems<br>
Using nokogiri (1.4.1) from bundler gems<br>
Using shoulda (2.10.3) from bundler gems</p>
<p>This issue has already been reported to MediaInfo <a href="http://github.com/greatseth/mediainfo/issues#issue/5" class="external">http://github.com/greatseth/mediainfo/issues#issue/5</a></p>
<p>Please let me know if I can be of further assistance for the resolution / identification of this issue. Would be glad to help.</p>
<p>Best regards,<br>
DBA<br>
=end</p> Ruby master - Bug #3250: [BUG] Segmentation faulthttps://bugs.ruby-lang.org/issues/3250?journal_id=108542010-05-07T18:23:51Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Third Party's Issue</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>mame (Yusuke Endoh)</i></li></ul><p>=begin<br>
Hi,</p>
<p>2010/5/7 Diogo Almeida <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a>:</p>
<blockquote>
<p>I've created a github public repository, which is accessible at <a href="http://github.com/DBA/mediainfo_ruby_bug" class="external">http://github.com/DBA/mediainfo_ruby_bug</a>. In this repo you'll be able to find a couple of self-contained tests that reproduce the reported bug, along with a target video.</p>
</blockquote>
<p>Thank you so much! I could reproduce the issue with mediainfo and<br>
shoulda gem installed.<br>
I guess this is a bug of ruby core. I'll investigate.</p>
<p>--<br>
Yusuke Endoh <a href="mailto:mame@tsg.ne.jp" class="email">mame@tsg.ne.jp</a><br>
=end</p> Ruby master - Bug #3250: [BUG] Segmentation faulthttps://bugs.ruby-lang.org/issues/3250?journal_id=108572010-05-07T22:09:49Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Feedback</i></li><li><strong>Target version</strong> set to <i>1.9.2</i></li></ul><p>=begin<br>
Hi,</p>
<p>The issue is fixed on my environment by the following patch.<br>
Could you try it?</p>
<p>diff --git a/proc.c b/proc.c<br>
index 9539f71..332c149 100644<br>
--- a/proc.c<br>
+++ b/proc.c<br>
@@ -105,6 +105,7 @@ proc_dup(VALUE self)</p>
<pre><code> dst->block = src->block;
dst->block.proc = procval;
</code></pre>
<ul>
<li>dst->blockprocval = src->blockprocval;<br>
dst->envval = src->envval;<br>
dst->safe_level = src->safe_level;<br>
dst->is_lambda = src->is_lambda;</li>
</ul>
<p>--<br>
Yusuke Endoh <a href="mailto:mame@tsg.ne.jp" class="email">mame@tsg.ne.jp</a><br>
=end</p> Ruby master - Bug #3250: [BUG] Segmentation faulthttps://bugs.ruby-lang.org/issues/3250?journal_id=108592010-05-07T22:18:29Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul></ul><p>=begin<br>
A smaller test case (for the record):</p>
<p>class C<br>
def self.set(name)<br>
define_method(name) { yield }<br>
end<br>
set(:foo) { p :boo }<br>
end<br>
GC.stress = true<br>
C.new.foo</p>
<p>--<br>
Yusuke Endoh <a href="mailto:mame@tsg.ne.jp" class="email">mame@tsg.ne.jp</a><br>
=end</p> Ruby master - Bug #3250: [BUG] Segmentation faulthttps://bugs.ruby-lang.org/issues/3250?journal_id=108602010-05-07T23:26:41ZDBA (Diogo Almeida)diogo.borges.almeida@gmail.com
<ul></ul><p>=begin<br>
Hello again Yusuke,</p>
<p>Your patch makes my tests pass. Your test also passes.</p>
<p>Nice work!<br>
Best regards,<br>
DBA</p>
<p>=end</p> Ruby master - Bug #3250: [BUG] Segmentation faulthttps://bugs.ruby-lang.org/issues/3250?journal_id=108942010-05-09T23:57:05Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>=begin<br>
This issue was solved with changeset r27703.<br>
Diogo, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<p>=end</p>