From owner-svn-src-stable@FreeBSD.ORG Wed Mar 2 13:14:59 2011 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D08A91065672; Wed, 2 Mar 2011 13:14:59 +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 6CED28FC14; Wed, 2 Mar 2011 13:14:59 +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 p22CnMga052424 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Mar 2011 14:49:22 +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 p22CnMbd039545; Wed, 2 Mar 2011 14:49:22 +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 p22CnMdp039544; Wed, 2 Mar 2011 14:49:22 +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: Wed, 2 Mar 2011 14:49:22 +0200 From: Kostik Belousov To: Alexander Leidinger Message-ID: <20110302124922.GZ78089@deviant.kiev.zoral.com.ua> References: <201103020953.p229rD4L090286@svn.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QlWQyIlDgLScNVjS" Content-Disposition: inline In-Reply-To: <201103020953.p229rD4L090286@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_05, 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: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-8@freebsd.org Subject: Re: svn commit: r219173 - in stable/8/sys: compat/linux kern X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2011 13:15:00 -0000 --QlWQyIlDgLScNVjS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 02, 2011 at 09:53:13AM +0000, Alexander Leidinger wrote: > Author: netchild > Date: Wed Mar 2 09:53:13 2011 > New Revision: 219173 > URL: http://svn.freebsd.org/changeset/base/219173 >=20 > Log: > MFC r215664: > By using the 32-bit Linux version of Sun's Java Development Kit 1.6 > on FreeBSD (amd64), invocations of "javac" (or "java") eventually > end with the output of "Killed" and exit code 137. > =20 > This is caused by: > 1. After calling exec() in multithreaded linux program threads are not > destroyed and continue running. They get killed after program being > executed finishes. > =20 > 2. linux_exit_group doesn't return correct exit code when called not > from group leader. Which happens regularly using sun jvm. > =20 > The submitters fix this in a similar way to how NetBSD handles this. > =20 > I took the PRs away from dchagin, who seems to be out of touch of > this since a while (no response from him). > =20 > The patches committed here are from [2], with some little modificatio= ns > from me to the style. > =20 > PR: 141439 [1], 144194 [2] > Submitted by: Stefan Schmidt , gk > Reviewed by: rdivacky (in april 2010) > =20 > MFC r215675: > Do not take the process lock. The assignment to u_short inside the > properly aligned structure is atomic on all supported architectures, = and > the thread that should see side-effect of assignment is the same thre= ad > that does assignment. > =20 > Use a more appropriate conditional to detect the linux ABI. > =20 > Suggested by: kib See r215706, that was a followup to the commit. Without it, stable/8 is broken: /usr/bsd/src/sys/modules/linux/../../compat/linux/linux_emul.c: In function= 'linux_proc_exec': /usr/bsd/src/sys/modules/linux/../../compat/linux/linux_emul.c:265: error: = dereferencing pointer to incomplete type /usr/bsd/src/sys/modules/linux/../../compat/linux/linux_emul.c:265: error: = 'SV_ABI_MASK' undeclared (first use in this function) --QlWQyIlDgLScNVjS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk1uPNIACgkQC3+MBN1Mb4hUAwCgpOVoaKNH+jBLgKTTll2gG5wz VR4AoK2hSX7D6mOpWQL7+G1cwU36i/Jc =Kipt -----END PGP SIGNATURE----- --QlWQyIlDgLScNVjS--