From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Fri, 23 Apr 2010 14:14:52 -0700 Message-ID: From: ron minnich To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: [9fans] tracing considered helpful Topicbox-Message-UUID: 0cdd0fd2-ead6-11e9-9d60-3106f5b1d025 So here's the latest tracing from my syscall tracer. I was wondering why hg seemed to just hang: 314 ssh Open 0xf9473 001883d4/"/sys/lib/openssh/ssh_known_hosts" 00000000 = -1 '/sys/lib/openssh' does not exist 0x11a74091c8339610 0x11a74091c83a1238 314 ssh Errstr 0xfc3b6 0x15c7c0/"" 128 = 0 "" 0x11a74091c9943780 0x11a74091c9950e58 314 ssh Errstr 0xfc40b 0x15c7c0/"" 128 = 0 "" 0x11a74091ca86add0 0x11a74091ca8759b0 314 ssh Open 0xf9473 00118831/"/dev/cons" 00000002 = 6 "" 0x11a74091cb6cbc58 0x11a74091cbd14a88 314 ssh Close 0xfb219 6 = 0 "" 0x11a74091ccaa7c18 0x11a74091ccf6c758 314 ssh Open 0xf9473 00123dc4/"/dev/cons" 00000000 = 6 "" 0x11a74091cdc7e680 0x11a74091ce207278 314 ssh Pwrite 0xfb50f 2 001a7704/"The.authenticity.of.host.'bitbucket.org.(184.73.226.175)'.can't." 80 -0x1 = 80 "" 0x11a74091ced11d08 0x11a74091ced1a9a8 314 ssh Pwrite 0xfb50f 2 001a7704/"RSA.key.fingerprint.is.97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74" 72 -0x1 = 72 "" 0x11a74091cfbc86a8 0x11a74091cfbd4610 314 ssh Pwrite 0xfb50f 2 001a7704/"Are.you.sure.you.want.to.continue.connecting.(yes/no)?." 55 -0x1 = 55 "" 0x11a74091d0e9bc08 0x11a74091d0ea4c90 OK, so ssh opens /sys/lib/openssh -- what's up with that? I can bind over it but still .. But then,secondly, it opens /dev/cons and tries to push a message out. What's weird is that it opens /dev/cons to get fd 6, but then writes to fd 2 ... Then waits a bit: 314 ssh Pread 0xfb793 6 060006b4/"" 8192 -0x1 = 0 "" 0x11a7409197ccbb78 0x11a740ac782dde58 319 ssh Pread 0xfb793 7 060006b4/"" 8192 -0x1 = 0 "" 0x11a740ac78cbfed0 0x11a740ac78ce40f0 319 ssh Pread 0xfb793 7 060006b4/"" 8192 -0x1 = 0 "" 0x11a740ac7a75c2e8 0x11a740ac7bc9c5e0 319 ssh Exits 0xfc301 0015e35c/""cwrite: /proc/319/syscall: failed 12 bytes: process exited interestingly, reads from fd 6 (well, sure) but then fd *7*? that's weird. Anyway, this points to a possible 2 bugs in ssh and a questionable decision, to look in /sys/lib/openssh for known hosts. And, oh yes, just typing 'yes' to hg when it hangs makes everything move forward :-) ron