9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: ron minnich <rminnich@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] tracing considered helpful
Date: Fri, 23 Apr 2010 14:14:52 -0700	[thread overview]
Message-ID: <q2k13426df11004231414j1f00841z15d55efc8d3480fe@mail.gmail.com> (raw)

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



                 reply	other threads:[~2010-04-23 21:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=q2k13426df11004231414j1f00841z15d55efc8d3480fe@mail.gmail.com \
    --to=rminnich@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).