[ruby-core:26447] [Bug #2316] [BUG] cfp consistency error

View: New views
6 Messages — Rating Filter:   Alert me  

[ruby-core:26447] [Bug #2316] [BUG] cfp consistency error

by Suraj Kurapati-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bug #2316: [BUG] cfp consistency error
http://redmine.ruby-lang.org/issues/show/2316

Author: Cezary Baginski
Status: Open, Priority: Normal
Category: core
ruby -v: ruby 1.9.2dev (2009-10-30 trunk 25576) [i686-linux]

Happens every time running cucumber on small project.

I feel too dumb to debug this myself - sorry.

Let me know if additional information is required from my side.


* NOTE: I haven't run 'make test-all' yet.


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


[ruby-core:26448] [Bug #2316] [BUG] cfp consistency error

by Suraj Kurapati-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue #2316 has been updated by Cezary Baginski.


'make test-all' gives the following failure:

 1) Failure:
test_free=(DL::TestCPtr) [/home/media/git-pool/ruby/test/dl/test_cptr.rb:12]:
[ruby-dev:39269]
pid 10650 killed by SIGABRT (signal 6)
| -: [BUG] Segmentation fault
| ruby 1.9.2dev (2009-10-30 trunk 25576) [i686-linux]
|
| -- control frame ----------
| c:0001 p:0000 s:0002 b:0002 l:001ab4 d:001ab4 TOP  
| ---------------------------
|
| -- C level backtrace information -------------------------------------------
| /home/media/git-pool/ruby/ruby(rb_vm_bugreport+0x6b) [0x8144e38]
| /home/media/git-pool/ruby/ruby [0x817457b]
| /home/media/git-pool/ruby/ruby(rb_bug+0x34) [0x81745e9]
| /home/media/git-pool/ruby/ruby [0x80e508e]
| [0x4001d410]
| /lib/libc.so.6(cfree+0x6d) [0x4035350d]
| /home/media/git-pool/ruby/.ext/i686-linux/dl.so [0x402c6fed]
| /home/media/git-pool/ruby/ruby [0x8066425]
| /home/media/git-pool/ruby/ruby [0x8064dfe]
| /home/media/git-pool/ruby/ruby [0x806689a]
| /home/media/git-pool/ruby/ruby(rb_gc_call_finalizer_at_exit+0x19) [0x8066669]
| /home/media/git-pool/ruby/ruby [0x805e083]
| /home/media/git-pool/ruby/ruby(ruby_cleanup+0x141) [0x805e1d8]
| /home/media/git-pool/ruby/ruby(ruby_run_node+0x40) [0x805e448]
(more)
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2316

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


[ruby-core:26451] [Bug #2316] [BUG] cfp consistency error

by Suraj Kurapati-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue #2316 has been updated by Marc-Andre Lafortune.

Assigned to set to Yukihiro Matsumoto
Priority changed from Normal to High

Looks like the same issue as #2311.

Solutions until it is resolved:
- do not run any tests that generate a "wrong number of arguments" error,
- or use ruby earlier than r25521, or revert that commit locally.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2316

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


[ruby-core:26453] Re: [Bug #2316] [BUG] cfp consistency error

by Yukihiro Matsumoto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

In message "Re: [ruby-core:26451] [Bug #2316] [BUG] cfp consistency error"
    on Sun, 1 Nov 2009 02:49:11 +0900, Marc-Andre Lafortune <redmine@...> writes:

|Looks like the same issue as #2311.

No.  According to [ruby-dev:39269], it's caused by dl test, and I
believe this is a bug in test.  At least, this one is not related to
r25521 at all.  It's far older than that.

dl touches internals directly so that you can crash the interpreter
pretty easily.  In this case, the test frees the memory region by
using free() taken from libc, but the region itself is allocated by
ruby_xmalloc().  This mismatch might be the reason of the crash.

But, in that case, I see no reason to have CPtr#free= method at all.

|Solutions until it is resolved:
|- do not run any tests that generate a "wrong number of arguments" error,
|- or use ruby earlier than r25521, or revert that commit locally.

This _solution_ is for #2311 (which I cannot reproduce right now), but
not for this one.

                                                        matz.


[ruby-core:26455] [Bug #2316] [BUG] cfp consistency error

by Suraj Kurapati-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue #2316 has been updated by Marc-Andre Lafortune.


Hi Matz,

The update Cezary posted about a test failing in test-all is because of [ruby-dev:39269], but it is not related to his issue.

You need to look at the attachment filed on redmine. I believe the issue is posting is the same as #2311.

When you say you can not reproduce, you mean that the two examples I gave in #2311 do not give you any trouble?
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2316

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


[ruby-core:26456] Re: [Bug #2316] [BUG] cfp consistency error

by Yukihiro Matsumoto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

In message "Re: [ruby-core:26455] [Bug #2316] [BUG] cfp consistency error"
    on Sun, 1 Nov 2009 04:29:30 +0900, Marc-Andre Lafortune <redmine@...> writes:

|When you say you can not reproduce, you mean that the two examples I gave in #2311 do not give you any trouble?

No, I misunderstood the case.  I could reproduce.