Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2000 14:24:46 -0300 (ART)
From:      Fernando Schapachnik <fpscha@ns1.via-net-works.net.ar>
To:        hackers@freebsd.org
Subject:   Weird locking issue with makemap, sendmail on a 4.1-R SMP.
Message-ID:  <200009181724.OAA86837@ns1.via-net-works.net.ar>

next in thread | raw e-mail | index | archive | help
Hello:
	I'm resending this mail here as nobody in -questions seems to
have a clue about what is going on.

	Any ideas? Thanks for your time.

----- Forwarded message from Fernando Schapachnik -----
Subject: Weird locking issue with makemap, sendmail on a 4.1-R SMP.
To: questions@freebsd.org
Date: Fri, 15 Sep 2000 15:07:11 -0300 (ART)

Hello:
	I'm having a weird problem with my SMP 4.1-RELEASE mail server:

CPU: Pentium III/Pentium III Xeon/Celeron (731.02-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA
,CMOV,PAT,PSE36,MMX,FXSR,XMM>
real memory  = 536854528 (524272K bytes)

	First thing I noticed was that newaliases was getting hung.
Further investigation showed the problem was
~majordom/aliases.majordom.db

	Running makemap hash ~majordom/aliases.majordom <
~majordom/aliases.majordom hunged also.

	A fstat showed only sendmail has this file open, and for
reading only.

	A ktrace shows:
 [...]
 87185 makemap  CALL  open(0xbfbff658,0x622,0x1a4)
 87185 makemap  NAMI  "aliases.majordomo.db"
 [a lot of time... sent kill]
 87185 makemap  PSIG  SIGINT SIG_DFL

	aliases.majordom.db ends with 0 bytes. Removing the file
solves the problem.

	Sometimes same thing happens with virtusertable and similar
aliases-related files.

	Today the same happened with access.db. Lsof showed
sendmail 52975 root 7rR VREG 109,196608 0 35980 /etc/mail/access.db

	which means sendmail has the whole file locked for reading.

	Doing a ps -axl shows lockfs state and a sleeping process
(waiting for a lock, I guess).

	Any ideas? Thanks in advance!

----- End of forwarded message from Fernando Schapachnik -----



Fernando P. Schapachnik
Administración de la red
VIA NET.WORKS ARGENTINA S.A.
fernando@via-net-works.net.ar
(54-11) 4323-3333


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009181724.OAA86837>