https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112009-10-31T21:21:27ZRuby Issue Tracking SystemBackport191 - Bug #2316: [BUG] cfp consistency errorhttps://bugs.ruby-lang.org/issues/2316?journal_id=66152009-10-31T21:21:27ZCezary (Cezary Baginski)cezary.baginski@gmail.com
<ul></ul><p>=begin<br>
'make test-all' gives the following failure:</p>
<ol>
<li>Failure:<br>
test_free=(DL::TestCPtr) [/home/media/git-pool/ruby/test/dl/test_cptr.rb:12]:<br>
<a href="https://blade.ruby-lang.org/ruby-dev/39269">[ruby-dev:39269]</a><br>
pid 10650 killed by SIGABRT (signal 6)<br>
| -: [BUG] Segmentation fault<br>
| ruby 1.9.2dev (2009-10-30 trunk 25576) [i686-linux]<br>
|<br>
| -- control frame ----------<br>
| c:0001 p:0000 s:0002 b:0002 l:001ab4 d:001ab4 TOP<br>
| ---------------------------<br>
|<br>
| -- C level backtrace information -------------------------------------------<br>
| /home/media/git-pool/ruby/ruby(rb_vm_bugreport+0x6b) [0x8144e38]<br>
| /home/media/git-pool/ruby/ruby [0x817457b]<br>
| /home/media/git-pool/ruby/ruby(rb_bug+0x34) [0x81745e9]<br>
| /home/media/git-pool/ruby/ruby [0x80e508e]<br>
| [0x4001d410]<br>
| /lib/libc.so.6(cfree+0x6d) [0x4035350d]<br>
| /home/media/git-pool/ruby/.ext/i686-linux/dl.so [0x402c6fed]<br>
| /home/media/git-pool/ruby/ruby [0x8066425]<br>
| /home/media/git-pool/ruby/ruby [0x8064dfe]<br>
| /home/media/git-pool/ruby/ruby [0x806689a]<br>
| /home/media/git-pool/ruby/ruby(rb_gc_call_finalizer_at_exit+0x19) [0x8066669]<br>
| /home/media/git-pool/ruby/ruby [0x805e083]<br>
| /home/media/git-pool/ruby/ruby(ruby_cleanup+0x141) [0x805e1d8]<br>
| /home/media/git-pool/ruby/ruby(ruby_run_node+0x40) [0x805e448]<br>
(more)<br>
=end</li>
</ol> Backport191 - Bug #2316: [BUG] cfp consistency errorhttps://bugs.ruby-lang.org/issues/2316?journal_id=66172009-11-01T02:49:07Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul><li><strong>Assignee</strong> set to <i>matz (Yukihiro Matsumoto)</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>5</i></li></ul><p>=begin<br>
Looks like the same issue as <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: [BUG] cfp consistency error - send (Closed)" href="https://bugs.ruby-lang.org/issues/2311">#2311</a>.</p>
<p>Solutions until it is resolved:</p>
<ul>
<li>do not run any tests that generate a "wrong number of arguments" error,</li>
<li>or use ruby earlier than r25521, or revert that commit locally.<br>
=end</li>
</ul> Backport191 - Bug #2316: [BUG] cfp consistency errorhttps://bugs.ruby-lang.org/issues/2316?journal_id=66192009-11-01T04:05:06Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul></ul><p>=begin<br>
Hi,</p>
<p>In message "Re: <a href="https://blade.ruby-lang.org/ruby-core/26451">[ruby-core:26451]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: [BUG] cfp consistency error (Closed)" href="https://bugs.ruby-lang.org/issues/2316">#2316</a>] [BUG] cfp consistency error"<br>
on Sun, 1 Nov 2009 02:49:11 +0900, Marc-Andre Lafortune <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> writes:</p>
<p>|Looks like the same issue as <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: [BUG] cfp consistency error - send (Closed)" href="https://bugs.ruby-lang.org/issues/2311">#2311</a>.</p>
<p>No. According to <a href="https://blade.ruby-lang.org/ruby-dev/39269">[ruby-dev:39269]</a>, it's caused by dl test, and I<br>
believe this is a bug in test. At least, this one is not related to<br>
r25521 at all. It's far older than that.</p>
<p>dl touches internals directly so that you can crash the interpreter<br>
pretty easily. In this case, the test frees the memory region by<br>
using free() taken from libc, but the region itself is allocated by<br>
ruby_xmalloc(). This mismatch might be the reason of the crash.</p>
<p>But, in that case, I see no reason to have CPtr#free= method at all.</p>
<p>|Solutions until it is resolved:<br>
|- do not run any tests that generate a "wrong number of arguments" error,<br>
|- or use ruby earlier than r25521, or revert that commit locally.</p>
<p>This <em>solution</em> is for <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: [BUG] cfp consistency error - send (Closed)" href="https://bugs.ruby-lang.org/issues/2311">#2311</a> (which I cannot reproduce right now), but<br>
not for this one.</p>
<pre><code> matz.
</code></pre>
<p>=end</p> Backport191 - Bug #2316: [BUG] cfp consistency errorhttps://bugs.ruby-lang.org/issues/2316?journal_id=66212009-11-01T04:29:28Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul></ul><p>=begin<br>
Hi Matz,</p>
<p>The update Cezary posted about a test failing in test-all is because of <a href="https://blade.ruby-lang.org/ruby-dev/39269">[ruby-dev:39269]</a>, but it is not related to his issue.</p>
<p>You need to look at the attachment filed on redmine. I believe the issue is posting is the same as <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: [BUG] cfp consistency error - send (Closed)" href="https://bugs.ruby-lang.org/issues/2311">#2311</a>.</p>
<p>When you say you can not reproduce, you mean that the two examples I gave in <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: [BUG] cfp consistency error - send (Closed)" href="https://bugs.ruby-lang.org/issues/2311">#2311</a> do not give you any trouble?<br>
=end</p> Backport191 - Bug #2316: [BUG] cfp consistency errorhttps://bugs.ruby-lang.org/issues/2316?journal_id=66222009-11-01T04:55:33Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul></ul><p>=begin<br>
Hi,</p>
<p>In message "Re: <a href="https://blade.ruby-lang.org/ruby-core/26455">[ruby-core:26455]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: [BUG] cfp consistency error (Closed)" href="https://bugs.ruby-lang.org/issues/2316">#2316</a>] [BUG] cfp consistency error"<br>
on Sun, 1 Nov 2009 04:29:30 +0900, Marc-Andre Lafortune <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> writes:</p>
<p>|When you say you can not reproduce, you mean that the two examples I gave in <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: [BUG] cfp consistency error - send (Closed)" href="https://bugs.ruby-lang.org/issues/2311">#2311</a> do not give you any trouble?</p>
<p>No, I misunderstood the case. I could reproduce.</p>
<p>=end</p> Backport191 - Bug #2316: [BUG] cfp consistency errorhttps://bugs.ruby-lang.org/issues/2316?journal_id=67272009-11-07T12:57:05Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>=begin<br>
This issue was solved with changeset r25681.<br>
Marc-Andre, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<p>=end</p>