openssh-2.3.0p1 on HP-UX 11.00 went mad
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Wed Feb 21 21:41:16 EST 2001
Hi,
I had a strange effect: I tried to debug a program with GNU debugger
when very strange messages appeared on the screen. Like:
(gdb) Undefined command: "3". Try "help".
(gdb) Undefined command: "". Try "help".
(gdb) Undefined command: "". Try "help".
(gdb) Undefined command: "". Try "help".
I found out that a co-worked security-tested the machine with SAINT.
Thus the syslog said this about SSH:
rkdvmhp3 sshd[4041]: Bad protocol version identification 'QUIT
rkdvmhp3 sshd[4095]: Did not receive ident string from 132.199.206.2.
The truely odd thing is that gdb seems to work normally when
I try to capture the output via "script", so it might be a terminal
thing. Anyway I succeeded to capture the output:
/opt/gdb/bin/gdb ~windl/src/C++/HCM/HCMextract
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "hppa2.0n-hp-hpux11.00"...
(gdb) (gdb) (gdb) 466 #if 1
467 ////
468 // Workaround: "return(x)" does not set exit code
469 ////
470 #define return(x) exit(x)
471 #endif
472
473 /* main program parses arguments and begins execution */
474 int main(int argc, char *argv[])
475 {
(gdb) Undefined command: "". Try "help".
(gdb) Undefined command: "". Try "help".
(gdb) The history is empty.
(gdb) Undefined command: "". Try "help".
(gdb) Undefined command: "". Try "help".
(gdb) Undefined command: "". Try "help".
(gdb) Undefined command: "". Try "help".
(gdb) Undefined command: "4". Try "help".
(gdb) (gdb) Undefined command: "". Try "help".
(gdb) 476 SCOPE("main");
477 int status_fd;
478 int option;
479 int bad_syntax = 0;
480 char path[PATH_MAX + 1];
481 char *next_elem;
---Type <return> to continue, or q <return> to quit--- j[2J[H---Type
<return> to continue, or q <return> to quit--- j[D[D
(arg: 1)
j[0K[D[D[D[D[D8)
[4h---Type <return> to continue, or q <return> t[4lo
quit--- j[D[D[4hj[4l[D[D [4h [4l[D[D [4h [4l[D[D[D
j[D[4h [4l[D[D[D[D[4h|[4l[D[4h [4l[D[4hx[4l[D[4h
[4l[D[4ht[4l[D[4h [4l[D[4hp[4l[D[4h [4l[D[4hh[4l[D[4h
[4l[D[4hL[4l[D[4h [4l[D[4h@[4l[D[4h [4l[D[4h<[4l[D[4h
[4l[D[4h8[4l[D[4h [4l[D8 [D[D48 < @ L h p t x | j
j[A--Type <return> to continue, or q <return> to quit---4[D 48 < @ L h p t
x | j
j[A-Type <return> to continue, or q <return> to quit--- $48 < @ L h p t x
|
[4hj[4l[A--Type <return> to continue, or q <return> to quit--- $[D[D, $48
< @ L h p t x |
[4h [4l[A--Type <return> to continue, or q <return> to quit---,[D , $48 <
@ L h p t x |
[4h [4l[A-Type <return> to continue, or q <return> to quit--- 4, $48 < @
L h p t x |
[4h [4l[AType <return> to continue, or q <return> to quit---
4[D[D[2J[H---Type <return> to continue, or q <return> to quit--- 4, $48 <
@ L h p t x |
j j[Ae <return> to continue, or q <return> to quit--- 4, $48 < @ L h p
t x |
[4h [4l[Aype <return> to continue, or q <return> to quit--- 4, $48 < @
L h p t x |
[1P[AType <return> to continue, or q <return> to quit---
482
To make things worse, the gdb runs normally if I log in directly as "v11adm".
In the previous attempt I logged in as "root" and did a "su - v11adm". Rather
puzzled. Can anybody make any sense in this?
Regards,
Ulrich
More information about the openssh-unix-dev
mailing list