From owner-freebsd-stable@FreeBSD.ORG Fri Dec 7 16:33:46 2007 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BE1F16A419 for ; Fri, 7 Dec 2007 16:33:46 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 0A15B13C46E for ; Fri, 7 Dec 2007 16:33:45 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1J0fnM-000EKj-Bd; Fri, 07 Dec 2007 19:11:20 +0300 To: Eugene Grosbein References: <20071207154852.GA22166@grosbein.pp.ru> From: Boris Samorodov Date: Fri, 07 Dec 2007 19:09:42 +0300 In-Reply-To: <20071207154852.GA22166@grosbein.pp.ru> (Eugene Grosbein's message of "Fri\, 7 Dec 2007 22\:48\:52 +0700") Message-ID: <20860185@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: stable@freebsd.org Subject: Re: qemu: freebsd6_mmap -1 errno 12 Cannot allocate memory X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2007 16:33:46 -0000 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