BusyBox Bug and Patch Tracking
BusyBox
  

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

- Relationships

- Notes
(0000271)
gkajmowi
07-08-05 09:53

Fixed in SVN. Note that additional work needed to be done to ensure that the use of wchar didn't cause conflits (3 hours of work for 3 lines of code :-( )
 

- Issue History
Date Modified Username Field Change
07-06-05 12:49 tommi New Issue
07-06-05 12:49 tommi File Added: ostream.diff
07-08-05 09:53 gkajmowi Status assigned => resolved
07-08-05 09:53 gkajmowi Fixed in Version  => 0.1.12
07-08-05 09:53 gkajmowi Resolution open => fixed
07-08-05 09:53 gkajmowi Note Added: 0000271
08-02-05 20:13 andersen Status resolved => closed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker