From root@heitec.net  Sat May 12 17:08:23 2007
Return-Path: <root@heitec.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 3456316A402
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 12 May 2007 17:08:23 +0000 (UTC)
	(envelope-from root@heitec.net)
Received: from christel.heitec.net (christel.heitec.net [62.206.253.11])
	by mx1.freebsd.org (Postfix) with ESMTP id F0BAB13C45E
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 12 May 2007 17:08:22 +0000 (UTC)
	(envelope-from root@heitec.net)
Received: by christel.heitec.net (Postfix, from userid 0)
	id 490CCA8936; Sat, 12 May 2007 18:52:58 +0200 (CEST)
Message-Id: <20070512165258.490CCA8936@christel.heitec.net>
Date: Sat, 12 May 2007 18:52:58 +0200 (CEST)
From: Bernd Luevelsmeyer <bdluevel@heitec.net>
Reply-To: Bernd Luevelsmeyer <bdluevel@heitec.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: named crash
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         112622
>Category:       bin
>Synopsis:       named crash
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 12 17:10:05 GMT 2007
>Closed-Date:    Sat May 12 17:43:50 GMT 2007
>Last-Modified:  Sat May 12 17:43:50 GMT 2007
>Originator:     Bernd Luevelsmeyer
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD 6.2-STABLE #0: Mon Feb 5 15:12:55 CET 2007 i386


>Description:
The named service crashed with an assertion failure. The machine
is a mailserver running postfix-current. The messages are:

May 11 22:31:06 <daemon.crit> christel named[13876]:
/usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/mem.c:628:
INSIST(((unsigned char *)mem)[size] == 0xbe) failed
May 11 22:31:06 <daemon.crit> christel named[13876]: exiting
(due to assertion failure)

The failing function is (with the '->' pointing to the line in
question):

    static inline void
    mem_put(isc_mem_t *ctx, void *mem, size_t size) {
    #if ISC_MEM_CHECKOVERRUN
->      INSIST(((unsigned char *)mem)[size] == 0xbe);
    #endif
    #if ISC_MEM_FILL
        memset(mem, 0xde, size); /* Mnemonic for "dead". */
    #else
        UNUSED(size);
    #endif
        (ctx->memfree)(ctx->arg, mem);
    }


>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:

From: Remko Lodder <remko@elvandar.org>
To: Bernd Luevelsmeyer <bdluevel@heitec.net>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: bin/112622: named crash
Date: Sat, 12 May 2007 19:32:06 +0200

 Bernd Luevelsmeyer wrote:
 > 
 > May 11 22:31:06 <daemon.crit> christel named[13876]:
 > /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/mem.c:628:
 > INSIST(((unsigned char *)mem)[size] == 0xbe) failed
 > May 11 22:31:06 <daemon.crit> christel named[13876]: exiting
 > (due to assertion failure)
 > 
 > The failing function is (with the '->' pointing to the line in
 > question):
 > 
 >     static inline void
 >     mem_put(isc_mem_t *ctx, void *mem, size_t size) {
 >     #if ISC_MEM_CHECKOVERRUN
 > ->      INSIST(((unsigned char *)mem)[size] == 0xbe);
 >     #endif
 >     #if ISC_MEM_FILL
 >         memset(mem, 0xde, size); /* Mnemonic for "dead". */
 >     #else
 >         UNUSED(size);
 >     #endif
 >         (ctx->memfree)(ctx->arg, mem);
 >     }
 > 
 
 Hello Bernd,
 
 first of all thanks for submitting this entry to try and improve
 FreeBSD with us, though this seems like something specifically
 for the named application which should be reported upstream to
 the named team at isc instead of reporting this at FreeBSD
 (it is contributed software outside our direct scope).
 
 Thanks & Cheers,
 Remko
 
 -- 
 Kind regards,
 
      Remko Lodder               ** remko@elvandar.org
      FreeBSD                    ** remko@FreeBSD.org
 
      /* Quis custodiet ipsos custodes */
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Sat May 12 17:43:49 UTC 2007 
State-Changed-Why:  
This looks like bind specific stuff, please report this upstream to the 
isc (the maintainers and authors of bind/named). Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112622 
>Unformatted:
