[Bug libstdc++/49060] New: use of deleted memory in __gnu_cxx::hashtable::erase
dtardon at redhat dot com
gcc-bugzilla@gcc.gnu.org
Thu May 19 11:42:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list