Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Kevin Pouget <kevin.pouget@gmail.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb@sourceware.org
Subject: Re: GDB crashing because of Python
Date: Wed, 29 Aug 2012 08:14:00 -0000	[thread overview]
Message-ID: <CAPftXUKx_Qm3+Q4MjXy0i3gifpRgMV4GecCjgLtxpui5v4Ffbg@mail.gmail.com> (raw)
In-Reply-To: <87zk5eer7s.fsf@fleche.redhat.com>

On Tue, Aug 28, 2012 at 9:44 PM, Tom Tromey <tromey@redhat.com> wrote:
> Kevin> so based on `git bisect`, it looks like the errors were introduced by
> Kevin> this commit:
>
> Tom> Can you please try the appended patch?
>
> I spent some time today trying to make a robust test case for this.
> I can see the error clearly with valgrind, but I can't make it crash.
> Printing the Objfile reference counts "works" but it seems to not be
> very robust -- in the failing case the count appears to be 12 on my
> machine, but of course this is just a fluke, and it could well be
> anything.
>
> -lmcheck unfortunately doesn't help, because Python is typically built
> using its own allocator.  It would be nice if we could disable this for
> the test suite -- it is automatically disabled under valgrind (under
> some typical configurations), so it could be done cheaply -- but this
> isn't available.
>
> Anyway, I'm going to write a ChangeLog and send it to the patch list.
>
> Tom


Hello,

Thanks, the patch of the previous email seems to resolve all the bugs
I detailed!

I was thinking that it's strange that I'm the only one seeing this bug
from a file *I* committed ... but maybe I'm the only one actually
using the feature! Did you try to register a Python handler to
`gdb.events.new_objfile` to trigger the bug? (gdb/trunk doesn't not
crash anymore if I remove the connection from my init files)



Cordially,

Kevin


  reply	other threads:[~2012-08-29  8:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-23 13:21 Kevin Pouget
2012-08-23 13:56 ` Tom Tromey
2012-08-23 14:30   ` Kevin Pouget
2012-08-23 18:52     ` Tom Tromey
2012-08-27 16:05       ` Kevin Pouget
2012-08-27 16:36         ` Tom Tromey
2012-08-27 16:39           ` Tom Tromey
2012-08-28 19:45           ` Tom Tromey
2012-08-29  8:14             ` Kevin Pouget [this message]
2012-09-06 19:27               ` Tom Tromey

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=CAPftXUKx_Qm3+Q4MjXy0i3gifpRgMV4GecCjgLtxpui5v4Ffbg@mail.gmail.com \
    --to=kevin.pouget@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=tromey@redhat.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