Juergen P. Meier
2000-Dec-05 13:03 UTC
Bugreport: openssh-2.3.0p1 scp to SSH2 (2.0.13) server
Hi, this is a type 3 bugreport ;) ( 3. Repeatable problems specific to your software layout.) first of all i must state, that i run openssh on a fairly old redhat based system (redhat 6.1). if you have any further questions, feel free to contact me. configure options: CFLAGS="-O2 -m486" ./configure --without-rsh --with-tcp-wrappers --prefix=/opt/openssh-2.3.0 --with-default-path=/bin:/usr/bin:/usr/sbin:/opt/openssh-2.3.0/bin:/usr/local/bin output of the scp command: test at foo:~> scp localtest test at bar:/tmp/test -v Executing: program /opt/openssh-2.3.0/bin/ssh host bar, user test, command scp -v -t /tmp/test test at bar's password: warning: Development-time debugging not compiled in. warning: To enable, configure with --enable-debug and recompile. warning: Executing scp1 compatibility. select: Bad file descriptor lost connection Note: on the target runs a SSH-1.99-2.0.13 (non-commercial) scp runs fine in every other combination (openssh <-> openssh, openssh <-> ssh1 and ssh2 -> openssh) just that one direction, from openssh to ssh2 does not work. Lack of other platforms made it impossible for me to test different machines. strace from the exec'ed ssh where the error happened: read(4, "\n", 1) = 1 ioctl(4, SNDCTL_TMR_START, {B38400 opost isig icanon echo ...}) = 0 ioctl(4, TCGETS, {B38400 opost isig icanon echo ...}) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0 write(4, "\n", 1) = 1 close(4) = 0 open("/dev/tty", O_RDWR) = 4 write(4, "test at bar\'s password: ", 19) = 19 rt_sigprocmask(SIG_BLOCK, [TSTP], [], 8) = 0 rt_sigaction(SIGINT, {0x805a7d0, [], 0x4000000}, {SIG_DFL}, 8) = 0 ioctl(4, TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(4, SNDCTL_TMR_START, {B38400 opost isig icanon -echo ...}) = 0 ioctl(4, TCGETS, {B38400 opost isig icanon -echo ...}) = 0 read(4, "x", 1) = 1 read(4, "x", 1) = 1 read(4, "x", 1) = 1 read(4, "x", 1) = 1 read(4, "x", 1) = 1 read(4, "x", 1) = 1 read(4, "x", 1) = 1 read(4, "x", 1) = 1 read(4, "\n", 1) = 1 ioctl(4, SNDCTL_TMR_START, {B38400 opost isig icanon echo ...}) = 0 ioctl(4, TCGETS, {B38400 opost isig icanon echo ...}) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0 write(4, "\n", 1) = 1 close(4) = 0 write(3, "X=\340\0261\26\243\373\355<\305duV _b\320+\312B\353\253"..., 80) = 80 select(4, [3], NULL, NULL, NULL) = 1 (in [3]) read(3, "Hp\226B\223\363\205\267\267\337\315\5\5`wZ.\223\237\25"..., 8192) = 32 dup(0) = 4 dup(1) = 5 dup(2) = 6 ioctl(4, TCGETS, 0xbffff574) = -1 EINVAL (Invalid argument) fcntl(4, F_GETFL) = 0 (flags O_RDONLY) fcntl(4, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 ioctl(5, TCGETS, 0xbffff574) = -1 EINVAL (Invalid argument) fcntl(5, F_GETFL) = 0x1 (flags O_WRONLY) fcntl(5, F_SETFL, O_WRONLY|O_NONBLOCK) = 0 ioctl(6, TCGETS, {B38400 opost isig icanon echo ...}) = 0 brk(0x80fd000) = 0x80fd000 gettimeofday({976017265, 12614}, NULL) = 0 brk(0x80ff000) = 0x80ff000 rt_sigaction(SIGINT, {0x8052540, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGQUIT, {0x8052540, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGTERM, {0x8052540, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0 select(7, [3], [3], NULL, NULL) = 1 (out [3]) write(3, "L\210K\275U\330\352\33p\247\334\324\344\306\231\321\273"..., 56) = 56 select(7, [3], [], NULL, NULL) = 1 (in [3]) read(3, "w.2\247C&\310\330\5]rhP)Y\221;\267\263\30I\321\213\325"..., 8192) = 48 select(7, [3 4], [3], NULL, NULL) = 1 (out [3]) write(3, "\335g\342\317\274Nu9\332\0s\323P\" \250M\1\356\304\343"..., 64) = 64 select(7, [3 4], [], NULL, NULL) = 1 (in [3]) read(3, "\345\314\235zlA\r\333\316\242>\16\0,\314e\375\4\255Ac\334"..., 8192) = 160 select(7, [3 4], [6], NULL, NULL) = 1 (out [6]) write(6, "warning: Development-time debugg"..., 120) = 120 select(7, [3 4], [], NULL, NULL) = 1 (in [3]) read(3, "T\31`\274\314\6(r+E\7N\343\333u\3242\234N\30\327N\346_"..., 8192) = 256 close(4) = 0 close(5) = 0 brk(0x8101000) = 0x8101000 close(6) = 0 select(7, [3], [3 6], NULL, NULL) = -1 EBADF (Bad file descriptor) open("/usr/share/locale/locale.alias", O_RDONLY) = 4 fstat(4, {st_mode=S_IFREG|0644, st_size=2174, ...}) = 0 mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40013000 read(4, "# Locale name alias data base.\n#"..., 4096) = 2174 read(4, "", 4096) = 0 close(4) = 0 munmap(0x40013000, 4096) = 0 open("/usr/share/i18n/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, "select: Bad file descriptor\r\n", 29) = 29 gettimeofday({976017265, 87243}, NULL) = 0 shutdown(3, 2 /* send and receive */) = 0 close(3) = 0 _exit(1) = ? greetings, Juergen -- Juergen P. Meier email: jpm at class.de
Markus Friedl
2000-Dec-05 20:16 UTC
Bugreport: openssh-2.3.0p1 scp to SSH2 (2.0.13) server
you can scp only to a ssh-2.0.13 server if the server has scp1 installed. i think you also have to make sure that scp on the server is a link to scp1. -m On Tue, Dec 05, 2000 at 02:03:12PM +0100, Juergen P. Meier wrote:> Hi, > this is a type 3 bugreport ;) > ( 3. Repeatable problems specific to your software layout.) > first of all i must state, that i run openssh on a fairly > old redhat based system (redhat 6.1). > > if you have any further questions, feel free to contact me. > > configure options: > CFLAGS="-O2 -m486" ./configure --without-rsh --with-tcp-wrappers --prefix=/opt/openssh-2.3.0 --with-default-path=/bin:/usr/bin:/usr/sbin:/opt/openssh-2.3.0/bin:/usr/local/bin > > output of the scp command: > test at foo:~> scp localtest test at bar:/tmp/test -v > Executing: program /opt/openssh-2.3.0/bin/ssh host bar, user test, command scp -v -t /tmp/test > test at bar's password: > warning: Development-time debugging not compiled in. > warning: To enable, configure with --enable-debug and recompile. > warning: Executing scp1 compatibility. > select: Bad file descriptor > lost connection > > Note: on the target runs a SSH-1.99-2.0.13 (non-commercial) > > scp runs fine in every other combination (openssh <-> openssh, > openssh <-> ssh1 and ssh2 -> openssh) just that one direction, > from openssh to ssh2 does not work. > > Lack of other platforms made it impossible for me to test different machines. > > strace from the exec'ed ssh where the error happened: > > read(4, "\n", 1) = 1 > ioctl(4, SNDCTL_TMR_START, {B38400 opost isig icanon echo ...}) = 0 > ioctl(4, TCGETS, {B38400 opost isig icanon echo ...}) = 0 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 > rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0 > write(4, "\n", 1) = 1 > close(4) = 0 > open("/dev/tty", O_RDWR) = 4 > write(4, "test at bar\'s password: ", 19) = 19 > rt_sigprocmask(SIG_BLOCK, [TSTP], [], 8) = 0 > rt_sigaction(SIGINT, {0x805a7d0, [], 0x4000000}, {SIG_DFL}, 8) = 0 > ioctl(4, TCGETS, {B38400 opost isig icanon echo ...}) = 0 > ioctl(4, SNDCTL_TMR_START, {B38400 opost isig icanon -echo ...}) = 0 > ioctl(4, TCGETS, {B38400 opost isig icanon -echo ...}) = 0 > read(4, "x", 1) = 1 > read(4, "x", 1) = 1 > read(4, "x", 1) = 1 > read(4, "x", 1) = 1 > read(4, "x", 1) = 1 > read(4, "x", 1) = 1 > read(4, "x", 1) = 1 > read(4, "x", 1) = 1 > read(4, "\n", 1) = 1 > ioctl(4, SNDCTL_TMR_START, {B38400 opost isig icanon echo ...}) = 0 > ioctl(4, TCGETS, {B38400 opost isig icanon echo ...}) = 0 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 > rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0 > write(4, "\n", 1) = 1 > close(4) = 0 > write(3, "X=\340\0261\26\243\373\355<\305duV _b\320+\312B\353\253"..., 80) = 80 > select(4, [3], NULL, NULL, NULL) = 1 (in [3]) > read(3, "Hp\226B\223\363\205\267\267\337\315\5\5`wZ.\223\237\25"..., 8192) = 32 > dup(0) = 4 > dup(1) = 5 > dup(2) = 6 > ioctl(4, TCGETS, 0xbffff574) = -1 EINVAL (Invalid argument) > fcntl(4, F_GETFL) = 0 (flags O_RDONLY) > fcntl(4, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 > ioctl(5, TCGETS, 0xbffff574) = -1 EINVAL (Invalid argument) > fcntl(5, F_GETFL) = 0x1 (flags O_WRONLY) > fcntl(5, F_SETFL, O_WRONLY|O_NONBLOCK) = 0 > ioctl(6, TCGETS, {B38400 opost isig icanon echo ...}) = 0 > brk(0x80fd000) = 0x80fd000 > gettimeofday({976017265, 12614}, NULL) = 0 > brk(0x80ff000) = 0x80ff000 > rt_sigaction(SIGINT, {0x8052540, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 > rt_sigaction(SIGQUIT, {0x8052540, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 > rt_sigaction(SIGTERM, {0x8052540, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 > rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0 > select(7, [3], [3], NULL, NULL) = 1 (out [3]) > write(3, "L\210K\275U\330\352\33p\247\334\324\344\306\231\321\273"..., 56) = 56 > select(7, [3], [], NULL, NULL) = 1 (in [3]) > read(3, "w.2\247C&\310\330\5]rhP)Y\221;\267\263\30I\321\213\325"..., 8192) = 48 > select(7, [3 4], [3], NULL, NULL) = 1 (out [3]) > write(3, "\335g\342\317\274Nu9\332\0s\323P\" \250M\1\356\304\343"..., 64) = 64 > select(7, [3 4], [], NULL, NULL) = 1 (in [3]) > read(3, "\345\314\235zlA\r\333\316\242>\16\0,\314e\375\4\255Ac\334"..., 8192) = 160 > select(7, [3 4], [6], NULL, NULL) = 1 (out [6]) > write(6, "warning: Development-time debugg"..., 120) = 120 > select(7, [3 4], [], NULL, NULL) = 1 (in [3]) > read(3, "T\31`\274\314\6(r+E\7N\343\333u\3242\234N\30\327N\346_"..., 8192) = 256 > close(4) = 0 > close(5) = 0 > brk(0x8101000) = 0x8101000 > close(6) = 0 > select(7, [3], [3 6], NULL, NULL) = -1 EBADF (Bad file descriptor) > open("/usr/share/locale/locale.alias", O_RDONLY) = 4 > fstat(4, {st_mode=S_IFREG|0644, st_size=2174, ...}) = 0 > mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40013000 > read(4, "# Locale name alias data base.\n#"..., 4096) = 2174 > read(4, "", 4096) = 0 > close(4) = 0 > munmap(0x40013000, 4096) = 0 > open("/usr/share/i18n/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) > write(2, "select: Bad file descriptor\r\n", 29) = 29 > gettimeofday({976017265, 87243}, NULL) = 0 > shutdown(3, 2 /* send and receive */) = 0 > close(3) = 0 > _exit(1) = ? > > > > > greetings, > > Juergen > > -- > Juergen P. Meier email: jpm at class.de >