[Bug c++/15209] New: Runs out of memory with packed structs
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Thu Apr 29 19:50:00 GMT 2004
Taken from http://gcc.gnu.org/ml/gcc-bugs/2004-04/msg02848.html :
This is somewhat ironic: we run out of memory when using packed structs
the wrong way ;-)
I took the files from the package in above mail and tried to compile. Indeed,
we get
into a memory eating loop with the preprocessed source files I attach
(it quickly runs into the 500-600 MB range and then eventually crashes
for me). Removing the cause of the warning messages
x.ii:34314: warning: ignoring packed attribute on unpacked non-POD field
`MD5Hash PACKET_HEADER::hash'
x.ii:34315: warning: ignoring packed attribute on unpacked non-POD field
`MD5Hash PACKET_HEADER::setid'
makes the problem to go away, though. Compile line is simply
c++ x.ii
With 3.3.4, I get an ICE somewhere in the libstdc++ parts of 3.4, so I can't
say from the preprocessed sources (all that I have left on my harddisk right
now) whether this is a regression.
I don't have the time to reduce memory hogs at present, so if someone else
is interested in picking this up, feel free to.
Wolfgang
--
Summary: Runs out of memory with packed structs
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15209
More information about the Gcc-bugs
mailing list