From owner-freebsd-bugs Thu Nov 29 10:40: 6 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3D37837B405 for ; Thu, 29 Nov 2001 10:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fATIe1q53403; Thu, 29 Nov 2001 10:40:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DD26537B417 for ; Thu, 29 Nov 2001 10:35:15 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fATIZFO53008; Thu, 29 Nov 2001 10:35:15 -0800 (PST) (envelope-from nobody) Message-Id: <200111291835.fATIZFO53008@freefall.freebsd.org> Date: Thu, 29 Nov 2001 10:35:15 -0800 (PST) From: Yonatan Bokovza To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/32378: pwd_mkdb SIG11 on bad file + bizarness Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 pwd_mkdb asd pwd_mkdb asd >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message