Subject: KDASSERT(sa->sa_nstacks > 0); in sa_upcall_userret(struct lwp *l)
To: current-users@netbsd.org <current-users@netbsd.org>
From: Lars Heidieker <lars@heidieker.de>
List: current-users
Date: 02/09/2003 12:16:17
Hi,
in the function sa_upcall_userret(struct lwp *l) / kern_sa.c
there is a slight chance getting the KDASSERT(sa->sa_nstacks > 0);
kicking in
as after the "while (sa->sa_nstacks == 0)" loop checking the condtion
tested in the assertion there is a chance of sleeping (sau =
sadata_upcall_alloc(1);)
so under extrem memroy pressure the system might panic (or later crash
without the assertion)
I hope I did not miss anything important in this context.
Greetings,
Lars
--
Mystische Erklärungen.
Die mystischen Erklärungen gelten für tief;
die Wahrheit ist, daß sie noch nicht einmal oberflächlich sind.
--Friedrich Nietzsche