home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!stanford.edu!unix!hplabs!hp-cv!hp-pcd!news1.boi.hp.com!cupnews0.cup.hp.com!hpscit.sc.hp.com!hplextra!hpfcso!hstroyan
- From: hstroyan@hpfcso.FC.HP.COM (Howard Stroyan)
- Newsgroups: comp.sys.hp
- Subject: Re: bus error problems, how to solve?
- Message-ID: <7371500@hpfcso.FC.HP.COM>
- Date: 18 Dec 92 18:48:37 GMT
- References: <A0W9TOW@math.fu-berlin.de>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- Lines: 23
-
- In comp.sys.hp, holger@spider.chemie.fu-berlin.de (Holger Busse) writes:
-
- > Hello HPNetters,
- > does anybody have some information how to search for the origin of
- > bus errors, that occur when executing programs.
-
- As pointed out in a previous response you are looking for a bad address
- usage, most likely due to an alignment issues. If you happen to wander
- into an I/O mapped region of the memory map (like a framebuffer) you can
- also produce bus errors.
-
- If your code can generate the bus error when compiled debuggable, then
- xdb can be used to locate the point of the offense (by executing in
- xdb it will break at the point of code which generated the bus error).
- If debuggable code does not produce the error, then this is a clue that
- an uninitialized variable/pointer is to blame (using debuggable code
- has a tendency to implicitly initialize these variables to "nice" values
- like zero).
-
- --
- Howard Stroyan
- Hewlett-Packard hstroyan@fc.hp.com
- User Interface Technology Division
-