Date: Fri, 10 Sep 2004 14:45:00 +0000 (UTC) From: Jun Kuriyama <kuriyama@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/db/btree bt_split.c Message-ID: <200409101445.i8AEj0KW054405@repoman.freebsd.org>
index | next in thread | raw e-mail
kuriyama 2004-09-10 14:45:00 UTC
FreeBSD src repository
Modified files:
lib/libc/db/btree bt_split.c
Log:
I found "portsdb -u" dumps core with recent INDEX file, and this is
caused by refering broken (uninitialized?) pointer which is retrieved
from __bt_new() (and from mpool_new()).
I don't know why this linp[0] is read before stored because this
should be controlled by .lower and .upper member of PAGE structure
which are correctly initialized.
But this workaround fixes the problem on my environment and this
module has #ifdef PURIFY option which initializes new and reused
memory from mpool by memset(p, 0xff, size) like as I did.
Please feel free to fix the real bug instead of my workaround.
Revision Changes Path
1.6 +2 -0 src/lib/libc/db/btree/bt_split.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409101445.i8AEj0KW054405>
