Quoth [email protected]:
> First off, this is specific to 9front mail, so you may want to try
> the 9front list.

Yeah, sorry about that; it's just last time I posted there sl got lots
of emails re: failed deliveries or something; I don't recall the
details.  AFAICS my provider is set up fine (but it's not under my
control, other than choosing not to use it, that is).  I'll post to
9front next time.

> Second, I'm a bit confused; all of our plumb file descriptors
> are opened OREAD (except for plumbsendfd, which was unused).
> We dont' write to any ports.

You're absolutely right, I must've been looking at the ratrace output
for upas/fs rather than Mail.  I repeated the experiment, and here are
the results.

The process stuck writing to the seemail port is indeed upas/fs:

        312 fs Pwrite 21a04c 5  
0x44c160/"mailfs.seemail./mail/[email protected]" 205 
-1

This makes sense, because the process that needs to receive the
message is Mail, which is itself stuck, here are the last few lines
from its trace:

        403 Mail Open 21ac1c 0x40e000/"/mail/fs/ctl" 0x1 = 16 "" 173579477431 
173584571672
        [... omitted two successful writes to other fids ...]
        403 Mail Pwrite 20ace8 16  0x472c78/"delete.mbox.9" 13 -1

which suggests that Mail is waiting for upas/fs to receive the message
written to the control file, so they're deadlocked; I'll test this hypothesis.

For comparison, here's what the trace would look like when Mail does
not get stuck:

        415 Mail Pwrite 20ace8 16  0x472c78/"delete.mbox.6" 13 -1 = 13 "" 
163054398681 163274619092
        415 Mail Close 21ac3a 16 = 0 "" 163275175643 163275183465

> The most useful thing you could do would be to capture
> stacks from all of the Mail procs that are hanging,
> and send them; see lstk(1) or acid.

Okay, thanks the pointers Ori.  I'll send this reply while I have a
working Mail+upas/fs pair!  and will check stack traces later.

--
Nico - has some more debugging to do


------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T92af154d081c9c25-Me504b85ec9e8abde1bb1d0f8
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to