home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23392 < prev    next >
Encoding:
Text File  |  1993-01-09  |  986 b   |  38 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!timbuk.cray.com!walter.cray.com!alberti!rsocia
  3. From: rsocia@alberti.cray.com (Rick Socia)
  4. Subject: Kernel FP Math bug?
  5. Message-ID: <1993Jan9.144510.9590@walter.cray.com>
  6. Lines: 26
  7. Sender: rsocia@alberti (Rick Socia)
  8. Nntp-Posting-Host: alberti.cray.com
  9. Organization: Cray Research, Inc.
  10. Date: 9 Jan 93 14:45:10 CST
  11.  
  12. I compiled the following program:
  13.  
  14. main(int argc, char *argv)
  15. {
  16.   double f;
  17.  
  18.   f = atof(argv[1]);
  19.   printf("The answere is %f\n", f);
  20. }
  21.  
  22. The core dumps.  (passing an argument of "0.50").
  23.  
  24. The reason I wrote this example is that I have a much larger application which
  25. uses a line much like this that, when it hits this line, it jumps to another
  26. part of the code with out executing the following instruction.
  27.  
  28. I am getting quite a few FP related problems.
  29.  
  30. I am using kernel 0.99-47 (SLS release) and gcc-2.3.3 with all the whistles
  31. and library bells installed.  The system is a 386/33 with NO 387.
  32.  
  33. Any ideas?
  34.  
  35. -- 
  36.  
  37. Rick Socia
  38.