[Xastir-Dev] Bus errors

Jack Twilley jmt at twilley.org
Tue Nov 18 16:32:32 EST 2003


WARNING: Unsanitized content follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've left xastir running for a while and after a day or so it exits
with a bus error.

I was able to generate a core the last time this happened, and the
output was interesting.

The bus error was at line 7098 in src/db.c in check_station_remove().

That line is "if (p_station->sec_heard < t_rem) {".
The bad memory access which caused the error was retrieving the value
for p_station->sec_heard.  The value of p_station was 0xd0d0d0d0,
which is very suspicious to me.

Apparently FreeBSD's malloc overwrites free()'d memory with 0xd0 to
prevent re-use.  This means there's a bug in our software somewhere.

Jack.
(and if I knew how to find it... I'd find it. *grin*)
- -- 
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/uo/2GPFSfAB/ezgRAs8BAJ0Xqtz4th0x45NaqmBKvLUXagsBAQCfcKtb
W/d8/25fnC22HFmcPdP7tz4=
=5mqT
-----END PGP SIGNATURE-----



More information about the Xastir-dev mailing list