This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/49060] New: use of deleted memory in __gnu_cxx::hashtable::erase
- From: "dtardon at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 May 2011 11:40:39 +0000
- Subject: [Bug libstdc++/49060] New: use of deleted memory in __gnu_cxx::hashtable::erase
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49060
Summary: use of deleted memory in __gnu_cxx::hashtable::erase
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: dtardon@redhat.com
Created attachment 24289
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24289
reproducer
How to reproduce:
1. get the attached reproducer
2. g++ -Wall -g -O0 hashtable.cc -o hashtable
3. valgrind ./hashtable
Note:
I think this cannot be triggered through normal use of std::hash_map or
std::hash_set, because it requires that the bucket contains two nodes with
equal key.