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

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!enterpoop.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!alsaggaf
  3. From: alsaggaf@athena.mit.edu (M. Saggaf)
  4. Subject: Re: Kernel FP Math bug?
  5. In-Reply-To: jliddle@rs6000.cmp.ilstu.edu's message of Sat, 09 Jan 1993 22:48:46 GMT
  6. Message-ID: <ALSAGGAF.93Jan9183512@e40-008-4.mit.edu>
  7. Sender: news@athena.mit.edu (News system)
  8. Nntp-Posting-Host: e40-008-4.mit.edu
  9. Organization: Massachusetts Institute of Technology
  10. References: <1993Jan9.144510.9590@walter.cray.com>
  11.     <1993Jan09.224846.12403@rs6000.cmp.ilstu.edu>
  12. Date: Sat, 9 Jan 1993 23:35:18 GMT
  13. Lines: 30
  14.  
  15. >>>>> On Sat, 09 Jan 1993 22:48:46 GMT, jliddle@rs6000.cmp.ilstu.edu (Jean Liddle) said:
  16.  
  17. JL> In article <1993Jan9.144510.9590@walter.cray.com> rsocia@alberti.cray.com (Rick Socia) writes:
  18. >I compiled the following program:
  19. >
  20. >main(int argc, char *argv) { double f;
  21. >
  22. >  f = atof(argv[1]);
  23. >  printf("The answere is %f\n", f);
  24. >}
  25. >
  26. >The core dumps.  (passing an argument of "0.50").
  27. >
  28.  
  29. JL> I am running gcc 2.3.3 with all the new libs (gcc 486 binaries)
  30. JL> and the new binutils, on an i486/33.  I compiled the same program
  31. JL> and also experienced the "core dump" problem.
  32.  
  33. JL> Also, my kernel is compiled without math emulation, if that helps
  34. JL> in narrowing down the possibilities ...
  35.  
  36. Declare argv as *argv[] as it should be declared and the 'problem'
  37. disappears. argv is not a pointer to a character, it's an array of
  38. such pointers. The above program would bomb even on a Cray.
  39.  
  40. Cheers,
  41.  
  42. /Muhammad M. Saggaf                 | Stop the genocide
  43.  alsaggaf@athena.mit.edu            | Save Bosnia
  44.  
  45.