It disappears when I rebuild xemacs without Berkeley database. It is
not an xemacs bug.
Somehow linking with shared `-ldb' breaks `select' from system libc.
`select' handles errors incorrectly. Kernel returns `EINTR' to
`select' function, but it does not get to `errno' upon `select'
return. This confuses `_XWaitForReadable' that calls `select'. See
gdb backtrace in <034e3c2b6b7864-gin(a)mo.msk.ru> for what happens
furher.