Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: sami wagiaalla <swagiaal@redhat.com>
To: Srinath Avadhanula <srinathava@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: double free when trying to call a C++ function in GDB
Date: Thu, 16 Sep 2010 17:01:00 -0000	[thread overview]
Message-ID: <4C924D27.3040004@redhat.com> (raw)
In-Reply-To: <AANLkTi=Z-crWrqW3aY60uPf=BVy0Fq-mGekamwiQ+yn9@mail.gmail.com>

On 09/13/2010 08:58 PM, Srinath Avadhanula wrote:
> Hi Sami,
>
>> provide me with a small reproducer that would be very helpful.
>
> Unfortunately, I am unable to come up with a small reproduction
> program which fails. Let me try to describe the situation we have:
>
> 1. We have a large number of shared libraries which get loaded
> 2. One of the libraries has an overloaded function with two signatures:
>              void printCfgGraph(CG::Cfg* cfg, const char* fname);
>              void printCfgGraph(CG::Region* region, const char* fname);
> 3. CG::Cfg and CG::Region are completely unrelated by inheritance etc.
> 4. We make a call in GDB to:
>              (gdb) call printCfgGraph(mycfg, fname)
>       where mycfg is of type CG_Cfg which is a super-class of CG::Cfg.
> This crashed GDB
>

That did it :). I reproduced it using your description exactly. Filed a 
bug here: http://sourceware.org/bugzilla/show_bug.cgi?id=12028

I should have a fix for ya soon!

Thanks,
   Sami


      reply	other threads:[~2010-09-16 17:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-12  0:24 Srinath Avadhanula
2010-09-12 15:32 ` Srinath Avadhanula
2010-09-13 17:59   ` sami wagiaalla
2010-09-14  0:59     ` Srinath Avadhanula
2010-09-16 17:01       ` sami wagiaalla [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=4C924D27.3040004@redhat.com \
    --to=swagiaal@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=srinathava@gmail.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