Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2012 19:07:20 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Mikolaj Golub <trociny@FreeBSD.org>
Cc:        freebsd-stable@freebsd.org, Hartmut Brandt <harti@FreeBSD.org>
Subject:   Re: bsnmpd always died on HDD detach
Message-ID:  <50560748.2040204@quip.cz>
In-Reply-To: <20120915125003.GA91163@gmail.com>
References:  <504D10A7.1070701@quip.cz> <20120915125003.GA91163@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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