From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 27 22:13:53 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 761D7106564A for ; Thu, 27 Jan 2011 22:13:53 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 13D898FC14 for ; Thu, 27 Jan 2011 22:13:52 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p0RLnIuf000197 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Jan 2011 23:49:18 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p0RLnIR0054466; Thu, 27 Jan 2011 23:49:18 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p0RLnIMH054465; Thu, 27 Jan 2011 23:49:18 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 27 Jan 2011 23:49:18 +0200 From: Kostik Belousov To: Alexander Best Message-ID: <20110127214918.GS2518@deviant.kiev.zoral.com.ua> References: <4D404145.5020507@duke.edu> <20110126175529.GA92874@freebsd.org> <4D4066F5.3070407@duke.edu> <20110126210843.GA21919@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/45fpkxfdnDqFSDa" Content-Disposition: inline In-Reply-To: <20110126210843.GA21919@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-emulation@freebsd.org, Jacob Frelinger Subject: Re: odd regression in the linux emulator. X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2011 22:13:53 -0000 --/45fpkxfdnDqFSDa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 26, 2011 at 09:08:43PM +0000, Alexander Best wrote: > On Wed Jan 26 11, Jacob Frelinger wrote: > > On 01/26/11 12:55, Alexander Best wrote: > > >could you provide the output of 'pkg_info -E linux_dist\*' please? > >=20 > > [jolly@moku ~]$ pkg_info -E linux_dist\* > > linux_dist-gentoo-stage3-20100622 > >=20 > > >btw: i also experience the problem. newer versions of linux_dist come = with > > >linux binaries that make heavy use of futextes (even 'ls'). you should= see > > >a lot of futex warnings in 'dmesg -a'. > >=20 > > linux: pid 8416 (gmake): linux_sys_futex: op FUTEX_WAIT_BITSET not=20 > > implemented > > linux: pid 8907 (ls): linux_sys_futex: op FUTEX_WAIT_BITSET not impleme= nted > > linux: pid 8908 (ls): linux_sys_futex: op FUTEX_WAIT_BITSET not impleme= nted > >=20 > > yup. got those. I saw them before when everything was working though= =20 > > so I assumed they weren't the problem... ls generates them but seems t= o=20 > > work just fine. >=20 > i think you're right. the futex stuff doesn't seem to be causing problems= . i > performed a kdump -d/linux_ktrace sequence and this is the result: >=20 > 8462 gmake RET write 67/0x43 > 8462 gmake CALL linux_pipe(0xffffbe08) > 8462 gmake RET linux_pipe 0 > 8462 gmake CALL close(0x5) > 8462 gmake RET close 0 > 8462 gmake CALL linux_fcntl64(0x3,0x2,0x1) > 8462 gmake RET linux_fcntl64 0 > 8462 gmake CALL linux_rt_sigprocmask(0,0x806bfe0,0,0x8) > 8462 gmake RET linux_rt_sigprocmask 0 > 8462 gmake CALL linux_vfork > 8462 gmake RET linux_vfork 8463/0x210f > 8462 gmake CALL linux_rt_sigprocmask(0x2,0xffffbdb0,0,0x8) > 8462 gmake RET linux_rt_sigprocmask 0 > 8462 gmake CALL linux_wait4(0xffffffff,0xffffbe5c,0,0) > 8462 gmake RET linux_wait4 RESTART > 8462 gmake PSIG SIGCHLD caught handler=3D0x80541a0 mask=3D0x0 code= =3D0x0 > 8462 gmake CALL linux_sigreturn(0xffffbb34) > 8462 gmake RET linux_sigreturn JUSTRETURN > 8462 gmake CALL linux_wait4(0xffffffffffffffff,0xffffffffffffbe5c,0= ,0) > 8462 gmake RET linux_wait4 -1 errno 14 Bad address > 8462 gmake CALL write(0x2,0xffff96b8,0xa) > 8462 gmake GIO fd 2 wrote 10 bytes > "make: *** " > 8462 gmake RET write 10/0xa > 8462 gmake CALL write(0x2,0xffff96b8,0x11) > 8462 gmake GIO fd 2 wrote 17 bytes > "wait: Bad address" > 8462 gmake RET write 17/0x11 > 8462 gmake CALL write(0x2,0x8068727,0x9) > 8462 gmake GIO fd 2 wrote 9 bytes > ". Stop. > " > 8462 gmake RET write 9 > 8462 gmake CALL write(0x2,0xffff9618,0x6) > 8462 gmake GIO fd 2 wrote 6 bytes > "make: " > 8462 gmake RET write 6 > 8462 gmake CALL write(0x2,0xffff9618,0x23) > 8462 gmake GIO fd 2 wrote 35 bytes > "*** Waiting for unfinished jobs...." >=20 > ...so something's wrong with the linux_wait4() call. This should be fixed by r217991. --/45fpkxfdnDqFSDa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk1B6F0ACgkQC3+MBN1Mb4gGlwCgue2clS+WPI4QU3d4C4KDBXiG Zq4AoJ9hlDTXrTbOQwg4Hclcjl5/D3Bp =KWNx -----END PGP SIGNATURE----- --/45fpkxfdnDqFSDa--