This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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 libstdc++/49060] New: use of deleted memory in __gnu_cxx::hashtable::erase


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.


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