home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / mail / elm / 3997 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  2.2 KB

  1. Path: sparky!uunet!wupost!darwin.sura.net!spool.mu.edu!agate!doc.ic.ac.uk!uknet!yorkohm!nigelm
  2. From: nigelm@ohm.york.ac.uk (Nigel Metheringham)
  3. Newsgroups: comp.mail.elm
  4. Subject: Re: Problems in elm2.4 PL20
  5. Message-ID: <1993Jan8.153313.12361@ohm.york.ac.uk>
  6. Date: 8 Jan 93 15:33:13 GMT
  7. References: <1993Jan6.162803.25156@coplex.com> <C0GKop.DwL@ccu.umanitoba.ca> <C0I6H3.Cu6@dutiws.twi.tudelft.nl>
  8. Organization: Electronics Department, University of York, UK
  9. Lines: 45
  10.  
  11. In <C0I6H3.Cu6@dutiws.twi.tudelft.nl> kooper@dutiws.twi.tudelft.nl (Rob Kooper) writes:
  12.  
  13. >In article <C0GKop.DwL@ccu.umanitoba.ca> rahardj@ccu.umanitoba.ca (Budi Rahardjo) writes:
  14. >>In <1993Jan6.162803.25156@coplex.com> dean@coplex.com (Dean Brooks) writes:
  15. >>
  16. >>>2.  Do the following commands exactly as they are shown:
  17. >>
  18. >>>    a.  Enter elm by typing "elm" at the UNIX prompt.
  19. >>>    b.  Hit 'a' to enter the alias screen.
  20. >>>    c.  Hit 'x' to immediately leave the alias screen.
  21. >>>    d.  Press 'RETURN' to read the highlighted message.
  22. >>>    e.  Press 'i' to return to the main index screen.
  23. >>>    f.  Press 'x' to exit elm.
  24. >>
  25. >>>    When I do these exact commands in this order, I get:
  26. >>>        Bus Error signal!
  27. >>>        Emergency exit taken! All temp files intact!
  28. >>
  29. >>Hmm... I tried that and everything was okay. No error, etc.
  30. >>Sun OS 4.1.2, Sun sparcstation 2, Sun C compiler.
  31.  
  32. >Perhaps we have a different setup than you but when I tried it I got the same
  33. >error he describes. I tried it also on a SPARC (number uknown), SUN OS 4.1.2
  34. >and default C compiler. Strange.
  35.  
  36. Its an unitialised pointer which is then used as the target of a
  37. sprintf.  Whether it works depends on how your system intialises (or
  38. not) automatic variables, and possibly what was on the stack just
  39. before the function was called.
  40.  
  41. The problem is with the exit_prog() function in exit.c .
  42. The fix is to change the
  43.   char * msg
  44. to something like
  45.   char msg[STRING]
  46.  
  47. I gave a patch to Syd earlier in the week, I assume he will issue an
  48. official fix soon.
  49.  
  50.     Nigel.
  51.  
  52. -- 
  53. #   Nigel Metheringham  -- (NeXT) EMail: nigelm@ohm.york.ac.uk    #
  54. #   System Administrator, Electronics Dept, University of York    #
  55. #   York YO1 5DD. Phone: +44 904 432374, Fax: +44 904 432335      #
  56.