This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/36679] lnstat command dies if built with O1/O2
- From: "shemminger at vyatta dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2008 17:53:11 -0000
- Subject: [Bug tree-optimization/36679] lnstat command dies if built with O1/O2
- References: <bug-36679-16399@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from shemminger at vyatta dot com 2008-06-30 17:53 -------
The problem turned out to be an out of bounds array reference.
The number of fields (fps->num) was 71, and on 64 were allocated.
This caused out of bounds reference to corrupt stack variables. Since
stack variables are assigned differently after optimization, that was
the reason for the red herring.
--
shemminger at vyatta dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36679