[Bug libstdc++/41448] std::sort on std::vector<float> with certain values leads to segfault in the vector destructor
4ernov at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Sep 24 18:39:00 GMT 2009
------- Comment #7 from 4ernov at gmail dot com 2009-09-24 18:39 -------
Is there anything in C++ Standard concerning this case?
Maybe it's more preferrable to throw exception or something like this.. Now it
seems to make memory leak in the operated vector.
The output is like this:
*** glibc detected *** /usr/local/share/workspace/playground/gcc_sort:
munmap_chunk(): invalid pointer: 0x0000000001d2c550 ***
*** glibc detected *** /usr/local/share/workspace/playground/gcc_sort:
malloc(): memory corruption: 0x0000000001d2bca0 ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41448
More information about the Gcc-bugs
mailing list