From owner-freebsd-stable@FreeBSD.ORG Sun Sep 16 17:07:29 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A4F09106564A; Sun, 16 Sep 2012 17:07:29 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 5D8A48FC0A; Sun, 16 Sep 2012 17:07:29 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 9AAE82842C; Sun, 16 Sep 2012 19:07:22 +0200 (CEST) Received: from [192.168.1.2] (static-84-242-120-26.net.upcbroadband.cz [84.242.120.26]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id C451328423; Sun, 16 Sep 2012 19:07:21 +0200 (CEST) Message-ID: <50560748.2040204@quip.cz> Date: Sun, 16 Sep 2012 19:07:20 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Mikolaj Golub References: <504D10A7.1070701@quip.cz> <20120915125003.GA91163@gmail.com> In-Reply-To: <20120915125003.GA91163@gmail.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, Hartmut Brandt Subject: Re: bsnmpd always died on HDD detach X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Sep 2012 17:07:29 -0000 Mikolaj Golub wrote: > On Sun, Sep 09, 2012 at 11:56:55PM +0200, Miroslav Lachman wrote: >> I am running bsnmpd with basic snmpd.config (only community and location >> changed). >> >> When there is a problem with HDD and disk disapeared from ATA channel >> (eg.: disc physically removed) the bsnmpd always dumps core: >> >> kernel: pid 1188 (bsnmpd), uid 0: exited on signal 11 (core dumped) >> >> I see this for a long rime on all releases of 7.x and 8.x branches (i386 >> and amd64). I did not tested 9.x. > > Ok, I was able to to reproduce this under qemu doing > > atacontrol detach ata1 [...] > and it crashes in disk_OS_get_ATA_disks() when the removed map entry > is dereferenced. > > I am attaching the patch that fixes the issue for me. I am glad to read that you found the bug! The fix (patch) seems trivial - will it be commited / MFCed? :) Thank you for your work on this problem! Miroslav Lachman