From owner-freebsd-stable@FreeBSD.ORG Fri Dec 7 15:49:07 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 4A2F716A419 for ; Fri, 7 Dec 2007 15:49:07 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (grgw.svzserv.kemerovo.su [213.184.64.166]) by mx1.freebsd.org (Postfix) with ESMTP id EFCFA13C459 for ; Fri, 7 Dec 2007 15:49:04 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (localhost [127.0.0.1]) by grosbein.pp.ru (8.14.2/8.14.2) with ESMTP id lB7FmrFD022213 for ; Fri, 7 Dec 2007 22:48:53 +0700 (KRAT) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.14.2/8.14.2/Submit) id lB7Fmqct022212 for stable@freebsd.org; Fri, 7 Dec 2007 22:48:52 +0700 (KRAT) (envelope-from eugen) Date: Fri, 7 Dec 2007 22:48:52 +0700 From: Eugene Grosbein To: stable@freebsd.org Message-ID: <20071207154852.GA22166@grosbein.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Cc: Subject: 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 15:49:07 -0000 Hi! 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' compiled in. However, qemu-0.8.2s.20061225_1 stopped to work, 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. Eugene Grosbein