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