This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/12028] New: GDB crashes on a double free during overload reslution
- From: "swagiaal at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 16 Sep 2010 16:17:02 -0000
- Subject: [Bug c++/12028] New: GDB crashes on a double free during overload reslution
- Reply-to: sourceware-bugzilla at sourceware dot org
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.