public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 1.7.10s 20110729 - problem listing services in /proc
Date: Sat, 30 Jul 2011 20:14:00 -0000	[thread overview]
Message-ID: <20110730201347.GA29022@ednor.casa.cgf.cx> (raw)
In-Reply-To: <20110730082130.GI26203@calimero.vinschen.de>

On Sat, Jul 30, 2011 at 10:21:30AM +0200, Corinna Vinschen wrote:
>On Jul 30 14:44, jojelino wrote:
>> Breakpoint 2, fhandler_registry::close (this=0x612cba5c)
>>     at /tmp/winsup/winsup/cygwin/fhandler_registry.cc:856
>> 856           cfree (value_name);
>> 10: this->value_name = 0x612cb374 L"services"
>> (gdb)
>> Continuing.
>> 
>> 0x612cba5c->value_name = 0
>> 0x612cb124_2->value_name = 0x612cba5c->value_name = 0x612cb374
>> L"services" (quadruple-freed but known as not freed)
>> 
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x7c80bef7 in RaiseException () from
>> /cygdrive/c/WINDOWS/system32/kernel32.dll
>> 
>> In brief, same address quadruple-freed. because of dangling pointer.
>> Regards.
>
>It turned out that I could reproduce the problem, I just didn't notice
>it.  I expected an error message but find died silently, so I took that
>as "it works".  Serves me right for looking into Cygwin bug reports too
>late at night.

Funny.  I did exactly the same thing maybe for the same reason.  If I
had run the command under strace, I would have seen that it failed.

The snapshot bisection + jojelino's debugging did point at the reason
for the problem, though.  I changed the way dup() worked slightly back
in May and that tickled a nascent problem in fhandler_registry::dup.

Thanks to everyone who contributed debugging details.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

      reply	other threads:[~2011-07-30 20:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-29 18:59 David Rothenberger
2011-07-29 20:22 ` Corinna Vinschen
2011-07-29 22:36   ` Yaakov (Cygwin/X)
2011-07-29 22:42     ` David Rothenberger
2011-07-30  5:45       ` Christopher Faylor
2011-07-30  0:13   ` David Rothenberger
2011-07-30  5:44 ` jojelino
2011-07-30  8:22   ` Corinna Vinschen
2011-07-30 20:14     ` Christopher Faylor [this message]

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-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110730201347.GA29022@ednor.casa.cgf.cx \
    --to=cgf-use-the-mailinglist-please@cygwin.com \
    --cc=cygwin@cygwin.com \
    /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).