From owner-freebsd-questions@FreeBSD.ORG Sat Jul 27 16:47:24 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 370B7A75 for ; Sat, 27 Jul 2013 16:47:24 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-ee0-f43.google.com (mail-ee0-f43.google.com [74.125.83.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BB3E82C57 for ; Sat, 27 Jul 2013 16:47:23 +0000 (UTC) Received: by mail-ee0-f43.google.com with SMTP id e52so308834eek.16 for ; Sat, 27 Jul 2013 09:47:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=k3FyEp6qteXfgqND+nhQAdlkVwUndzozfSS2UqmOoJc=; b=B/kp7WaRV4rQP5xcfdMcOo35WWi4B0bob01Vn1ZbLO37/RHHS45B5xVI+kUiHIEvU/ tRoNWrKK/lWkrPMIVobfVXn9oNgXst8cIOW6tWFcUHtt5mTXL3GRbHv/ClWzNKGjhd/w HF0g9EUS0gQ1AAuYzdNMipDH0GqWVbPefknP+Uvxs5g3RC+sa5x39tjhtjsDYxLdJFr3 x/YBFzBgAIXpQdf28cOPB7pjm+J8v4oWv/lvfpvSgJRPRglDOTGTnS/aWHRZ8qmCeyu2 dIJa6dmjCQaU9qkwXIgO9uDDjxl4mBJ7BFLsLTNNwIe+lcT3yvBxQVeNGl7LbVSCJdkQ Xb7A== X-Received: by 10.14.5.68 with SMTP id 44mr14601242eek.141.1374941851782; Sat, 27 Jul 2013 09:17:31 -0700 (PDT) Received: from phenom.cordula.ws (p5DDDB58C.dip0.t-ipconnect.de. [93.221.181.140]) by mx.google.com with ESMTPSA id p49sm88844875eeu.2.2013.07.27.09.17.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 27 Jul 2013 09:17:30 -0700 (PDT) Message-ID: <51F3F290.9020004@cordula.ws> Date: Sat, 27 Jul 2013 18:17:20 +0200 From: cpghost User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130711 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Delete a directory, crash the system References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlKjVQYgVCZHXJ7aycFlVXCxcS7TMd+pRkja5qK5vPWxM8j3mlcQ1jUK3bjzfbWit6WFI3V X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jul 2013 16:47:24 -0000 On 07/27/13 14:58, David Noel wrote: >> Post the stack trace of the core and maybe someone can help you. > > panic: ufs_dirrem: Bad link count 2 on parent > cpuid = 0 > KDB: stack backtrace: > #0 0xffffffff808680fe at kdb_backtrace+0x5e > #1 0xffffffff80832cb7 at panic+0x187 > #2 0xffffffff80a700e3 at ufs_rmdir+0x1c3 > #3 0xffffffff80b7d484 at VOP_RMDIR_APV+0x34 > #4 0xffffffff808ca32a at kern_rmdirat+0x21a > #5 0xffffffff80b17cf0 at amd64_syscall+0x450 > #6 0xffffffff80b03427 at Xfast_syscall+0xf7 So the system panics in ufs_rmdir(). Maybe the filesystem is corrupt? Have you tried to fsck(8) it manually? Even if the filesystem is corrupt, ufs_rmdir() shouldn't panic(), IMHO, but fail gracefully. Hmmm... -cpghost. -- Cordula's Web. http://www.cordula.ws/