2016-03-16 17 views

risposta

3

Penso che tu possa ignorarlo. Ho ricevuto il messaggio in una nuova assegnazione in un codice che sembrava funzionare perfettamente e ho anche capito il messaggio nel codice seguente:

#include <vector> 

struct Something 
{ 
    Something() : a1(0), b1(0) { } 
    unsigned short a1; 
    unsigned short b1; 
}; 

const int allocsize = 10000; 

struct Tester 
{ 
    Tester() 
    { 
     for (int u = 0; u < allocsize; ++u) 
      data.push_back(new Something[519]); 
    } 

    ~Tester() 
    { 
     for (int u = 0; u < allocsize; ++u) 
      delete[] (data[u]); 
    } 

    std::vector<Something*> data; 
}; 

void test() 
{ 
    Tester t; 
    // while (true) {;} 
} 

int main() 
{ 
    test(); 
    return 0; 
} 

Ho anche notato che gli altri sperimentano lo stesso problema:

Valgrind reporting a segment overflow