Subject: postgres installation problem

From: [email-masked] (rakesh chandra)
Date: Mon, 9 Dec 91 10:45:35 -0800

Hi,
I am having a problem with installing postgres and had sent an earlier
post including the script of my session. I am sending  you the script of 
trying to run postmaster (including the
setenv and the trace of postmaster). I hope you can make something out of it.
I think it is some problem withthe memory.

Script started on Mon Dec  9 12:25:16 1991
% setenv POSTGRESHOME ~postgres
% setenv
TERM=vt102
HOME=/usr/postgres
SHELL=/bin/csh
USER=postgres
PATH=:/usr/ucb:/bin:/usr/bin:/usr/local/bin:/bin/local
LOGNAME=postgres
PWD=/home/postgres
POSTGRESHOME=/usr/postgres
% bin/postmaster&
[1] 7957
% IpcMemoryCreate: memKey=123585138 , size=24585 , permission=448IpcMemoryCreate: shmget(..., create, ...) failed: Invalid argument
IpcMemoryIdGet: memKey=123585138 , size=24585 , permission=0IpcMemoryIdGet:  shmget() failed: Invalid argument
IpcMemoryAttach: shmat() failed: Invalid argument

[1]    Exit 1               bin/postmaster
% trace bin/postmaster
open ("/usr/lib/ld.so", 0, 03222770) = 3
read (3, "".., 32) = 32
mmap (0, 40960, 0x5, 0x80000002, 3, 0) = 0xf77c0000
mmap (0xf77c8000, 8192, 0x7, 0x80000012, 3, 32768) = 0xf77c8000
open ("/dev/zero", 0, 07) = 4
getrlimit (3, 0xf7fffd08) = 0
mmap (0xf7800000, 8192, 0x3, 0x80000012, 4, 0) = 0xf7800000
close (3) = 0
getuid () = 19110
getgid () = 19110
open ("/etc/ld.so.cache", 0, 05000100021) = 3
fstat (3, 0xf7fffba8) = 0 mmap (0, 8192, 0x1, 0x80000001, 3, 0) = 0xf7780000 close (3) = 0 open ("/usr/lib/libc.so.1.6.1", 0, 03201070) = 3 read (3, "".., 32) = 32 mmap (0, 477632, 0x5, 0x80000002, 3, 0) = 0xf76e0000
mmap (0xf7750000, 16384, 0x7, 0x80000012, 3, 458752) = 0xf7750000
mmap (0xf7754000, 2496, 0x7, 0x80000012, 4, 0) = 0xf7754000
close (3) = 0
mprotect (0x2000, 851968, 0x7) = 0
mprotect (0x2000, 851968, 0x5) = 0
close (4) = 0
sigblock (0x80000) = 0
sigvec (20, 0xf7fffd9c, 0xf7fffd90) = 0
sigvec (20, 0xf7fffd24, 0) = 0
sigsetmask (0) = 0x80000
sigblock (0x80000) = 0
sigvec (20, 0xf7fffd9c, 0) = 0
sigvec (20, 0xf7fffd24, 0) = 0
sigsetmask (0) = 0x80000
sigblock (0x100000) = 0
sigvec (21, 0xf7fffd9c, 0xf7fffd90) = 0
sigvec (21, 0xf7fffd24, 0) = 0
sigsetmask (0) = 0x100000
sigblock (0x200000) = 0
sigvec (22, 0xf7fffd9c, 0xf7fffd90) = 0
sigvec (22, 0xf7fffd24, 0) = 0
sigsetmask (0) = 0x200000
sigblock (0x1) = 0
sigvec (1, 0xf7fffd9c, 0xf7fffd90) = 0
sigvec (1, 0xf7fffd24, 0) = 0
sigsetmask (0) = 0x1
sigblock (0x1) = 0
sigvec (1, 0xf7fffd9c, 0) = 0
sigvec (1, 0xf7fffd24, 0) = 0
sigsetmask (0) = 0x1
sigblock (0x2) = 0
sigvec (2, 0xf7fffd9c, 0xf7fffd90) = 0
sigvec (2, 0xf7fffd24, 0) = 0
sigsetmask (0) = 0x2
sigblock (0x4000) = 0
sigvec (15, 0xf7fffd9c, 0xf7fffd90) = 0
sigvec (15, 0xf7fffd24, 0) = 0
sigsetmask (0) = 0x4000
sigblock (0x4000) = 0
sigvec (15, 0xf7fffd9c, 0) = 0
sigvec (15, 0xf7fffd24, 0) = 0
sigsetmask (0) = 0x4000
getpagesize () = 8192
brk (0xf2228) = 0
brk (0xf4228) = 0
stat ("/usr/postgres/bin/postgres", 0xf7fffc40) = 0
socket (2, 1, 0) = 3
bind (3, "".., 16) = 0
listen (3, 5) = 0
shmsys (0xab, 0x3, 0x75dc272, 0x6009) = -1 EINVAL (Invalid argument)
write (2, "IpcMemoryCreate: memKey=12358513".., 63) = IpcMemoryCreate: memKey=123585138 , size=24585 , permission=44863
writev (2, 0xf7fffbf0, 4) = IpcMemoryCreate: shmget(..., create, ...) failed: Invalid argument
67
shmsys (0xab, 0x3, 0x75dc272, 0x6009) = -1 EINVAL (Invalid argument)
write (2, "IpcMemoryIdGet: memKey=123585138".., 60) = IpcMemoryIdGet: memKey=123585138 , size=24585 , permission=060
writev (2, 0xf7fffb88, 4) = IpcMemoryIdGet:  shmget() failed: Invalid argument
51
shmsys (0xab, 0, 0xfffffffe, 0) = -1 EINVAL (Invalid argument)
writev (2, 0xf7fffb88, 4) = IpcMemoryAttach: shmat() failed: Invalid argument
50
gettimeofday (0xf7ffdbf0, 0) = 0
open ("/usr/share/lib/zoneinfo/localtim".., 0, 0) = 4
read (4, "".., 4136) = 100
close (4) = 0
close (0) = 0
close (1) = 0
close (2) = 0
exit (1) = ?
% ^D
script done on Mon Dec  9 12:26:39 1991

Hope you can help.
/rakesh.