Subject: ptm
To: None <>
From: Denis Lagno <>
List: current-users
Date: 06/04/2004 15:58:48
Recently pseudo-device ptm appeared uncommented in GENERIC.
What is it?
It is broken (on i386). It causes reproducible panics.
If I open more than ~16 pseudoterminals via screen or xterm
kernel panics like this:

panic: kernel debugging assertion "(fdp->fd_lomap[off] & (1
<< (fd & NDENTRYMASK))) != 0" failed:
line 190
stopped in pid 345.1 (screen-4.0.1) at
netbsd:breakpoint+0x4: popl %ebp

Also MP kernel built with LOCKDEBUG stops on uniprocessor
i386 at startup:

simplelock: uninitialized lock
lock: 0xc0730a6c, currently at:
on CPU 0
cwdshare ...
fork1 ...
kthread_create1 ...
deferred_crypto_thread ...
kthread_run_deferred_queue ...
main ...
Stopped in pid 0.1 (swapper) at netbsd:breakpoint+0x4:

The latter works fine if continued.