Date: Sun, 28 Apr 2013 19:24:30 +0400 From: Chagin Dmitry <dchagin@freebsd.org> To: Yuri <yuri@rawbw.com> Cc: emulation@freebsd.org Subject: Re: Linux linux_fcntl64 with F_GETLK is faulty? Message-ID: <20130428152430.GA44233@dchagin.static.corbina.net> In-Reply-To: <517CE41E.2020007@rawbw.com> References: <517CE41E.2020007@rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 28, 2013 at 01:55:58AM -0700, Yuri wrote: > While running a linux 32-bit program on 9.1 amd64, I see these two lines= =20 > in truss log, and program also eventually fails: > linux_open("/some/file/name",0x40,0644) =3D 5 (0x5) > linux_fcntl64(0x5,0x7,0xffff8410,0xffff8410,0x2a988ff4,0x6) ERR#9 'Bad=20 > file descriptor' >=20 > cmd=3D0x7 is F_GETLK in linux. >=20 > Several questions with this: > 1. Why EBADF error is returned? fd=3D5 appears to be a valid descriptor= =20 > based on the presence of the previous open call. > 2. Is file locking not implemented in linux emulator? Is this related to= =20 > the issue when acrobat reader requires linux_adobe.ko kernel module and= =20 > also consumes 100% CPU all the time due to some workaround? >=20 > Theare are in make.conf of this system, if this matters: > OVERRIDE_LINUX_BASE_PORT=3Df10 > OVERRIDE_LINUX_NONBASE_PORTS=3Df10 >=20 Hi, Yuri. can u point me to the test program? --=20 Have fun! chd --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlF9Py4ACgkQ0t2Tb3OO/O2ACwCgp5mPqIf8WJzxN8PODTdBt5Ub 8/UAmwQHDoIDCP/k56ujabIaUURZCQqX =djEU -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130428152430.GA44233>