Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2001 10:35:15 -0800 (PST)
From:      Yonatan Bokovza <yonatan@xpert.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/32378: pwd_mkdb SIG11 on bad file + bizarness
Message-ID:  <200111291835.fATIZFO53008@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         32378
>Category:       bin
>Synopsis:       pwd_mkdb SIG11 on bad file + bizarness
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 29 10:40:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Yonatan Bokovza
>Release:        FreeBSD 4.4-Stable of 29/11/2001
>Organization:
-
>Environment:
FreeBSD Temujin.xpert.com 4.4-STABLE FreeBSD 4.4-STABLE #8: Thu Nov 29 12:18:21 IST 2001     root@Temujin.xpert.com:/usr/obj/usr/src/sys/TEMUJIN  i386

>Description:
I ran pwd_mkdb on the wrong file and instead of a nice error I got
sig11 and coredump. The core can be found here:
http://j.xpert.com/pwd_mkdb/pwd_mkdb.core
The input file can be found here:
http://j.xpert.com/pwd_mkdb/asd

Other bizarness:
After the core is created pwd_mkdb leaves two empty temp files:
/etc/pwd.db.tmp
/etc/spwd.db.tmp

The next time you run pwd_mkdb it errors:
pwd_mkdb: /etc/pwd.db.tmp: File exists
but it removes this file. If you run it again you'll get:
pwd_mkdb: /etc/spwd.db.tmp: File exists
which you have to remove manually if you pwd_mkdb
to start working again.
Needless to say, all the operations described here
are run as root.
>How-To-Repeat:
pwd_mkdb asd
<corefile created>
pwd_mkdb asd
<see error message>
pwd_mkdb asd
<see different error message>
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

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




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