[Bug libstdc++/58737] New: leak in std::regex_match

larsbj at lyx dot org gcc-bugzilla@gcc.gnu.org
Tue Oct 15 11:25:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58737

            Bug ID: 58737
           Summary: leak in std::regex_match
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: larsbj at lyx dot org

I have something that certainly looks like a memory leak.

g++ --version
g++ (GCC) 4.9.0 20131014 (experimental)

g++ -std=gnu++11 -O2 leak.cpp

If I increase the amount of looping the leak reports
increases linearly.

All output from valgrind below. It might be regex or it might be some
allocator issue, I have seen something with std::deque as well outside
any regex context. Not been able to reproduce though.



More information about the Gcc-bugs mailing list