This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/37721] Segmentation fault
- From: "ivranos at freemail dot gr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Oct 2008 11:52:02 -0000
- Subject: [Bug libstdc++/37721] Segmentation fault
- References: <bug-37721-15818@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from ivranos at freemail dot gr 2008-10-03 11:52 -------
I managed to replicate the bug in simple code:
#include <iostream>
#include <ctime>
#include <cstdlib>
#include <vector>
int main()
{
using namespace std;
vector<int> intVector(1000*1000);
srand(time(0));
for(size_t i= 0; i< RAND_MAX; ++i)
{
for (vector<int>::size_type j= 0; i< intVector.size(); ++j)
intVector[j]= rand();
sort(intVector.begin(), intVector.end());
}
}
--
ivranos at freemail dot gr changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37721