|
Viewing Issue Simple Details
[ Jump to Notes ]
|
[ View Advanced ]
[ Issue History ]
[ Print ]
|
|
ID |
Category |
Severity |
Reproducibility |
Date Submitted |
Last Update |
|
0000326 |
[uClibc++] Other |
major |
always |
07-06-05 12:49 |
08-02-05 20:13 |
|
|
Reporter |
tommi |
View Status |
public |
|
|
Assigned To |
gkajmowi |
|
Priority |
normal |
Resolution |
fixed |
|
|
Status |
closed |
|
Product Version |
0.1.11 |
|
|
Summary |
0000326: destructor of basic_ofstream uses destructed streambuf |
|
Description |
basic_ofstream has a member sb of type basic_filebuf. This is destroyed in the destructor of basic_ofstream. After that the destructor of basic_ostream is called, which calls flush, which results in a sync-call of the underlying streambuf. In case of basic_ofstream (and other stream-classes) the streabuf-object is already destroyed. |
|
Additional Information |
In Bug 321 there is a example of a derived stream, which crashes because of this bug.
Patch attached. |
|
|
Attached Files |
ostream.diff [^] (512 bytes) 07-06-05 12:49 |
|
|