Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 110145

Summary: electric fence says there's a memory leak in libstdc++-v3-3.3.6 when using ios::unitbuf
Product: Gentoo Linux Reporter: Yuri Karaban <dev>
Component: [OLD] Core systemAssignee: Aaron Walker (RETIRED) <ka0ttic>
Status: RESOLVED CANTFIX    
Severity: major CC: toolchain
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Yuri Karaban 2005-10-22 07:45:00 UTC
-----------[cut]------------------
#include <iostream>

using namespace std;

int
main ()
{
  cout.setf(ios::unitbuf);
  cout << "Hello World" << endl;
}
----------[cut]---------------------------

If to link this simple program with -lefence (Electric Fence).
Electric fence reporting that there is a memory leak:

Electric Fence: ptr=0xb7c47ff8 size=8 alloced from UNKNOWN (use #include
"efence.h")(0) not freed
ElectricFence Aborting: 
Electric Fence: EF_delFrame(): Found non free'd pointers.

Illegal instruction

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Mark Loeser (RETIRED) gentoo-dev 2005-12-12 07:50:18 UTC
Upstream doesn't care about 3.3 anymore, so we'll have a hard time fixing this
probably.