[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: more glibc breakage on kfreebsd-amd64



On Wed, Mar 15, 2006 at 02:41:38PM +0100, Petr Salinger wrote:
> Hi.
> 
> > I found a bit more breakage in glibc for amd64.
> 
> I am not sure which parts are due to 
> 
> - amd64
> - FreeBSD 6 in general

I didn't find any of these problems when using kfreebsd-6.0 on i386, so I think
we can discard that.

> - kfreebsd-6 packaging without 900_devfs_perm_fixes.diff

I'm using 6.0-0.1+kbsd.r1240 on i386, which doesn't have this patch, and sshd
works fine.

> > sshd aborts on SIGTRAP when recieving an incoming connection.
> 
> I have working sshd in kfreebsd-amd64 under qemu, 

Btw, were you affected by #356929 ?

> root can log in without problems,
> but for regular user it fails:
> 
> sshd[417]: Accepted password for aa from 10.16.0.26 port 57787 ssh2
> sshd[419]: (pam_unix) session opened for user aa by (uid=0)
> sshd[417]: fatal: mm_send_fd: sendmsg(4): Bad file descriptor
> sshd[417]: error: close(s->ptymaster/0): Bad file descriptor

Ah, that EBADF is the same error we see during startup (on i386 too):

/lib/init/mount-functions.sh: line 108: 0: Bad file descriptor
/etc/rcS.d/S10checkroot.sh: line 41: 0: Bad file descriptor

(I looked at this when packaging kfreebsd-6; I remember these scripts did some
sort of weird shell redirection magic that I didn't fully understand.)

> sshd[419]: fatal: mm_receive_fd: recvmsg: expected received 1 got 0
> sshd[419]: (pam_unix) session closed for user aa
> 
> When I tried to run sshd under FreeBSD gdb, it got SIGTRAP too.
> 
> Ideal would be to try sync version in unrelesed between i386 and amd64
> and build native gdb for kfreebsd with linuxthreads.

Native gdb never worked too well on gnu/kfreebsd... Besides, gdb needs libkvm
which needs libfreebsd which (on amd64) won't build easily due to kernel header
breakage.

-- 
Robert Millan



Reply to: