Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Oct 2000 21:18:02 +1300 (NZDT)
From:      Juha Saarinen <juha@saarinen.org>
To:        freebsd-stable@freebsd.org
Subject:   Malloc type lacks magic
Message-ID:  <Pine.LNX.4.21.0010232116130.16125-100000@vimfuego.saarinen.org>

next in thread | raw e-mail | index | archive | help
CVSup'ed to 4.1.1-STABLE from -RELEASE, and rebuilt the world and the
kernel. After rebooting, I see the error message in the subject and the
system reboots.

Going through the sources, I see this:

}

void
malloc_init(data)
        void *data;
{
        struct malloc_type *type = (struct malloc_type *)data;

        if (type->ks_magic != M_MAGIC) 
                panic("malloc type lacks magic");

        if (type->ks_limit != 0)
                return;

        if (cnt.v_page_count == 0)
                panic("malloc_init not allowed before vm init");

        /*
         * The default limits for each malloc region is 1/2 of the
         * malloc portion of the kmem map size.
         */
        type->ks_limit = vm_kmem_size / 2;
        type->ks_next = kmemstatistics; 
        kmemstatistics = type;

(kern_malloc.c)

-- What might I have done wrong here?

-- 
Regards,


Juha

PGP fingerprint:
B7E1 CC52 5FCA 9756 B502  10C8 4CD8 B066 12F3 9544



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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