Re: Cannot access '/dev/pts/292': Value too large for defined datatype

From: Andrew Morton
Date: Sat Jun 26 2004 - 16:02:31 EST


simon@xxxxxxx wrote:
>
> whenever i try open a new pseudo-pty, i get a similar message to
> the one in the subject, and one like "fstat: Value too large for defined data
> type" if i open an xterm.

It appears that you're using some variant of the 2.6.7 kernel, yes?

That kernel (and many preceding ones) will create large pty indexes and old
(and/or buggy) userspace fails to handle it correctly.

Post-2.6.7, the allocation of pty indexes was switched to first-fit and
things should now work OK.

Please test a current kernel and send a report.

2.6.7 plus
ftp://ftp.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.7-bk9.gz
would be suitable.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/