home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os9 / 1188 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.8 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!netnews.upenn.edu!ginger.biophys.upenn.edu!mark
  2. From: mark@ginger.biophys.upenn.edu (Mark Elliott)
  3. Newsgroups: comp.os.os9
  4. Subject: Strange problem with setjmp()/longjmp() in OS9
  5. Message-ID: <87473@netnews.upenn.edu>
  6. Date: 31 Aug 92 15:54:58 GMT
  7. Sender: news@netnews.upenn.edu
  8. Organization: University of Pennsylvania
  9. Lines: 29
  10. Nntp-Posting-Host: ginger.biophys.upenn.edu
  11.  
  12.  
  13.     I am programming in OS-9 v2.3 and cannot get setjmp()/longjmp() to
  14. behave. I would like my signal handling routine to call longjmp() to branch
  15. to a location in my main() routine as set by setjmp(). The branch occurs, but
  16. shortly there after I get a Bus Trap error. The curious thing is that the
  17. Bus Trap error occurs a different places in the code, even in subroutines
  18. that have been successfully executed several times since the branch.
  19.     I know that this sounds like a pure programming error in my code (it
  20. probably is!) but I have made every attempt to figure it out. My question is:
  21.  
  22. ********************************************************************************
  23. Does any one out there know about some known problem/bug with setjmp()/longjmp()?
  24. ********************************************************************************
  25.  
  26.     I have used setjmp()/longjmp() successfully in small test programs, but
  27. something is different in my large application. And I am aware of the constraints
  28. required to use setjmp()/longjmp() (i.e. I have NOT called setjmp() in a
  29. subroutine which was returned from before longjmp() executed).
  30.  
  31.     Thanks for any help on this.
  32.  
  33.  
  34.  
  35. Mark Elliott                       |     
  36. Dept of Radiology                  |     Voice: (215) 898-9357
  37. University of Pennsylvania         |     FAX  : (215) 573-2113
  38. Philadelphia, PA 19104 USA         |     Email: mark@ginger.biophys.upenn.edu
  39.  
  40.  
  41.