bin/115430: rpc.statd core dumps if unable to mmap()
/var/db/statd.status file
Don Lewis
truckman at FreeBSD.org
Sun Aug 12 14:30:07 PDT 2007
The following reply was made to PR bin/115430; it has been noted by GNATS.
From: Don Lewis <truckman at FreeBSD.org>
To: maxim at macomnet.ru
Cc: timur at FreeBSD.org, bug-followup at FreeBSD.org
Subject: Re: bin/115430: rpc.statd core dumps if unable to mmap()
/var/db/statd.status file
Date: Sun, 12 Aug 2007 14:25:26 -0700 (PDT)
On 13 Aug, Maxim Konovalov wrote:
> [...]
>> >Release: FreeBSD 6.2-STABLE i386
>> >Organization:
>> >Environment:
>>
>> >Description:
>>
>> Somehow with my recent enough build rpc.statd is unable to mmap() "/var/db/statd.status" file and core dumps. Possibly, the failure of mmap() is fixed in latest STABLE, but this problem revealed a race condition in the rpc.statd. Here is the stack trace and piece of offending code:
>>
[snip]
>>
> Could it be fixed by the latest truckman@ work?
This problem should be fixed for 6.2-STABLE by
usr.sbin/rpc.statd/statd.c 1.12.8.2 (Sun Aug 12 01:46:19 2007 UTC) and
for 7.0-CURRENT by statd.c 1.15 (Sun Aug 5 16:33:06 2007 UTC).
The warn() call should probably be changed to err() because the
implemention does not have code to handle the case where mmap() fails.
More information about the freebsd-bugs
mailing list