From owner-freebsd-stable@FreeBSD.ORG Tue Jul 5 04:57:24 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBB9B16A41C for ; Tue, 5 Jul 2005 04:57:23 +0000 (GMT) (envelope-from Mark_Andrews@isc.org) Received: from farside.isc.org (farside.isc.org [204.152.187.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDF1443D49 for ; Tue, 5 Jul 2005 04:57:23 +0000 (GMT) (envelope-from Mark_Andrews@isc.org) Received: from drugs.dv.isc.org (localhost [IPv6:::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by farside.isc.org (Postfix) with ESMTP id 4E67F677EF for ; Tue, 5 Jul 2005 04:57:23 +0000 (UTC) (envelope-from marka@isc.org) Received: from drugs.dv.isc.org (localhost [127.0.0.1]) by drugs.dv.isc.org (8.13.3/8.13.1) with ESMTP id j654vA8m085481; Tue, 5 Jul 2005 14:57:11 +1000 (EST) (envelope-from marka@drugs.dv.isc.org) Message-Id: <200507050457.j654vA8m085481@drugs.dv.isc.org> To: Andy Hilker From: Mark Andrews In-reply-to: Your message of "Mon, 04 Jul 2005 23:35:47 +0200." <20050704213546.GA47314@mail.crypta.net> Date: Tue, 05 Jul 2005 14:57:10 +1000 Sender: Mark_Andrews@isc.org Cc: freebsd-stable@freebsd.org Subject: Re: 5.4-p3 and bind9: isc_mutex_init failed in new_adbfind / exited on signal 11 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: Tue, 05 Jul 2005 04:57:24 -0000 > Hi, > > after upgrading to 5.4-p3 I have problems with bind 9. After a few > days it exits on signal 11. I am using an SMP kernel. I have found > some other people describing the same problem, without a solution. > On 5.3 I did not experience such things, bind runs stable. Just > want to confirm this issue to whom it may concern. > > If someone needs more info to debug or have hints/workarounds, > please answer. > > named[721]: /usr/src/lib/bind/dns/../../../contrib/bind9/lib/dns/adb.c:1439: > unexpected error: > named[721]: isc_mutex_init failed in new_adbfind() > pid 721 (named), uid 53: exited on signal 11 > > bye, > Andy > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" FreeBSD's pthread_mutex_init() (isc_mutext_init()) can fail if there is no memory. On most other OS this is not the case. The callers to isc_mutext_init() assume that a failure is due to a double initialision and as a result log a error message when it fails. Memory allocation failures on the other hand are not logged. What I suspect is happening here is that you are seeing a error in the error path due to a memory allocation failure which results in a NULL pointer de-reference. A stack backtrace from the core dump would pinpoint the error location. To get this you really need named to have been built w/ -g and set kern.sugid_coredump=1. You can avoid the issue by tuning named so that it doesn't run out of memory. Mark -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews@isc.org