From owner-freebsd-questions Mon Oct 23 15:53:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from saarinen.org (saarinen.org [203.79.82.14]) by hub.freebsd.org (Postfix) with ESMTP id 4958137B4C5 for ; Mon, 23 Oct 2000 15:53:32 -0700 (PDT) Received: from DENDENNIS (softdnserr [::ffff:192.168.1.2]) by saarinen.org with esmtp; Tue, 24 Oct 2000 11:53:30 +1300 From: "Juha Saarinen" To: "freebsd-questions@FreeBSD. ORG" Subject: Malloc type lacks magic Date: Tue, 24 Oct 2000 11:53:45 +1300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Not able to boot with a custom kernel built from 4.1.1-STABLE sources, cvsup'ed 24 Oct NZT from cvsup.au.freebsd.org. Towards the end of the boot process, the kernel panics, and displays "malloc type lacks magic" and reboots. That message comes from kern_malloc.c: 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"); Tried adding (type->ks_magic == NULL) with a different message, but I still got the "malloc type lacks magic" one. Where's M_MAGIC set? The only place I can find it is in kern_malloc.c. Any workarounds for this, apart from running the 4.1.1-RELEASE GENERIC kernel, which boots fine? -- Juha "Bother," said Pooh as he struggled with sendmail.cf, "it never does quite what I want. I wish Christopher Robin was here." /"\ \ / ASCII Ribbon Campaign X Against HTML Mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message