lkml.org 
[lkml]   [2003]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[Bug 645] New: Not enough ptys

http://bugme.osdl.org/show_bug.cgi?id=645

Summary: Not enough ptys
Kernel Version: 2.5.68
Status: NEW
Severity: normal
Owner: bugme-janitors@lists.osdl.org
Submitter: shawk@gmx.net


Distribution: Gentoo
Hardware Environment: AMD 2700+, ECS K7VTA3 Rev5.0
Software Environment: kernel 2.5.68, noapic passed to kernel, gcc 3.2.2,
glibc 2.3.1, using /dev filesystem

Problem Description:

Using the kernel 2.5.68 I am unable to open any terminals or consoles when
working with X, however no error message is given. They simply woun't load.
Using the command "startx" results in "not enough ptys" and refuses to load.
I checked the net and mailing lists, but none of the older topics like not
having /dev/ptyd* /dev/ptys* or /dev/pts do apply. I found them all on my
system.

I tested Kernels 2.5.63 and 2.5.67 and both work flawlessy there. I compiled
both 2.5.68 and 2.5.67 with the same options, and only 2.5.68 showed this
behavior.

Kernel Settings concerning PTY :
CONFIG_DEVPTS_FS=y (tried without this option, no change in behavior)
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256


Diffing drivers/char/pty.c on both kernels results in the following output:

# diff /usr/src/linux-2.4.67/drivers/char/pty.c
/usr/src/linux-2.5.68/drivers/char/pty.c
308d307
< extern void tty_register_devfs (struct tty_driver *driver, unsigned int
flags, unsigned minor);
336,342d334
<
< /* Register a slave for the master */
< if (tty->driver.major == PTY_MASTER_MAJOR)
< tty_register_devfs(&tty->link->driver,
< DEVFS_FL_CURRENT_OWNER | DEVFS_FL_WAIT,
< tty->link->driver.minor_start +
<
minor(tty->device)-tty->driver.minor_start);

Maybe its related to this?
Simply copying the file from .67 into the .68 kernel will result in a break
when trying to compile.

If you need any more information please let me know.

Steps to reproduce: simply compile 2.5.68 kernel on my PC


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.038 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site