Menu ▾ ▴

#5278 killcontext doesn't always refuse to kill an active context

None
open
nobody
killcontext (4)
5
4 hours ago
4 hours ago
No

Detected by Claude:

killcontext should never kill an active context. However, in this example it does:

supcontext(a)$
assume(p > 0)$
supcontext(b)$
is(p > 0);      /* true */
killcontext(a); /* done - it killed it, even though it's active */
is(p > 0);      /* unknown */
contexts;       /* [b, initial, global] */

If the first is(p > 0) is removed, killcontext correctly refuses.

Discussion


Log in to post a comment.