Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* top on dUnix 3.2C  --> Segmentation fault (core dumped)
@ 1995-09-28  4:00 Matthias Rabast
  1995-09-29  4:00 ` Charles M Richmond
  1995-09-30  4:00 ` Juergen Schroeder
  0 siblings, 2 replies; 3+ messages in thread
From: Matthias Rabast @ 1995-09-28  4:00 UTC (permalink / raw)


after a new installation of dUnix 3.2C I rebuild top-3.3,
but when I start top I get a core dump.

What's wrong ?


Here's the script I did during ./Configure and make.

Script started on Thu Sep 28 11:28:25 1995

% ./Configure
Configuration for top, version 3

One moment....

Reading configuration from last time...

You will be asked a series of questions.  Each question will have a
default answer enclosed in brackets, such as "[5.0]".  In most cases,
the default answer will work well.  To use that value, merely press
return.


The following machine-dependent modules are available:
386bsd   For a 386BSD system
aux31    a Mac running A/UX version 3.1
bsd386   For a BSD/386 system
bsd43    any generic 4.3BSD system
bsd44    For a 4.4BSD system
bsd44a   For a pre-release 4.4BSD system
decosf1  DEC Alpha AXP running OSF/1, versions 1.2, 1.3, 2.0, 3.0
dgux     for DG AViiON with DG/UX 5.4+
dynix    any Sequent Running Dynix 3.0.x
dynix32  any Sequent Running Dynix 3.2.x
freebsd20 For a FreeBSD-2.0 (4.4BSD) system
hpux7    any hp9000 running hpux version 7 or earlier
hpux8    any hp9000 running hpux version 8 (may work with 9)
hpux9    any hp9000 running hpux version 9
mtxinu   any VAX Running Mt. Xinu MORE/bsd
ncr3000  For NCR 3000 series systems Release 2.00.02 and above -
netbsd08 For a NetBSD system
netbsd10 For a NetBSD-1.0 (4.4BSD) system
osmp41a  any Solbourne running OS/MP 4.1A
sunos4   any Sun running SunOS version 4.x
sunos4mp any multi-processor Sun running SunOS versions 4.1.2 or 4.1.3
sunos5   Any Sun running SunOS 5.x (Solaris 2.x)
sunos54  Any Sun running SunOS 5.4 (Solaris 2.4) and later ?.
svr4     For Intel based System V Release 4
svr42    For Intel based System V Release 4.2 (DESTINY)
ultrix4  any DEC running ULTRIX V4.2 or later
umax     Encore Multimax running any release of UMAX 4.3
utek     Tektronics 43xx running UTek 4.1

What module is appropriate for this machine?  [decosf1]: 
This is the machine-dependent module for DEC OSF/1 
It is known to work on OSF/1 1.2, 1.3, 2.0-T3, and 3.0
WARNING: do not use optimization with the standard "cc" compiler that
.        comes with V3.0.  There is some sort of bug that causes the
.        resulting executable to core dump.  When asked for compiler
.        options, do NOT specify -O.

Is this what you want to use? [yes]: 

First we need to find out a little bit about the executables needed to
compile top.

What is the full path name for the Bourne shell [/bin/sh]: 

Please supply the name of the appropriate command.  It need not be a
full path name, but the named command does need to exist somewhere on
the current path.

AWK Interpreter [/usr/bin/awk]: 
C Compiler [cc]: 

The installer command needs to understand Berkeley-esque arguments:
"-o" for owner, "-g" for group, and "-m" for mode.  A shell script
called "install" is distributed with top and is suitable for use by
top.  You can specify a different program here if you like, or use
the shell script (the default).

Installer [./install]: 

What other options should be used with the cc command (use "none" to
specify no options)?
Compiler options [-O]: 

Now you need to answer some questions concerning the configuration of
top itself.

The space command forces an immediate update.  Sometimes, on loaded
systems, this update will take a significant period of time (because all
the output is buffered).  So, if the short-term load average is above
"LoadMax", then top will put the cursor home immediately after the space
is pressed before the next update is attempted.  This serves as a visual
acknowledgement of the command.  "LoadMax" should always be specified as a
floating point number.

LoadMax [5.0]: 

"Default TOPN" is the default number of processes to show.  This is the
number that will be used when the user does not specify the number of
processes to show.  If you want "all" (or infinity) as the default, use
the value "-1".

Default TOPN [15]: 

"Nominal_TOPN" is used as the default TOPN when Default_TOPN is Infinity
and the output is a dumb terminal.  If we didn't do this, then
installations who use a default TOPN of Infinity will get every process in
the system when running top on a dumb terminal (or redirected to a file).
Note that Nominal_TOPN is a default: it can still be overridden on the
command line, even with the value "infinity".

Nominal TOPN [18]: 

Default Delay is the default number of seconds to wait between screen
updates.

Default Delay [5]: 

It looks like you have a passwd file that can be accessed at random.
Do you want top to take advantage of this? [yes]: 

Compiling prime.c

I found 345 entries in your passwd file.  Top hashes the username to
uid mappings as it goes along and it needs a good guess on the size of
that hash table.  This number should be the next highest prime number
after 690.

I have calculated that to be 691.
Enter the hash table size [677]: 

Uh oh!  I see /proc out there.  Some new Unix variants provide the /proc
file system as a mechanism to get to a process's address space.  This
directory is typically only accessible by root.  However, there are a few
systems (such as DG/UX) on which this directory exists, but isn't used.
I'm going to assume that top needs to run setuid to root, but you should
double check and use mode 2755 (set group id) if top doesn't really need
root access.  If you are running SunOS 5.x then you will need to install
top setuid root (owner root and mode 4711).

Tell me how to set the following when top is installed:
Owner [root]: 
Group owner [users]: 
Mode [4711]: 

Install the executable in this directory [/local/bin]: 

Install the manual page in this directory [/usr/share/man/man8]: 

Install the manual page with this extension [l]: 

Install the manual page as 'man' or 'catman' [man]: 

We are done with the questions.
Saving configuration...
#define	SIGKILL	   9	/* kill (cannot be caught or ignored) */
Building Makefile...
Building top.local.h...
Building top.1...
Doing a "make clean".
rm -f *.o top core core.* sigdesc.h
To create the executable, type "make".
% make
cc -DHAVE_GETOPT -O -c top.c
/usr/bin/awk -f sigconv.awk /usr/include/signal.h >sigdesc.h
cc -DHAVE_GETOPT -O -c commands.c
cc -DHAVE_GETOPT -O -c display.c
cc -DHAVE_GETOPT -O -c screen.c
cc -DHAVE_GETOPT -O -c username.c
cc -DHAVE_GETOPT -O -c utils.c
cc -DHAVE_GETOPT -O -c version.c
cc -DHAVE_GETOPT -O -c getopt.c
cc -DHAVE_GETOPT -O -c machine.c
rm -f top
cc -o top top.o commands.o display.o screen.o username.o  utils.o version.o 
getopt.o machine.o -ltermcap -lm -lmld -lmach


% ls -l /local/bin/top
-rws--x--x   1 root     system    352256 Sep 27 08:08 /local/bin/top
% ^D




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: top on dUnix 3.2C --> Segmentation fault (core dumped)
  1995-09-28  4:00 top on dUnix 3.2C --> Segmentation fault (core dumped) Matthias Rabast
@ 1995-09-29  4:00 ` Charles M Richmond
  1995-09-30  4:00 ` Juergen Schroeder
  1 sibling, 0 replies; 3+ messages in thread
From: Charles M Richmond @ 1995-09-29  4:00 UTC (permalink / raw)


rabast@chbs.mhs.ciba.com (Matthias Rabast) writes:

>after a new installation of dUnix 3.2C I rebuild top-3.3,
>but when I start top I get a core dump.

>What's wrong ?


>WARNING: do not use optimization with the standard "cc" compiler that
>.        comes with V3.0.  There is some sort of bug that causes the
>.        resulting executable to core dump.  When asked for compiler
>.        options, do NOT specify -O.
...
...
>% make
>cc -DHAVE_GETOPT -O -c top.c
>/usr/bin/awk -f sigconv.awk /usr/include/signal.h >sigdesc.h
>cc -DHAVE_GETOPT -O -c commands.c
>cc -DHAVE_GETOPT -O -c display.c
>cc -DHAVE_GETOPT -O -c screen.c
>cc -DHAVE_GETOPT -O -c username.c
>cc -DHAVE_GETOPT -O -c utils.c
>cc -DHAVE_GETOPT -O -c version.c
>cc -DHAVE_GETOPT -O -c getopt.c
>cc -DHAVE_GETOPT -O -c machine.c



Err... maybe...



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: top on dUnix 3.2C  --> Segmentation fault (core dumped)
  1995-09-28  4:00 top on dUnix 3.2C --> Segmentation fault (core dumped) Matthias Rabast
  1995-09-29  4:00 ` Charles M Richmond
@ 1995-09-30  4:00 ` Juergen Schroeder
  1 sibling, 0 replies; 3+ messages in thread
From: Juergen Schroeder @ 1995-09-30  4:00 UTC (permalink / raw)


Cant you read????

Matthias Rabast (rabast@chbs.mhs.ciba.com) wrote:
: What's wrong ?
: Here's the script I did during ./Configure and make.

: What module is appropriate for this machine?  [decosf1]: 
: This is the machine-dependent module for DEC OSF/1 
: It is known to work on OSF/1 1.2, 1.3, 2.0-T3, and 3.0
: WARNING: do not use optimization with the standard "cc" compiler that
: .        comes with V3.0.  There is some sort of bug that causes the
: .        resulting executable to core dump.  When asked for compiler
: .        options, do NOT specify -
...
: What other options should be used with the cc command (use "none" to
: specify no options)?
: Compiler options [-O]: 
...
: % make
: cc -DHAVE_GETOPT -O -c top.c
: /usr/bin/awk -f sigconv.awk /usr/include/signal.h >sigdesc.h
: cc -DHAVE_GETOPT -O -c commands.c
: cc -DHAVE_GETOPT -O -c display.c
: cc -DHAVE_GETOPT -O -c screen.c
: cc -DHAVE_GETOPT -O -c username.c
: cc -DHAVE_GETOPT -O -c utils.c
: cc -DHAVE_GETOPT -O -c version.c
: cc -DHAVE_GETOPT -O -c getopt.c
: cc -DHAVE_GETOPT -O -c machine.c
: rm -f top
: cc -o top top.o commands.o display.o screen.o username.o  utils.o version.o 
: getopt.o machine.o -ltermcap -lm -lmld -lmach


Try to get the -O out of the compiler options, with the Configure or edit
the Makefile before make 

	rgen



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-09-30  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-09-28  4:00 top on dUnix 3.2C --> Segmentation fault (core dumped) Matthias Rabast
1995-09-29  4:00 ` Charles M Richmond
1995-09-30  4:00 ` Juergen Schroeder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox