Blaisorblade a écrit :

On Wednesday 01 June 2005 08:50, Jean-Michel Caricand wrote:
Jeff Dike a écrit :
On Tue, May 31, 2005 at 10:33:09PM +0200, Jean-Michel Caricand wrote:

# strace ssh [EMAIL PROTECTED]
On a completely different problem:
Is it correct that it looks there for libraries?
open("/home/jm/ACE_wrappers/lib/tls/i686/mmx/cmov/libresolv.so.2",
O_RDONLY) = -1 ENOENT (No such file or directory)

And surely, it isn't correct that it looks in the current directory for libraries... correct your LD_LIBRARY_PATH setting (note that two consecutive colons are interpreted in this way, too).
open("tls/i686/mmx/cmov/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such
file or directory)

ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
open("/home/jm/.ssh/config", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such
file or directory)
open("/etc/ssh/ssh_config", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1184, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7fe8000
read(3, "#\t$OpenBSD: ssh_config,v 1.19 20"..., 4096) = 1184
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7fe8000, 4096)                = 0
getpid()                                = 6250
getpid()                                = 6250
open("/dev/urandom", O_RDONLY|O_NONBLOCK|O_NOCTTY) = 3
select(4, [3], NULL, NULL, {0, 10000})  = 1 (in [3], left {0, 10000})
read(3, "\273\312W\320y\226q\0065f\267O\363\2p\224\300\275s\20T"..., 32)
= 32
close(3)                                = 0
getpid()                                = 6250
getpid()                                = 6250
getuid32()                              = 1000
getpid()                                = 6250
time(NULL)                              = 1117608465
getpid()                                = 6250

open("/etc/services", O_RDONLY)         = 3


socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(22),
sin_addr=inet_addr("192.168.3.18")}, 16) = 0
setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
setresuid32(-1, 1000, -1)               = 0
setuid32(1000)                          = 0

rt_sigaction(SIGPIPE, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
read(3, "S", 1)                         = 1
read(3, "S", 1)                         = 1
read(3, "H", 1)                         = 1
read(3, "-", 1)                         = 1
read(3, "2", 1)                         = 1
read(3, ".", 1)                         = 1
read(3, "0", 1)                         = 1
read(3, "-", 1)                         = 1
read(3, "O", 1)                         = 1
read(3, "p", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "n", 1)                         = 1
read(3, "S", 1)                         = 1
read(3, "S", 1)                         = 1
read(3, "H", 1)                         = 1
read(3, "_", 1)                         = 1
read(3, "3", 1)                         = 1
read(3, ".", 1)                         = 1
read(3, "8", 1)                         = 1
read(3, ".", 1)                         = 1
read(3, "1", 1)                         = 1
read(3, "p", 1)                         = 1
read(3, "1", 1)                         = 1
read(3, " ", 1)                         = 1
read(3, "D", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, "b", 1)                         = 1
read(3, "i", 1)                         = 1
read(3, "a", 1)                         = 1
read(3, "n", 1)                         = 1
read(3, "-", 1)                         = 1
read(3, "8", 1)                         = 1
read(3, ".", 1)                         = 1
read(3, "s", 1)                         = 1
read(3, "a", 1)                         = 1
read(3, "r", 1)                         = 1
read(3, "g", 1)                         = 1
read(3, "e", 1)                         = 1
read(3, ".", 1)                         = 1
read(3, "4", 1)                         = 1
read(3, "\n", 1)                        = 1
write(3, "SSH-2.0-OpenSSH_3.8.1p1 Debian-8"..., 41) = 41
fcntl64(3, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
getpid()                                = 6250


528) = 528
select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
read(3, "`M>I\21\215\37W\304\t\323\227\367\34SR\220\260\237,\316"...,
8192) = 64
write(3, "\0\322\34\321\331\31 \302\3455\316\3117\220\n\5\272\217"...,
96) = 96
select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
read(3, "", 8192)                       = 0

Ok, here it's seeing the closed connection. Would you rather use ssh -v and watch the server logs (since it's the server closing the connection?)
getpeername(3, {sa_family=AF_INET, sin_port=htons(22),
sin_addr=inet_addr("192.168.3.18")}, [16]) = 0

write(2, "Connection closed by 192.168.3.1"..., 35Connection closed by
192.168.3.18

) = 35

exit_group(255)                         = ?



Hi,

On virtual machine UML (192.168.3.2)
# strace -f -p pidof `sshd`

On client (192.168.3.1)
# ssh [EMAIL PROTECTED]


strace output on UML :

...

select(4, [3], NULL, NULL, NULL)        = ? ERESTARTNOHAND (To be restarted)
select(4, [3], NULL, NULL, NULL)        = ? ERESTARTNOHAND (To be restarted)
select(4, [3], NULL, NULL, NULL)        = ? ERESTARTNOHAND (To be restarted)
select(4, [3], NULL, NULL, NULL)        = ? ERESTARTNOHAND (To be restarted)
select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
accept(3, {sa_family=AF_INET6, sin6_port=htons(33333), inet_pton(AF_INET6, "::ffff:192.168.3.2", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28])
= 4
fcntl64(4, F_SETFL, O_RDONLY)           = 0
pipe([5, 6])                            = 0
clone(Process 1537 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x402cc0c8) = 1537
[pid  1533] close(6 <unfinished ...>
[pid  1537] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 1537 detached
<... close resumed> )                   = 0
getpid()                                = 1533
getpid()                                = 1533
close(4)                                = 0
select(6, [3 5], NULL, NULL, NULL)      = ? ERESTARTNOHAND (To be restarted)
select(6, [3 5], NULL, NULL, NULL)      = ? ERESTARTNOHAND (To be restarted)
select(6, [3 5], NULL, NULL, NULL)      = 1 (in [5])
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], WNOHANG) = 1537
waitpid(-1, 0xbffff1ac, WNOHANG)        = -1 ECHILD (No child processes)
rt_sigaction(SIGCHLD, NULL, {0x8095188, ~[FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CONT TTIN TTOU XCPU IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_4 RT_5 RT_6 RT_8 RT_12 RT_13 RT_16 RT_18 RT_19 RT_21 RT_22 RT_23 RT_24 RT_25 RT_26 RT_27 RT_29 RT_30 RT_31], SA_STACK|0x95148}, 8) = ? ERESTARTNOINTR (To be
restarted)
rt_sigaction(SIGCHLD, NULL, {0x8095188, ~[FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CONT TTIN TTOU XCPU IO PWR SYS RTMIN RT_1 RT_2 RT_3 RT_4 RT_5 RT_6 RT_8 RT_12 RT_13 RT_16 RT_18 RT_19 RT_21 RT_22 RT_23 RT_24 RT_25 RT_26 RT_27 RT_29 RT_30 RT_31], SA_STACK|0x95148}, 8) = ? ERESTARTNOINTR (To be
restarted)

...





-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to