[Xastir-Dev] Bus errors
Jack Twilley
jmt at twilley.org
Wed Nov 19 13:33:29 EST 2003
WARNING: Unsanitized content follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "Curt" == Curt Mills <Curt> writes:
[... my bus error report ...]
Curt> Undoubtedly. Bus Error is Mac-specific or perhaps FreeBSD or
Curt> Solaris, right? I don't recall seeing that on an x86 platform
Curt> before. As I recall, Bus Error means that you're out of word
Curt> alignment for memory accesses, meaning we bumped a pointer by an
Curt> odd number of bytes.
A bus error is indeed an alignment error. In this case, the bus error
is the immediate result -- the real bug is accessing free'd memory
which had been reset to 0xd0 -- a FreeBSD-specific thing to help
people find bad code.
Curt> That can be caused either by a bad pointer (pointing to
Curt> something that has already been free'd) or by doing pointer
Curt> arithmetic poorly. Sounds like in this case it's the former.
I have confirmed that it's a bad pointer. I just wish I knew better
how to track it down. It's somewhere in that linked list.
Jack.
- --
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQE/u7d/GPFSfAB/ezgRAuxvAJwKtfg6zRMUAMEkOsUZHYyGqjKnYgCfcuyF
vgzY5Q9b8gVXpUjf9Mh4IO0=
=LVpj
-----END PGP SIGNATURE-----
More information about the Xastir-dev
mailing list