Jim Warner cd608f462e top: forest view segmentation fault, the final solution
With forest view mode under procps-ng-3.3.0, top would catch
a SEGV and exit.  The problem was thought to be related to
some linux version 3 anamoly.

In procps-ng-3.3.1, top was protected from abnormal exit and
would display the offending processes with the special orphan
notation '?', instead of the usual artwork.

As it turns out, the problem wasn't with linux and could
surface under a 2.6.xx kernel,  The cause was an occasional
abnormal ordering of tid/tgid/ppid which went unresolved
due to a progressive proc table scan in the recursive
function forest_add().

By default the proc table scan now restarts at the beginning.
However, a #define TREE_ONEPASS is provided should one wish
to restore the 3.3.1 behavior with its reduced overhead.
2011-12-11 22:27:56 +11:00
2011-10-26 22:25:21 +11:00
2011-10-15 08:26:28 +02:00
2011-12-03 00:32:14 +11:00
2002-10-10 21:18:13 +00:00
2011-06-04 20:50:12 +02:00
2003-06-08 17:28:06 +00:00
2011-12-03 00:32:14 +11:00
2002-09-27 13:26:07 +00:00
2002-02-01 22:47:29 +00:00
FAQ
2011-10-06 21:46:34 +02:00
2011-06-04 20:50:12 +02:00
2011-06-04 20:50:12 +02:00
2011-11-23 21:44:51 +11:00
2011-06-04 20:50:12 +02:00
2011-11-23 21:31:43 +11:00
2002-02-01 22:47:29 +00:00
2011-06-04 20:50:12 +02:00
2011-10-26 22:25:21 +11:00
2011-06-04 20:50:12 +02:00
2011-10-15 08:26:28 +02:00
2011-06-04 20:50:12 +02:00
2011-06-04 20:50:12 +02:00
2011-06-04 20:50:12 +02:00
2002-02-01 22:47:29 +00:00
2011-02-23 09:17:54 +01:00
2011-06-04 17:22:44 +02:00
2004-08-18 02:22:13 +00:00
2002-02-01 22:47:29 +00:00
2011-02-23 09:17:54 +01:00
2011-10-19 09:32:40 +02:00
2011-06-04 20:50:12 +02:00
2011-06-04 20:50:12 +02:00
2002-10-08 18:51:56 +00:00
2011-02-23 09:17:54 +01:00
w.1
2011-06-04 20:50:12 +02:00
w.c
2011-07-15 08:52:45 +10:00
2011-02-23 09:17:54 +01:00
2011-12-01 23:01:12 +11:00

COMPATIBILITY

    This code is intended for use with Linux 2.2.xx, 2.4.xx,
    2.6.xx, and hopefully all future kernels. You should be
    running a system with libc 6, but libc 5 might work too.

INSTALLATION

    make
    make install

    Only the second ("make install") is needed if you just
    want to build and install procps-ng in the normal way.

    If you wish to test before installing, use the scripts
    named t, v, and p to ensure that the correct libproc
    (the new one) is used during your testing.

    You may set SKIP to avoid building or installing things.
    For example:

    make SKIP='/bin/kill /usr/share/man/man1/kill.1' install

    Use SHARED=0 to build procps-ng without shared libraries.
    This may be useful for installing in your home directory.

    make SHARED=0 DESTDIR=$HOME install

    Suppose you wanted to install stuff in strange places.
    You might do something like this:

    make usr/bin=/tmp/Q/i/ DESTDIR=/tmp/Q install="install -D" ldconfig=echo install

    If cross-compiling, you might need to set lib64 to
    either "lib" or "lib64". You might need to set m64 to
    -m64, -m32, or nothing at all. Some examples:

    make lib64=lib m64=-m32      # for a bi-arch gcc
    make lib64=lib64 CC=x86_64-gcc
    make lib64=lib CC=alpha-gcc

PACKAGING

    If you are a downstream maintainer (packager) for a Linux distribution,
    please avoid causing troubles. This section applies to you.

    Send patches in regularly. Many patches made by vendors have been buggy,
    some quite severely so. Sending in a patch will at least get it reviewed,
    if not included. There is a procps-ng test suite that must be passed.
    Forward all bug reports. If your bug database is public and busy enough
    to bother with, please make this known. Follow Debian's lead in making
    the bug database easy to comment on via email w/o need for an account.

    Do not change the user interface. Many of the programs are intended to be
    compatible with Solaris, FreeBSD, AIX, IRIX, Tru64, and the UNIX standard.
    Your nice new command options WILL BE BROKEN as needed to ensure that
    procps-ng remains compatible with the rest of the world. Sysadmins hate to
    deal with incompatible behavior. If you need a new option, ask for it.

    For normal packages, ensure that you do not add debugging flags
    to the CFLAGS variable. If debugging flags are present, the Makefile
    will avoid adding several optimizations that would interfere with gdb.

    There should be no need to modify the Makefile. You can set variables
    on the "make" command line or use "make -e" to pass variables from
    the environment.

BUG REPORTS

    Email to procps@freelists.org.
Description
Command line and full screen utilities for browsing procfs, a "pseudo" file system dynamically generated by Linux to provide information about the status of entries in its process table.
Readme 15 MiB
Languages
C 97.2%
Makefile 1%
Shell 0.9%
M4 0.9%