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: unassig...@gcc.gnu.org
        ReportedBy: dtar...@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.

Reply via email to