This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
fstreams Bug (memory error)
- To: gcc-bugs at gcc dot gnu dot org
- Subject: fstreams Bug (memory error)
- From: "Mark M. Morgan" <mmm2a at cs dot virginia dot edu>
- Date: Fri, 4 Feb 2000 12:30:12 -0500 (EST)
The fstreams now have a bug in them which causes them to attempt to
delete NULL. I don't know if this is because they are double deleting, or
just deleting a NULL in general, but it seems to be a common error in
the fstreambase class or lower. It doesn't show up in programs usually
because the normal version of delete[] ignores requests to delete NULL, however
we are overloading the normal memory management routines and so we found the
bug through our version of delete. Attached is the .c and .ii files for
a simple example as well as a script with the compile line used, and a file
containing the compile lines output. The system is:
Red Hat Linux 6.1
Kernel 2.2.12-20
gcc 2.95.2
Intel Pentium 733
-Mark
--
Mark M. Morgan Internet: morgan@Virginia.EDU
Computer Science WWW : http://watt.seas.virginia.edu/~mmm2a/
University of Virginia Phone : Home (804) 295-2953
Work (804) 982-2790
Fax (603) 843-5947
'Give an Engineer a problem that "can't be solved", and he will
set upon it like a starved Chihuahua on a pork chop.'
Bug.tar.bz2