home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.xenix.sco
- Path: sparky!uunet!stanford.edu!ames!purdue!yuma!wendt
- From: wendt@CS.ColoState.EDU (alan l wendt)
- Subject: Unexpected EFAULT error on read
- Sender: news@yuma.ACNS.ColoState.EDU (News Account)
- Message-ID: <Nov15.211709.20675@yuma.ACNS.ColoState.EDU>
- Date: Sun, 15 Nov 1992 21:17:09 GMT
- Nntp-Posting-Host: ives.cs.colostate.edu
- Organization: Colorado State University, Computer Science Department
- Lines: 19
-
- I have a program that gets EFAULT errors trying to do a read.
- The memory and file addresses and the length, etc appear to be
- within legal bounds, i.e. I checked the file size and sbrk(0)
- returns an address beyond the memory addresses involved. I
- also track every sbrk and the address seems to be within the
- limits of the lowest and highest sbrk and to be within a legal
- segment.
-
- The actual memory addresses vary but the file addresses are always
- 0x1b4000 and 0x1b4600. The setup is pretty complicated and defies
- efforts at simplification; it is 286 Xenix 2.3.2 running on a 386,
- large model program, and the program calls "system" which calls
- another program that expand the file before returning to the first
- program that then gets the error.
-
- Has anyone seen this happen before?
-
- thanks
- Alan Wendt
-