[BusyBox] telnetd in kernel 2.6 segfaults (devfs)

Rich Ireland rich.ireland at idahotech.com
Wed Feb 9 20:14:42 UTC 2005


Ignacio García Pérez wrote:
> 
> I'm using busybox-1.00, with a minimal root filesystem. I use devfs.
 >
> If I load kernel 2.6.9, telnetd segfaults upon the first connection.
> 
> If I load kernel 2.4.29, telnetd runs file.

Just as another datapoint, I see similar behavior on an Atmel at91rm9200 
(csb337) with an ext2 ram initrd.  I had thought that I had a broken 
build since I used glibc instead of uClibc.

> I have traced the problem down to the ptsname() call. Under kernel 2.4 it
> returns "/dev/pts/0", while under kernel 2.6 it returns NULL. As telnetd
> does not do error checking, hence the segfault.
> 
> I have devfs enabled in both kernels, and also the pty filesystem is enabled
> (note that under kernel 2.6, open("/dev/ptmx") returns a valid handle).
> 
> Any clues?

None from this mostly linux newbie.

-- 
Rich Ireland
Firmware Engineer - Perforce Advocate
Idaho Technology, Inc.
http://www.idahotech.com/
mailto:rich.ireland at idahotech.com




More information about the busybox mailing list