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++/58800] [4.8.2/4.9 Regression] std::nth_element segfaults on valid input


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

--- Comment #6 from Andy Lutomirski <luto at mit dot edu> ---
I changed two instances of __last - 2 to __last - 1.  I'm running against
r203836 on gcc-4_8-branch.

The thing that caught it was an experiment, not part of my test suite, so this
is a little tricky.  It already survived longer than the unpatched version did.
 The crash wasn't the same segfault, though -- it was a much later crash due to
memory corruption.  I'll let it run for a while under valgrind to see what, if
anything, pops up.


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