From owner-freebsd-emulation@FreeBSD.ORG Sat Nov 24 09:36:34 2007 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 7214016A46B for ; Sat, 24 Nov 2007 09:36:34 +0000 (UTC) (envelope-from mail@sysfault.org) Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.18.16]) by mx1.freebsd.org (Postfix) with ESMTP id D75D413C469 for ; Sat, 24 Nov 2007 09:36:33 +0000 (UTC) (envelope-from mail@sysfault.org) Received: (qmail 22529 invoked from network); 24 Nov 2007 09:09:51 -0000 Received: from unknown (HELO medusa.sysfault.org) (936934@[89.182.1.20]) (envelope-sender ) by smtprelay04.ispgateway.de (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 24 Nov 2007 09:09:51 -0000 Received: from localhost ([127.0.0.1] helo=medusa.sysfault.org) by medusa.sysfault.org with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1Ivr4x-000D3N-5K for freebsd-emulation@freebsd.org; Sat, 24 Nov 2007 10:13:36 +0100 Received: (from marcus@localhost) by medusa.sysfault.org (8.14.2/8.14.1/Submit) id lAO9DWaN050180 for freebsd-emulation@freebsd.org; Sat, 24 Nov 2007 10:13:32 +0100 (CET) (envelope-from marcus) Date: Sat, 24 Nov 2007 10:13:32 +0100 From: Marcus von Appen To: freebsd-emulation@freebsd.org Message-ID: <20071124091332.GA980@medusa.sysfault.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) X-Spam-Score: -4.4 (----) Subject: Linuxulator on RELENG_7 causes games to hang X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcus von Appen List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Nov 2007 09:36:34 -0000 --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, today someone reported a breakage in the linux emulation (see PR ports/118213). As games//HeroesOfMightAndMagic worked fine on RELENG_6, some change between RELENG_6 and RELENG_7 must have caused a bug with such programs. games/HeroesOfMightAndMagic starts as supposed and goes into a wait state including a zombie process. In contrast to other reported issues, this does not seem to be related to the sound directly (although it might be caused by it) as the process hangs no matter if sound is enabled or disabled. games/rt2-demo suffers from the same issue, although it can be started without issues if you disable the sound with the -s parameter.=20 System and other information: RELENG_7 (freshly built two days ago) # cat /dev/sndstat FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) Installed devices: pcm0: at io 0xfebffa00, 0xfebff900 irq 17 bufsz 1638= 4 kld snd_ich [MPSAFE] (1p:1v/1r:1v channels duplex default) # dmesg |fgrep pcm pcm0: port 0xee00-0xeeff,0xedc0-0xedff mem 0xfebffa0= 0-0xfebffbff,0xfebff900-0xfebff9ff irq 17 at device 31.5 on pci0 pcm0: [ITHREAD] pcm0: primary codec not ready! pcm0: # sysctl compat compat.linux.oss_version: 198144 compat.linux.osrelease: 2.4.2 compat.linux.osname: Linux Last lines of truss on games/rt2-demo: linux_open("/dev/dsp",0x1,00) =3D 10 (0xa) linux_ioctl(0xa,0xc004500a,0xbfbfc434,0x400,0x10,0x6) =3D 0 (0x0) linux_ioctl(0xa,0xc0045005,0xbfbfc430,0xbfbfc430,0x10,0x6) =3D 0 (0x0) linux_ioctl(0xa,0xc0045003,0xbfbfc444,0xbfbfc430,0x0,0x6) =3D 0 (0x0) linux_ioctl(0xa,0xc0045002,0xbfbfc430,0xbfbfc430,0x0,0x6) =3D 0 (0x0) linux_getpid(0x82c9580,0x0,0x0,0xbfbfc46c,0x10,0x6) =3D 50040 (0xc378) linux_rt_sigprocmask(0x2,0x0,0xbfbfc7dc,0x8,0x2,0x6) =3D 0 (0x0) write(7,"`\v,\b\0\0\0\0\M^D\M-H\M-?\M-?`!"...,148) =3D 148 (0x94) linux_rt_sigprocmask(0x2,0x0,0xbfbfc748,0x8,0x2,0x6) -- Waiting --=20 Last lines of truss on games/HeroesOfMightAndMagic: linux_open("/usr/local/games/Heroes3/data/video/3dologo.mpg",0x0,0666) =3D = 11 (0xb) linux_newfstat(11,0xbfbfc604) =3D 0 (0x0) linux_mmap(0xbfbfc63c,0xbfbfc604,0x0,0xbfbfc67c,0x84ec7b0,0x6) =3D 68039475= 2 (0x288e0000) linux_brk(0x85a6000,0x2980,0x859d000,0x9000,0x859a680,0x6) =3D 140140544 (0= x85a6000) linux_brk(0x85ba000,0x2d68,0x85a6000,0x14000,0x85a3298,0x6) =3D 140222464 (= 0x85ba000) linux_brk(0x85cd000,0x34e0,0x85ba000,0x13000,0x85b6b20,0x6) =3D 140300288 (= 0x85cd000) linux_brk(0x85e0000,0x38d8,0x85cd000,0x13000,0x85c9728,0x6) =3D 140378112 (= 0x85e0000) linux_brk(0x85e5000,0x3cd0,0x85e0000,0x5000,0x85dc330,0x6) =3D 140398592 (0= x85e5000) linux_brk(0x85ea000,0x41c8,0x85e5000,0x5000,0x85e0e38,0x6) =3D 140419072 (0= x85ea000) linux_brk(0x85fd000,0x46c0,0x85ea000,0x13000,0x85e5940,0x6) =3D 140496896 (= 0x85fd000) linux_brk(0x8602000,0x4ab8,0x85fd000,0x5000,0x85f8548,0x6) =3D 140517376 (0= x8602000) linux_rt_sigprocmask(0x2,0x0,0xbfbfcb64,0x8,0x2,0x6) =3D 0 (0x0) write(6,"@r9\b\0\0\0\0\f\M-L\M-?\M-?\^Pd$"...,148) =3D 148 (0x94) linux_rt_sigprocmask(0x2,0x0,0xbfbfcad0,0x8,0x2,0x6) =3D 0 (0x0) -- Waiting --=20 Changing the sysctl hw.snd.compat_linux_mmap to 0 or 1 does not show any difference for both programs. Any help to sort that issue out is appreciated and please CC me as I am not subscribed to the list. Regards Marcus --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHR+s8o/JpszXavhwRAgcrAJ9er7erf8OQ7JK1TOof6sQpcnaRJwCfXHfJ R2A1GrMZwqgvDHYW4R2lSZs= =DORk -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--