SCO 3.2v4.2 and OpenSSH -current --> connection hangs and does no t close
Ben Lindstrom
mouring at etoh.eviladmin.org
Mon Sep 15 16:52:31 EST 2003
- (bal) redo how we handle 'mysignal()'. Move it to
openbsd-compat/bsd-misc.c, s/mysignal/signal/ and #define signal to
be our 'mysignal' by default. OK djm@
go into bsd-misc.c and comment out the define and try it again. We should
be using mysignal by default now, but it may have disagreeable results.
- Ben
On Mon, 15 Sep 2003, Vikash Badal - PCS wrote:
> Greetings,
>
> I have a problem with OpenSSH -current and SCO 3.2v4.2,
> when I execute a remote command or exit from a session,
> the connection hangs, ( line 326 of serverloop.c).
>
> This problem only exists when using ssh2.
>
> server side debug (-d -d -d ):
> debug1: Received SIGCHLD.
> debug2: channel 0: read failed
> debug2: channel 0: close_read
> debug2: channel 0: input open -> drain
> debug2: channel 0: ibuf_empty delayed efd 12/(0)
> debug2: notify_done: reading
> debug2: channel 0: read 0 from efd 12
> debug2: channel 0: closing read-efd 12
> debug2: channel 0: ibuf empty
> debug2: channel 0: send eof
> debug2: channel 0: input drain -> closed
> -------------------
>
> I have tried my hand at gdb, and this is the output and backtrace
> before the session hangs.
>
> (gdb)
> wait_until_can_do_something (readsetp=0x7ffff8e4, writesetp=0x7ffff8e0,
> maxfdp=0x7ffff8dc, nallocp=0x7ffff8d8, max_time_milliseconds=0)
> at serverloop.c:313
> 313 if (child_terminated &&
> packet_not_very_much_data_to_write())
> (gdb)
> 317 if (max_time_milliseconds == 0)
> (gdb)
> 318 tvp = NULL;
> (gdb)
> 326 ret = select((*maxfdp)+1, *readsetp, *writesetp, NULL, tvp);
> (gdb) p connection_closed
> $1 = 0
> (gdb) bt
> #0 wait_until_can_do_something (readsetp=0x7ffff8e4, writesetp=0x7ffff8e0,
> maxfdp=0x7ffff8dc, nallocp=0x7ffff8d8, max_time_milliseconds=0)
> at serverloop.c:326
> #1 0x8bfc in server_loop2 (authctxt=0x42f91c) at serverloop.c:771
> #2 0x1030f in do_authenticated2 (authctxt=0x42f91c) at session.c:2086
> #3 0xcc19 in do_authenticated (authctxt=0x42f91c) at session.c:216
> #4 0x2eaa in main (ac=6, av=0x7ffffe28) at sshd.c:1506
> (gdb) s
>
> at this point the connection this hangs.
>
> I do not know how to process from here, please advise
>
> Vikash
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
>
More information about the openssh-unix-dev
mailing list