home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / xenix / sco / 3327 < prev    next >
Encoding:
Text File  |  1992-11-15  |  1.2 KB  |  31 lines

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