Re: free(): double free detected in tcache 2

Graham Cobb <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <[email protected]>
> If you recompile dar and still have the problem, can compile and run
> this very simple C++ code. It would let me validate this hypothesis
> which is about lack of initialization of class std::deque
> 
> # cat test1.cpp
> // -----
> #include <string>
> #include <deque>
> 
> int main()
> {
>     std::deque<std::string> fichier;
>     fichier.clear();
> }
> // -----
> # g++ test1.cpp -o test1
> # ./test1

As this only took a few seconds, I have done this. The test program
executes without error:

cobb@novatech ~/denis> cat >test1.cpp
// -----
#include <string>
#include <deque>

int main()
{
    std::deque<std::string> fichier;
    fichier.clear();
}
// -----
cobb@novatech ~/denis> g++ test1.cpp -o test1
cobb@novatech ~/denis> ./test1
cobb@novatech ~/denis>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.