Hi,
I lxc-attached the container and stopped sshd and started sshd .
Next step was to strace -p PID for sshd while opening a new ssh session from 
outside.
As you can see no child processes started from sshd.  se out put below from ps 
aux, strace -p. I also attched output from  netstan -an inside the lxc during 
the attempted login connection


===============================================
ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  28208  3312 ?        Ss   Apr23   0:01 /sbin/init
root        38  0.0  0.0  32968  4372 ?        Ss   Apr23   0:00 
/lib/systemd/systemd-journald
root        96  0.0  0.0  27476  1432 ?        Ss   Apr23   0:00 /usr/sbin/cron 
-f
root       102  0.0  0.0  12664  1236 tty3     Ss+  Apr23   0:00 /sbin/agetty 
--noclear tty3 linux
root       103  0.0  0.0  12664  1212 tty2     Ss+  Apr23   0:00 /sbin/agetty 
--noclear tty2 linux
root       104  0.0  0.0  12664  1172 tty4     Ss+  Apr23   0:00 /sbin/agetty 
--noclear tty4 linux
root       105  0.0  0.0  12664  1224 tty1     Ss+  Apr23   0:00 /sbin/agetty 
--noclear tty1 linux
root       106  0.0  0.0  14236  1272 console  Ss+  Apr23   0:00 /sbin/agetty 
--noclear --keep-baud console 115200 38400 9600 vt102
root       121  0.0  0.0   8440  1160 ?        S    Apr23   0:00 
/usr/sbin/syslogd --no-forward
Debian-+   364  0.0  0.0  53248  2260 ?        Ss   Apr23   0:00 
/usr/sbin/exim4 -bd -q30m
root      2190  0.0  0.0  21884  2628 ?        Ss   18:01   0:00 /bin/bash
root      2284  0.0  0.0  42336  1960 ?        S    18:17   0:00 /usr/sbin/CRON 
-f
root      2475  0.0  0.0  42336  1960 ?        S    19:17   0:00 /usr/sbin/CRON 
-f
root      2686  0.0  0.0  42336  1960 ?        S    20:17   0:00 /usr/sbin/CRON 
-f
root      2773  0.0  0.0  55184  4064 ?        Ss   20:22   0:00 /usr/sbin/sshd 
-D
root      2774  0.0  0.0  19100  1656 ?        R+   20:22   0:00 ps aux
root@kjell:/etc/init.d# strace -p 2773
Process 2773 attached
sendto(4, "<38>Apr 25 20:22:26 sshd[2773]: "..., 68, MSG_NOSIGNAL, NULL, 0


===================================================================

netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN     
tcp       49      0 192.168.60.2:22         192.168.60.55:52195     ESTABLISHED
tcp       22      0 192.168.60.2:22         192.168.60.55:52190     CLOSE_WAIT 
tcp       22      0 192.168.60.2:22         192.168.60.55:52186     CLOSE_WAIT 
tcp6       0      0 ::1:25                  :::*                    LISTEN     
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ]         DGRAM                    27827    /run/systemd/notify
unix  10     [ ]         DGRAM                    28002    /dev/log
unix  2      [ ACC ]     STREAM     LISTENING     27828    /run/systemd/private
unix  2      [ ]         DGRAM                    27831    
/run/systemd/shutdownd
unix  2      [ ]         DGRAM                    27832    
/run/systemd/journal/dev-log
unix  2      [ ACC ]     STREAM     LISTENING     27833    
/run/systemd/journal/stdout
unix  3      [ ]         DGRAM                    27834    
/run/systemd/journal/socket
unix  3      [ ]         STREAM     CONNECTED     29197    
unix  2      [ ]         DGRAM                    508549   
unix  2      [ ]         DGRAM                    489859   
unix  3      [ ]         STREAM     CONNECTED     27206    
/run/systemd/journal/stdout
unix  3      [ ]         STREAM     CONNECTED     508544   
unix  2      [ ]         DGRAM                    27870    
unix  2      [ ]         DGRAM                    498478   
unix  3      [ ]         STREAM     CONNECTED     509454   
/run/systemd/journal/stdout
unix  2      [ ]         DGRAM                    508982

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1572061

Title:
  login sessions hangs in lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1572061/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to