Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Dec 2007 19:09:42 +0300
From:      Boris Samorodov <bsam@ipt.ru>
To:        Eugene Grosbein <eugen@grosbein.pp.ru>
Cc:        stable@freebsd.org
Subject:   Re: qemu: freebsd6_mmap -1 errno 12 Cannot allocate memory
Message-ID:  <20860185@bb.ipt.ru>
In-Reply-To: <20071207154852.GA22166@grosbein.pp.ru> (Eugene Grosbein's message of "Fri\, 7 Dec 2007 22\:48\:52 %2B0700")
References:  <20071207154852.GA22166@grosbein.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 7 Dec 2007 22:48:52 +0700 Eugene Grosbein wrote:

> There is FreeBSD box that was 6.2-STABLE before, now it became
> 7.0-BETA3 via source upgrade. The kernel has 'options COMPAT_FREEBSD6'

How did you upgrade the OS? Did you use "make delete-old-libs"?
Did you install compat-6x?

> compiled in. However, qemu-0.8.2s.20061225_1 stopped to work,

Seems to be a rather old qemu version...

> it dumps core when started with an error:

> Fatal error 'Cannot allocate red zone for initial thread' at line 384 in
> file /usr/local/obj/src/lib/libthr/thread/thr_init.c (errno = 12)

> ktrace shows that freebsd6_mmap() syscall fails:

>  22114 qemu     CALL freebsd6_mmap(0xbf9ff000,0x1000,PROT_NONE,MAP_ANON,0xffffffff,0,0,0)
>  22114 qemu     RET  freebsd6_mmap -1 errno 12 Cannot allocate memory

> Is it a bug in kernel's COMPAT_FREEBSD6 feature?

> Rebuilding of qemu requires downloading and building of gcc-3.4
> that's what I would avoid to do. 


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve



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