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

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

I tried to reproduce this, but without any shared libraries. I do not
know if that would make a difference.

Let me know if there is some instrumentation I can add somewhere to
help you narrow this down.

Thanks,
Srinath


  reply	other threads:[~2010-09-14  0:59 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 [this message]
2010-09-16 17:01       ` sami wagiaalla

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='AANLkTi=Z-crWrqW3aY60uPf=BVy0Fq-mGekamwiQ+yn9@mail.gmail.com' \
    --to=srinathava@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=swagiaal@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