public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/41448]  New: std::sort on std::vector<float> with certain values leads to segfault in the vector destructor
@ 2009-09-23 15:44 4ernov at gmail dot com
  2009-09-23 15:45 ` [Bug libstdc++/41448] " 4ernov at gmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: 4ernov at gmail dot com @ 2009-09-23 15:44 UTC (permalink / raw)
  To: gcc-bugs

I suffer strange segfault in program using std::sort on std::vector<float>. The
segfault occures in destructor of sorted std::vector after several sort/clear
cycles. The values to reproduce the crash is actually decoded audio. I'm so
sorry, I can't evaluate the proper sequence of bad values so I've uploaded the
whole chunk here: http://downmusic.ru/test1 (110 mb sorry but i found no better
way...) I know it's not the ideal way but maybe it helps.

As far as I found out it is because of NaNs in float vector. Also,
std::stable_sort never leads to crash as I've tested.


-- 
           Summary: std::sort on std::vector<float> with certain values
                    leads to segfault in the vector destructor
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: 4ernov at gmail dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-10-02  8:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-23 15:44 [Bug libstdc++/41448] New: std::sort on std::vector<float> with certain values leads to segfault in the vector destructor 4ernov at gmail dot com
2009-09-23 15:45 ` [Bug libstdc++/41448] " 4ernov at gmail dot com
2009-09-23 15:48 ` 4ernov at gmail dot com
2009-09-23 15:48 ` 4ernov at gmail dot com
2009-09-23 15:57 ` pinskia at gcc dot gnu dot org
2009-09-23 16:04 ` 4ernov at gmail dot com
2009-09-23 16:13 ` pinskia at gcc dot gnu dot org
2009-09-24 18:39 ` 4ernov at gmail dot com
2009-09-29 11:04 ` chris at bubblescope dot net
2009-09-29 11:56 ` paolo dot carlini at oracle dot com
2009-10-02  8:41 ` 4ernov at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).