First off, this is specific to 9front mail, so you may want to try
the 9front list.
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.
The plumb ports we use:
seemail: a message has come in or changed state
showmail: we want to open a message
sendmail: we want to compose a message
send: (unused, we don't send plumb messages)
As far as I can tell, we don't send any messsages from
the paths called from mbflush (the function that put
invokes).
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.
Quoth Nicola Girardi via 9fans <[email protected]>:
> Hi all,
>
> I have a curious problem with Mail hanging when attempting to write to
> the seemail port (that's according to ratrace) after marking a message
> deleted and middle-clicking Put.
>
> AFAICS, on the one hand, the Put causes a receive in mbmain (on the
> Cevent channel), which causes a write to plumbsend, which should cause
> a read on the seemail proc, which would try to send a message to the
> Cseemail channel, but that can't be received as mbmain is busy
> already; so I'd be tempted to think this may be a deadlock scenario.
> On the other hand, though, this can't be the explanation as such a
> deadlock would've been reported by anyone ever deleting a message⦠so
> I'm more inclined to think I'm doing something wrong. Which brings me
> to:
>
> My setup:
>
> - 9front (not the latest, but I've seen this behavior for ages, but
> didn't have the knowledge to even start troubleshooting then)
> - upas/fs launched in lib/profile, after plumber, before rio
> - acme started from riostart
>
> Just in case it's relevant, though I wouldn't think so:
> - booted as QEMU amd64 instance
> - used via drawterm
> - a bespoke unusual 9P fs as the root
>
> Lastly, and what makes me most curious, is that if I change my set up
> to this:
>
> - add -s to the upas/fs command in lib/profile
> - use Local mount /srv/upasfs.ng /mail/fs in acme
> - use Mail in acme
>
> such lock-up does not happen.
>
> I'm grateful if anyone can help dissipate my confusion. :-)
>
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T92af154d081c9c25-Mb2be9c89a9810300e7a2420e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription