

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
57 messages in net.sourceforge.lists.courier-users[courier-users] Re: OpenBSD 3.2 break...| From | Sent On | Attachments |
|---|---|---|
| Sam Varshavchik | Jan 13, 2003 3:46 pm | |
| Richard Lyons | Jan 13, 2003 5:57 pm | |
| D. J. Bernstein | Jan 13, 2003 6:11 pm | |
| Sam Varshavchik | Jan 13, 2003 9:11 pm | |
| Russell Nelson | Jan 13, 2003 9:46 pm | |
| Sam Varshavchik | Jan 13, 2003 10:19 pm | |
| Russell Nelson | Jan 13, 2003 11:11 pm | |
| Sam Varshavchik | Jan 13, 2003 11:35 pm | |
| James Graves | Jan 14, 2003 7:36 am | |
| mw-l...@csi.hu | Jan 14, 2003 7:39 am | |
| Sam Varshavchik | Jan 14, 2003 3:22 pm | |
| mw-l...@csi.hu | Jan 14, 2003 11:13 pm | |
| Sam Varshavchik | Jan 15, 2003 5:11 am | |
| Matthias Andree | Jan 15, 2003 9:55 am | |
| Sam Varshavchik | Jan 15, 2003 3:11 pm | |
| Matthias Andree | Jan 15, 2003 4:13 pm | |
| Sam Varshavchik | Jan 15, 2003 4:48 pm | |
| Johan Lindh | Jan 15, 2003 10:16 pm | |
| Peter C. Norton | Jan 15, 2003 11:52 pm | |
| Bill Michell | Jan 16, 2003 1:30 am | |
| Johan Lindh | Jan 16, 2003 2:00 am | |
| Matthias Andree | Jan 16, 2003 2:22 am | |
| Bill Michell | Jan 16, 2003 2:28 am | |
| Matthias Andree | Jan 16, 2003 2:28 am | |
| Matthias Andree | Jan 16, 2003 2:45 am | |
| David Laight | Jan 16, 2003 3:14 am | |
| Sam Varshavchik | Jan 16, 2003 4:58 am | |
| Sam Varshavchik | Jan 16, 2003 5:01 am | |
| Johan Lindh | Jan 16, 2003 6:28 am | |
| Bob Johnson | Jan 16, 2003 7:42 am | |
| James Graves | Jan 16, 2003 8:18 am | |
| Alex...@nokia.com | Jan 16, 2003 8:58 am | |
| Bill Michell | Jan 16, 2003 9:06 am | |
| Johan Lindh | Jan 16, 2003 9:45 am | |
| Matthias Andree | Jan 16, 2003 9:46 am | |
| Matthias Andree | Jan 16, 2003 9:47 am | |
| Liviu Daia | Jan 16, 2003 12:17 pm | |
| mw-l...@csi.hu | Jan 16, 2003 12:48 pm | |
| Sam Varshavchik | Jan 16, 2003 2:55 pm | |
| Matthias Andree | Jan 16, 2003 3:11 pm | |
| Peter C. Norton | Jan 16, 2003 6:13 pm | |
| Sam Varshavchik | Jan 16, 2003 7:03 pm | |
| in...@lauwira.org | Jan 16, 2003 10:20 pm | |
| Sam Varshavchik | Jan 17, 2003 4:47 am | |
| Matthias Andree | Jan 17, 2003 7:55 am | |
| in...@lauwira.org | Jan 17, 2003 8:41 am | |
| Saxon Jones | Jan 17, 2003 9:44 am | |
| in...@lauwira.org | Jan 17, 2003 10:49 am | |
| mw-l...@csi.hu | Jan 17, 2003 12:30 pm | |
| Sam Varshavchik | Jan 17, 2003 2:35 pm | |
| Mike Lemoine | Jan 17, 2003 3:07 pm | |
| in...@lauwira.org | Jan 17, 2003 3:12 pm | |
| Saxon Jones | Jan 17, 2003 3:44 pm | |
| in...@lauwira.org | Jan 17, 2003 3:48 pm | |
| Matthias Andree | Jan 18, 2003 5:05 am | |
| Matthias Andree | Jan 18, 2003 5:06 am | |
| in...@lauwira.org | Jan 20, 2003 9:57 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | [courier-users] Re: OpenBSD 3.2 breaks Courier, Qmail. | Actions... |
|---|---|---|
| From: | James Graves (jgra...@deltamobile.com) | |
| Date: | Jan 14, 2003 7:36:40 am | |
| List: | net.sourceforge.lists.courier-users | |
Sam Varshavchik <mrs...@courier-mta.com> wrote:
It's been brought to my attention that OpenBSD 3.2 can assign the same pid to different processes in the same chronological second (that is, one process terminates, and its pid is immediately assigned to a new process that's created soon thereafter).
Since filenames for messages in maildirs are generated based on the combination of the pid, and the current time, in seconds, there is now a race condition that will result in loss or corruption of mail. This breaks Courier and Qmail. Example: process A delivers a message to a maildir just before process B reads Maildir/new, and A's message is moved to Maildir/cur a short time after it's been delivered, and A exits; meanwhile process C starts, and delivers mail to the same maildir; its generated filename will now be the same; so now you will have two messages with the same base filename in the maildir).
This is not theoretical. This been brought to my attention after someone managed to succesfully deliver two messages with the same filename, on a piddly Athlon (as part of a Courier "stress test"). Let's have a round of applause for such a noteworthy accomplishment!
Ah, I was testing Courier on a OpenBSD 3.1 machine, and noticed a bit of odd behavior. This must be the cause of it!
I had previously run the stress test for mail delivery. When delivering a large number of messages at once (like 5000) using that test script, I would see a few (like 1 to 3) messages somehow dropped. I never got any error messages from Courier, and nothing else seemed to be a problem. No stuck processes or anything. At first I thought it was an NFS problem (all Maildirs were NFS mounted), but setting up an account for local delivery didn't help.
I've applied the patch to my copy of Courier 0.39.1 on that same OpenBSD 3.1 machine and re-run the perftest1 program. Now it seems to work fine, with no dropped messages.
Kudos to Sam and whoever it was that made the connection to recycled PIDs.
James Graves, CTO Delta Mobile Software http://www.deltamobile.com







