Bug 14797

Summary: Serious locking problem in CURRENT
Product: Base System Reporter: Vincent Poy <vince>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   

Description Vincent Poy 1999-11-09 09:20:00 UTC
There is something broken in -CURRENT with file locking since I've
experienced this with sendmail 8.9.3.  I compared this to a 3.3-RELEASE
machine running sendmail 8.9.3 and it doesn't exhibit the same problem.

How-To-Repeat: 
You can do a little test of the file locking, might be a bit tricky if
you have a busy system, but it would be interesting to see the result:

Run sendmail with -bd -q1m

Send a message to an "unused" IP address on your local network, e.g.

date | sendmail 'nobody@[123.123.123.123]'

(substitute an appropriate IP address of course). This should have the
(backgrounded) original sendmail process sitting waiting with the queue
file locked for just over one minute, so you need to hurry a bit with
the rest:

Run 'mailq' - does this message have a '*' in the first column (it
should)?

Take the queue ID for the message - shown in the first column of mailq
output (immediately following the '*', if any) - say XAA01234, and do a
verbose queue run for just that ID:

sendmail -v -qIXAA01234

(substituting the queue ID you got of course, i.e. -qI<yourID>) - this
should just print

Running XAA03875 (sequence 1 of 1)
XAA03875: locked

and then exit - does it?
Comment 1 Sheldon Hearn 1999-11-09 10:45:36 UTC
On Mon, 08 Nov 1999 23:11:18 -1000, Vincent Poy wrote:

> You can do a little test of the file locking, might be a bit tricky if
> you have a busy system, but it would be interesting to see the result:
> 
> Run sendmail with -bd -q1m

Sendmail isn't a "little test" of anything. :-)

There are discussions on the -current mailing list (which you should be
reading if you're posting CURRENT problem reports) regarding file
locking.

I believe Brian Feldman fixed a locking problem over the week-end.
You'd know this too if you followed your commit mail, eh? ;-)

Please try kern_descrip.c rev 1.72 and see if it fixes whatever problem
you're having.

Ciao,
Sheldon.
Comment 2 Sheldon Hearn freebsd_committer freebsd_triage 1999-11-09 11:14:15 UTC
State Changed
From-To: open->feedback

Waiting for Vincent to try with up to date CURRENT sources. 
Comment 3 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-07 15:41:35 UTC
State Changed
From-To: feedback->closed

Johan Karlsson reminded me that this one has timed out 
waiting for feedback.