[Bug tree-optimization/36679] New: lnstat command dies if built with O1/O2

2008-06-30 Thread shemminger at vyatta dot com
-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: shemminger at vyatta dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36679

[Bug tree-optimization/36679] lnstat command dies if built with O1/O2

2008-06-30 Thread shemminger at vyatta dot com
--- Comment #1 from shemminger at vyatta dot com 2008-06-30 17:16 --- Created an attachment (id=15834) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15834action=view) Compiler tree for lnstat compile -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36679

[Bug tree-optimization/36679] lnstat command dies if built with O1/O2

2008-06-30 Thread shemminger at vyatta dot com
--- 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