freebsd with flexible iflib nic queues
Go to file
Matthew Dillon b603db3019 In tracking down an installation seg fault with then openoffice port
Martin Blapp determined that the elf dynamic loader was at fault.  In
particular, the loader uses alloca() to allocate a symbol cache on the
stack.  Normally this would work just fine, but if the loader is called
from a threaded program and the object being loaded is fairly large the
alloca() can blow away the thread stack and effect other nearby thread
stacks as well.  My testing showed that the symbol cache can be as large
as 250KBytes during the openoffice port build and install sequence.  Martin
was able to work around the problem by disabling the symbol cache
(cache = NULL;).  However, this solution is not adequate for commit because
it can cause an enormous cpu burden for applications which do a lot of
dynamic loading (e.g. like konqueror).

The solution is to use anonymous mmap() to temporarily allocate space to
hold the symbol cache.  In testing I found that replacing the alloca()
with mmap() has no observable degredation in performance.

It should be noted that this bug does not necessarily cause an immediate
crash but can instead result in long term corruption and instability in
applications that load modules from threads.  The bug is almost certainly
responsible for some of the instabilities found in konqueror, for example,
and possibly netscape too.

Sleuthing work by: Martin Blapp <mb@imp.ch>
X-MFC after:	Before or after the 4.6 release depending on the release engineers
2002-06-10 18:52:31 +00:00
bin Sort sections, use Ex macro in Diagnostics section, point out that the first 2002-06-10 09:33:15 +00:00
contrib cvs -j -j gave me two copies of TARGET_VERSION and I didn't notice 2002-06-10 15:48:23 +00:00
crypto Don't risk catching a signal while handling a signal for a dying child, as we 2002-05-27 08:10:24 +00:00
etc Change our default XF86Config location from /etc/ to /etc/X11/, 2002-06-10 04:47:26 +00:00
games Use POSIX macros for wait(2)-style status information instead of the 2002-06-03 23:13:11 +00:00
gnu Allow one to profile FORTRAN77 programs. 2002-06-09 00:03:56 +00:00
include o Remove include of <sys/types.h>, it adds too much pollution; 2002-06-09 19:39:18 +00:00
kerberos5 Make this -j safe. 2002-05-14 15:27:13 +00:00
kerberosIV This code is no longer WARNS level 2 OK. 2002-05-15 06:32:29 +00:00
lib Return HOSTNAME_INVALIDADDR when reverse lookup is fail. 2002-06-07 17:25:19 +00:00
libexec In tracking down an installation seg fault with then openoffice port 2002-06-10 18:52:31 +00:00
release Check the run dependencies, not the build dependencies 2002-06-10 00:46:29 +00:00
sbin ANSIfy a few prototypes, thus fixing a few warnings. 2002-06-09 02:20:58 +00:00
secure for OpenSSL 0.9.5a 2002-05-15 09:17:27 +00:00
share Fix up the wording thoughout, and document locking. 2002-06-10 17:36:05 +00:00
sys Put geom_gpt.c under the GEOM option instead of having a special GEOM_GPT 2002-06-10 18:49:41 +00:00
tools Catch up with kernel. 2002-06-09 10:59:04 +00:00
usr.bin Remove -j from synopsis. The form given in the synopsis was incorrect, 2002-06-10 10:39:33 +00:00
usr.sbin Go back to taking the user's umask into account. Thanks to Alfred for 2002-06-10 07:16:42 +00:00
COPYRIGHT
MAINTAINERS indent tdfx line similarly to rest of the file 2002-05-30 16:50:27 +00:00
Makefile Reimplement FILES support using bsd.files.mk with the 2002-06-03 14:49:34 +00:00
Makefile.inc1 libfetch now depends on libcrypto and libssl. 2002-06-06 13:45:46 +00:00
Makefile.upgrade Removed "env" commands. "sh" is a real shell, so 2002-03-19 05:58:36 +00:00
README Spell "FreeBSD" correctly. 2002-03-26 12:35:49 +00:00
UPDATING Slightly modify the UPDATING text to indicate that -gstabs+ is a gcc 2002-06-05 20:21:40 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The
``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.FreeBSD.org/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

kerberosIV	KerberosIV (eBones) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.FreeBSD.org/handbook/synching.html