This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/53510] [4.8 Regression] OOM while compile some code
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 May 2012 07:30:28 +0000
- Subject: [Bug middle-end/53510] [4.8 Regression] OOM while compile some code
- Auto-submitted: auto-generated
- References: <bug-53510-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53510
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2012-05-29
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-05-29 07:30:28 UTC ---
Created attachment 27515
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27515
gcc48-pr53510.patch
Ugh, that leaks like crazy. Not only it forgets to free buffers, but also
doubles the size of the allocation (which is fine) but only adds 2 to the
expected allocated block length, so it allocates twice as much for every 2
bytes beyond 200 characters on a line.