Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Bus Error
Message-ID: <1990Mar11.223143.16714@utzoo.uucp>
Organization: U of Toronto Zoology
References: <16139.25F89344@urchin.fidonet.org>
Date: Sun, 11 Mar 90 22:31:43 GMT

In article <16139.25F89344@urchin.fidonet.org> Lynn.Lively@p4694.f506.n106.z1.fidonet.org (Lynn Lively) writes:
>Does anyone know what a "Bus Error" is? ...

You don't say what machine this is on, and that's important, because the
definition of "bus error" is system-specific.  Typical cause is accessing
a multi-byte value at an improper alignment or accessing a part of your
address space which has not been allocated.  The usual reason is trashed
pointers; common underlying problems are running off the end of an array
and trashing other variables, forgetting to initialize a pointer before
using it, or continuing to use a memory area after handing it to free().
-- 
MSDOS, abbrev:  Maybe SomeDay |     Henry Spencer at U of Toronto Zoology
an Operating System.          | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
