svn commit: r219173 - in stable/8/sys: compat/linux kern

Kostik Belousov kostikbel at gmail.com
Wed Mar 2 12:49:27 UTC 2011


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
> 
> 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.
>   
>     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.
>   
>     2. linux_exit_group doesn't return correct exit code when called not
>        from group leader. Which happens regularly using sun jvm.
>   
>     The submitters fix this in a similar way to how NetBSD handles this.
>   
>     I took the PRs away from dchagin, who seems to be out of touch of
>     this since a while (no response from him).
>   
>     The patches committed here are from [2], with some little modifications
>     from me to the style.
>   
>     PR:                141439 [1], 144194 [2]
>     Submitted by:        Stefan Schmidt <stefan.schmidt at stadtbuch.de>, gk
>     Reviewed by:        rdivacky (in april 2010)
>   
>   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 thread
>     that does assignment.
>   
>     Use a more appropriate conditional to detect the linux ABI.
>   
>     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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20110302/578d89e7/attachment.pgp


More information about the svn-src-all mailing list