Date: Sat, 24 Nov 2007 10:13:32 +0100 From: Marcus von Appen <mva@sysfault.org> To: freebsd-emulation@freebsd.org Subject: Linuxulator on RELENG_7 causes games to hang Message-ID: <20071124091332.GA980@medusa.sysfault.org>
next in thread | raw e-mail | index | archive | help
--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 <defunct> 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: <Intel ICH5 (82801EB)> at io 0xfebffa00, 0xfebff900 irq 17 bufsz 1638= 4 kld snd_ich [MPSAFE] (1p:1v/1r:1v channels duplex default) # dmesg |fgrep pcm pcm0: <Intel ICH5 (82801EB)> 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: <Analog Devices AD1980 AC97 Codec> # 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071124091332.GA980>