This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12028] New: GDB crashes on a double free during overload reslution


class A{};
class B{};
class C: public B {};

namespace D{
  int foo (A) { return 11; }
  int foo (C) { return 12; }
}

int main()
{
  A a;
  B b;
  C c;

  D::foo (a);
  //  D::foo (b);
  D::foo (c);

  return 0;
}

Then:

gdb test -ex 'start' -ex 'p D::foo(b)' -ex 'q'

*** glibc detected *** ./gdb/gdb: double free or corruption (!prev):
0x0000000001b7c7c0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x343f475676]
./gdb/gdb[0x4128b6]
./gdb/gdb[0x5071f1]
[...]

-- 
           Summary: GDB crashes on a double free during overload reslution
           Product: gdb
           Version: 7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: swagiaal at redhat dot com
        ReportedBy: swagiaal at redhat dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=12028

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]