panic malloc_init: bad malloc type magic

Robert Watson rwatson at FreeBSD.org
Thu Apr 23 17:09:54 UTC 2009


On Thu, 23 Apr 2009, Arnar Mar Sig wrote:

> On Apr 23, 2009, at 4:47 PM, Marius Nünnerich wrote:
>> On Thu, Apr 23, 2009 at 15:54, Андрей Грошев <greenx at yartv.ru> wrote:
>>> Hello, people! Today the world has updated and now I get subj. Because of 
>>> what's going on? And how to locate the problems?
>> 
>> Could you send a backtrace of the panic?
>
> Got the same panic yesterday after updating.
>
> I was able to boot with older kernel and build new from scratch (rm -rf 
> /usr/obj/*) that worked.

I changed the size of "struct malloc_type", which is embedded in modules 
declaring new malloc types, on 19 April, r191267.  However, I also changed 
__FreeBSD_version, which should cause updated kernels to reject older modules. 
If people are experiencing the panic, they should make sure all modules are in 
sync with their kernel.  If it still occurs, it's probably a bug in the 
module's use of malloc(9), although it may be a bug in the malloc(9) 
sanity-checking I added. :-)

Robert N M Watson
Computer Laboratory
University of Cambridge


More information about the freebsd-current mailing list