home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 20070 < prev    next >
Encoding:
Text File  |  1993-01-28  |  990 b   |  29 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!dog.ee.lbl.gov!news!vela!cs.uiuc.edu!sparc0b!pjl
  3. From: pjl@cs.uiuc.edu (Paul Lucas)
  4. Subject: Re: What is bus error ??
  5. Message-ID: <C1Ist3.Ixq@cs.uiuc.edu>
  6. Sender: news@cs.uiuc.edu
  7. Organization: University of Illinois at Urbana-Champaign
  8. References: <9301271441.AA09698@peacock.cis.ohio-state.edu>
  9. Distribution: usa
  10. Date: Wed, 27 Jan 1993 16:07:51 GMT
  11. Lines: 16
  12.  
  13. In <9301271441.AA09698@peacock.cis.ohio-state.edu> ychung@news.cis.ohio-state.edu (yiu fai chung) writes:
  14.  
  15. >Sometime I got strange error message like "bus error" when I was using
  16. >C++. Does anyone know the reason ?
  17.  
  18.     A bus error can mean:
  19.  
  20.     1. odd pointer value on an even-pointer architechure machine.
  21.     2. addressing value outside your address space.
  22.  
  23.     Any language that allows direct pointer manipulation can cause
  24.     bus errors, not just C++.  You have a bug in your program.
  25. -- 
  26.     - Paul J. Lucas
  27.       AT&T Bell Laboratories
  28.       Naperville, IL
  29.