ssh fails with "Bad file descriptor" on Interix (SFU)

AKF_SDS <[email protected]>
Newsgroups gmane.emacs.windows
Message-ID <[email protected]>
Be forewarned, this is a bit complex...

I'm running Emacs v23.1 on Windows XP. Within Emacs I'm running
Gentoo-Prefix via Interix v3.5. With this setup ssh hangs without output. I
ran ssh with truss and received the output below. What stuck out to me was
the repetition of:
    close(/some number/) close failed: errno 9, Bad file descriptor

No other utilities have this issue. Has anyone seen this bug before? Can
anyone point me in the direction of a fix?

tracing pid 1795
getdata() getdata returned 0
getrlimit() getrlimit returned 0
pthread_inform_signals() pthread_inform_signals returned 0
unixpath2win() unixpath2win returned 0
getids() getids returned 0
getids() getids returned 0
getids() getids returned 0
getids() getids returned 0
open("/var/run/ld32.so.hints", 0x1) open failed: errno 2, No such file or
directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/gcc/libssl.so.1.0.0", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/libssl.so.1.0.0", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/lib/libssl.so.1.0.0", 0x1) open failed: errno 2, No such
file or directory

open("/opt/gentoo/usr/lib/libssl.so.1.0.0", 0x1) open returned 3
read(3, 0x87EC38, 4096) read returned 4096 0x1000
close(3) close returned 0
unixpath2win() unixpath2win returned 0
open("/opt/gentoo/usr/i586-pc-interix3.5/lib/gcc/libcrypto.so.1.0.0", 0x1)
open failed: errno 2, No such file or directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/libcrypto.so.1.0.0", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/lib/libcrypto.so.1.0.0", 0x1) open failed: errno 2, No
such file or directory

open("/opt/gentoo/usr/lib/libcrypto.so.1.0.0", 0x1) open returned 3
read(3, 0x87EC18, 4096) read returned 4096 0x1000
close(3) close returned 0
unixpath2win() unixpath2win returned 0
open("/opt/gentoo/usr/i586-pc-interix3.5/lib/gcc/libdl.so.3.5", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/libdl.so.3.5", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/lib/libdl.so.3.5", 0x1) open failed: errno 2, No such file
or directory

open("/opt/gentoo/usr/lib/libdl.so.3.5", 0x1) open failed: errno 2, No such
file or directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/gcc/libdl.so.3.5", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/libdl.so.3.5", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/lib/libdl.so.3.5", 0x1) open failed: errno 2, No such file
or directory

open("/opt/gentoo/usr/lib/libdl.so.3.5", 0x1) open failed: errno 2, No such
file or directory

open("/usr/lib/libdl.so.3.5", 0x1) open returned 3
read(3, 0x87EBF8, 4096) read returned 4096 0x1000
close(3) close returned 0
unixpath2win() unixpath2win returned 0
open("/opt/gentoo/usr/i586-pc-interix3.5/lib/gcc/libz.so", 0x1) open failed:
errno 2, No such file or directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/libz.so", 0x1) open failed:
errno 2, No such file or directory

open("/opt/gentoo/lib/libz.so", 0x1) open failed: errno 2, No such file or
directory

open("/opt/gentoo/usr/lib/libz.so", 0x1) open returned 3
read(3, 0x87EBD8, 4096) read returned 4096 0x1000
close(3) close returned 0
unixpath2win() unixpath2win returned 0
open("/opt/gentoo/usr/i586-pc-interix3.5/lib/gcc/libsuacomp.so.1", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/libsuacomp.so.1", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/lib/libsuacomp.so.1", 0x1) open failed: errno 2, No such
file or directory

open("/opt/gentoo/usr/lib/libsuacomp.so.1", 0x1) open returned 3
read(3, 0x87EBB8, 4096) read returned 4096 0x1000
close(3) close returned 0
unixpath2win() unixpath2win returned 0
open("/opt/gentoo/usr/i586-pc-interix3.5/lib/gcc/libc.so.3.5", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/libc.so.3.5", 0x1) open failed:
errno 2, No such file or directory

open("/opt/gentoo/lib/libc.so.3.5", 0x1) open failed: errno 2, No such file
or directory

open("/opt/gentoo/usr/lib/libc.so.3.5", 0x1) open failed: errno 2, No such
file or directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/gcc/libc.so.3.5", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/libc.so.3.5", 0x1) open failed:
errno 2, No such file or directory

open("/opt/gentoo/lib/libc.so.3.5", 0x1) open failed: errno 2, No such file
or directory

open("/opt/gentoo/usr/lib/libc.so.3.5", 0x1) open failed: errno 2, No such
file or directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/gcc/libc.so.3.5", 0x1) open
failed: errno 2, No such file or directory

open("/opt/gentoo/usr/i586-pc-interix3.5/lib/libc.so.3.5", 0x1) open failed:
errno 2, No such file or directory

open("/opt/gentoo/lib/libc.so.3.5", 0x1) open failed: errno 2, No such file
or directory

open("/opt/gentoo/usr/lib/libc.so.3.5", 0x1) open failed: errno 2, No such
file or directory

open("/usr/lib/libc.so.3.5", 0x1) open returned 3
read(3, 0x87EAF8, 4096) read returned 4096 0x1000
close(3) close returned 0
unixpath2win() unixpath2win returned 0
open("/dev/null", 0x3) open returned 3
close(3) close returned 0
sysconf() sysconf returned 1024 0x400
close(3) close failed: errno 9, Bad file descriptor
...
close(1023) close failed: errno 9, Bad file descriptor

getids() getids returned 0
getids() getids returned 0
setids() setids returned 0
getpwuid(0x301F4, 0x0) getpwuid returned 0
getpwuid(0x301F4, 0x0) getpwuid returned 0
getpwuid(0x301F4, 0x1) getpwuid returned 0
umask() umask returned 18 0x12
isatty(0) isatty returned 0
open("/net/./../home/Administrator/.ssh/config", 0x1) open failed: errno 2,
No such file or directory

open("/opt/gentoo/etc/ssh/ssh_config", 0x1) open returned 3
fstat(3, 0x5000710, 0x0) fstat ret: 0 dev: 0x2f006f006f0074 ino: 0x7ff90178
isatty(3) isatty returned 0
read(3, 0x135568, 4096) read returned 1555 0x613
read(3, 0x135568, 4096) read returned 0
close(3) close returned 0
getids() getids returned 0
open("/dev/urandom", 0x1801) open returned 3
fstat(3, 0x5000710, 0x4FE0710) fstat ret: 0 dev: 0x6d006f0064006e ino:
0x7ff90178
sysconf() sysconf returned 1024 0x400
select() select returned 0
isatty(3) isatty returned 0
read(3, 0x87F784, 32) read returned 32 0x20
close(3) close returned 0
getids() getids returned 0
gethostbyname() gethostbyname returned 0
socket() socket returned 3
fcntl(3, 0x3, 0x1) fcntl returned 0
connect() connect returned 0
setsockopt() setsockopt returned 0
setids() setids returned 0
getids() getids returned 0
getids() getids returned 0
setuser(Administrator  0 0 0x0) setuser returned 0
getids() getids returned 0
getids() getids returned 0
getids() getids returned 0
getids() getids returned 0
stat("/net/./../home/Administrator/.ssh", 0x05000760) stat ret: 0 dev:
0x1000000066638 ino: 0x7ff90178
getpwuid(0x301F4, 0x0) getpwuid returned 0
getpwuid(0x301F4, 0x0) getpwuid returned 0
open("/net/./../home/Administrator/.ssh/id_rsa", 0x1) open failed: errno 2,
No such file or directory

open("/net/./../home/Administrator/.ssh/id_rsa", 0x1) open failed: errno 2,
No such file or directory

open("/net/./../home/Administrator/.ssh/id_rsa", 0x1) open failed: errno 2,
No such file or directory

open("/net/./../home/Administrator/.ssh/id_rsa.pub", 0x1) open failed: errno
2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_rsa-cert", 0x1) open failed:
errno 2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_rsa-cert", 0x1) open failed:
errno 2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_rsa-cert", 0x1) open failed:
errno 2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_rsa-cert.pub", 0x1) open failed:
errno 2, No such file or directory

getpwuid(0x301F4, 0x0) getpwuid returned 0
open("/net/./../home/Administrator/.ssh/id_dsa", 0x1) open failed: errno 2,
No such file or directory

open("/net/./../home/Administrator/.ssh/id_dsa", 0x1) open failed: errno 2,
No such file or directory

open("/net/./../home/Administrator/.ssh/id_dsa", 0x1) open failed: errno 2,
No such file or directory

open("/net/./../home/Administrator/.ssh/id_dsa.pub", 0x1) open failed: errno
2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_dsa-cert", 0x1) open failed:
errno 2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_dsa-cert", 0x1) open failed:
errno 2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_dsa-cert", 0x1) open failed:
errno 2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_dsa-cert.pub", 0x1) open failed:
errno 2, No such file or directory

getpwuid(0x301F4, 0x0) getpwuid returned 0
open("/net/./../home/Administrator/.ssh/id_ecdsa", 0x1) open failed: errno
2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_ecdsa", 0x1) open failed: errno
2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_ecdsa", 0x1) open failed: errno
2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_ecdsa.pub", 0x1) open failed:
errno 2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_ecdsa-cert", 0x1) open failed:
errno 2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_ecdsa-cert", 0x1) open failed:
errno 2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_ecdsa-cert", 0x1) open failed:
errno 2, No such file or directory

open("/net/./../home/Administrator/.ssh/id_ecdsa-cert.pub", 0x1) open
failed: errno 2, No such file or directory

getpwuid(0x301F4, 0x0) getpwuid returned 0
getpwuid(0x301F4, 0x0) getpwuid returned 0
sigaction() sigaction returned 0
sigaction() sigaction returned 0
sigaction() sigaction returned 0
sigaction() sigaction returned 0
read(3, 0x87F6AC, 1) read returned 1
read(3, 0x87F6AD, 1) read returned 1
read(3, 0x87F6AE, 1) read returned 1
read(3, 0x87F6AF, 1) read returned 1
read(3, 0x87F6B0, 1) read returned 1
read(3, 0x87F6B1, 1) read returned 1
read(3, 0x87F6B2, 1) read returned 1
read(3, 0x87F6B3, 1) read returned 1
read(3, 0x87F6B4, 1) read returned 1
read(3, 0x87F6B5, 1) read returned 1
read(3, 0x87F6B6, 1) read returned 1
read(3, 0x87F6B7, 1) read returned 1
read(3, 0x87F6B8, 1) read returned 1
read(3, 0x87F6B9, 1) read returned 1
read(3, 0x87F6BA, 1) read returned 1
read(3, 0x87F6BB, 1) read returned 1
read(3, 0x87F6BC, 1) read returned 1
read(3, 0x87F6BD, 1) read returned 1
read(3, 0x87F6BE, 1) read returned 1
read(3, 0x87F6BF, 1) read returned 1
write(3, 0x87F6AC, 32) write returned 32 0x20
fcntl(3, 0x4, 0x139B40) fcntl returned 2
fcntl(3, 0x5, 0x1002) fcntl returned 0
open("/net/./../home/Administrator/.ssh/known_hosts2", 0x1) open failed:
errno 2, No such file or directory

open("/opt/gentoo/etc/ssh/ssh_known_hosts2", 0x1) open failed: errno 2, No
such file or directory

open("/net/./../home/Administrator/.ssh/known_hosts", 0x1) open returned 4
fstat(4, 0x5000710, 0x4FE0710) fstat ret: 0 dev: 0x6f0068002f002e ino:
0x7ff90178
isatty(4) isatty returned 0
read(4, 0x139BD0, 4096) read returned 410 0x19A
read(4, 0x139BD0, 4096) read returned 0
close(4) close returned 0
open("/opt/gentoo/etc/ssh/ssh_known_hosts", 0x1) open failed: errno 2, No
such file or directory

getids() getids returned 0
write(3, 0x1368C0, 1144) write returned 1144 0x478
sysconf() sysconf returned 1024 0x400
select() select returned 0
isatty(3) isatty returned 0
read(3, 0x87D754, 8192) read returned 704 0x2C0
write(3, 0x1368C0, 24) write returned 24 0x18
sysconf() sysconf returned 1024 0x400
select() select returned 0
isatty(3) isatty returned 0
read(3, 0x87D624, 8192) read returned 152 0x98
getids() getids returned 0
write(3, 0x1368C0, 144) write returned 144 0x90
sysconf() sysconf returned 1024 0x400
select() select returned 0
isatty(3) isatty returned 0
read(3, 0x87D624, 8192) read returned 720 0x2D0
stat("/opt/gentoo/etc/ssh/ssh_known_hosts2", 0x05000768) stat failed: errno
2, No such file or directory

stat("/net/./../home/Administrator/.ssh/known_hosts2", 0x05000778) stat
failed: errno 2, No such file or directory

open("/net/./../home/Administrator/.ssh/known_hosts", 0x1) open returned 4
fstat(4, 0x5000710, 0x0) fstat ret: 0 dev: 0x6f0068002f002e ino: 0x7ff90178
isatty(4) isatty returned 0
read(4, 0x13E710, 4096) read returned 410 0x19A
read(4, 0x13E710, 4096) read returned 0
close(4) close returned 0
open("/opt/gentoo/etc/ssh/ssh_known_hosts", 0x1) open failed: errno 2, No
such file or directory

open("/net/./../home/Administrator/.ssh/known_hosts", 0x1) open returned 4
fstat(4, 0x5000710, 0x4FE0710) fstat ret: 0 dev: 0x6f0068002f002e ino:
0x7ff90178
isatty(4) isatty returned 0
read(4, 0x13E710, 4096) read returned 410 0x19A
read(4, 0x13E710, 4096) read returned 0
close(4) close returned 0
open("/opt/gentoo/etc/ssh/ssh_known_hosts", 0x1) open failed: errno 2, No
such file or directory

write(3, 0x1368C0, 16) write returned 16 0x10
write(3, 0x1368C0, 48) write returned 48 0x30
sysconf() sysconf returned 1024 0x400
select() select returned 0
isatty(3) isatty returned 0
read(3, 0x87D744, 8192) read returned 48 0x30
write(3, 0x1368C0, 64) write returned 64 0x40
sysconf() sysconf returned 1024 0x400
select() select returned 0
isatty(3) isatty returned 0
read(3, 0x87D724, 8192) read returned 80 0x50
stat("/net/./../home/Administrator/.ssh/id_rsa", 0x05000770) stat failed:
errno 2, No such file or directory

stat("/net/./../home/Administrator/.ssh/id_dsa", 0x05000770) stat failed:
errno 2, No such file or directory

stat("/net/./../home/Administrator/.ssh/id_ecdsa", 0x05000770) stat failed:
errno 2, No such file or directory

open("/dev/tty", 0x3) open returned 4
close(4) close returned 0
open("/dev/tty", 0x3) open returned 4
sigaction() sigaction returned 0
sigaction() sigaction returned 0
sigaction() sigaction returned 0
sigaction() sigaction returned 0
sigaction() sigaction returned 0
sigaction() sigaction returned 0
sigaction() sigaction returned 0
sigaction() sigaction returned 0
sigaction() sigaction returned 0
tcgetattr() tcgetattr returned 0
tcsetattr() tcsetattr returned 0
write(4, 0x87F64A, 21) write failed: errno 9, Bad file descriptor



--
View this message in context: http://emacs.1067599.n5.nabble.com/ssh-fails-with-Bad-file-descriptor-on-Interix-SFU-tp286510.html
Sent from the Emacs - Windows - Help mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.