This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug Report: Illegal Instruction


   > I am receiving an "illegal instruction" error during run time.  The
   > error occurs in a switch statement that involves formatted output to
   > cout.
   
   Could it be a buffer overflow problem?
   
An update to my previous thoughts on this:

The code prints out a typical table with column and row headings ...
the first row is printed, the second row, etc..  The error was
occuring as the header of the third row was to be printed.  The row
and column headings are strings and the actual table values are
strings or integers when the problem occurs.

I tried a slight change to the code to omit printout of the first row
(the column headings).  Error still occured at the beginning of the
third row.  I then changed the code to omit printout of the first and
second row.  The occurence of the error moved to the beginning of the
fourth row.  So it's like the problem occurs at the end of cycling
from string output to number output and back to string output.

Bill


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]