agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedSparc and SunOS 4.1.3 -- postmaster problem
2+ messages / 2 participants
[nested] [flat]
* Sparc and SunOS 4.1.3 -- postmaster problem
@ 1994-05-13 18:37 Krys Kochut <kochut@pollux.cs.uga.edu>
1994-05-14 00:13 ` Re: Sparc and SunOS 4.1.3 -- postmaster problem Paul M. Aoki <aoki@postgres.Berkeley.EDU>
0 siblings, 1 reply; 2+ messages in thread
From: Krys Kochut @ 1994-05-13 18:37 UTC (permalink / raw)
To: legacy
Hi,
I am trying to install 4.2 beta on a Sparc running SunOS 4.1.3.
The whole installation ('bmake all install') ended with no problems,
so did the subsequent initdb. However, when I am trying to run
the postmaster, I get an almost immediate core dump. As far as
I can tell, I followed the installation instructions faithfully.
Is my problem with the postmaster an already known problem? If so,
what can I do to correct it?
Thanks!
Krys Kochut
kochut@cs.uga.edu
CS, Univerity of Georgia
Athens, Ga. 30602
(706) 542-2911
===============================================================================
To add/remove yourself from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
===============================================================================
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Sparc and SunOS 4.1.3 -- postmaster problem
1994-05-13 18:37 Sparc and SunOS 4.1.3 -- postmaster problem Krys Kochut <kochut@pollux.cs.uga.edu>
@ 1994-05-14 00:13 ` Paul M. Aoki <aoki@postgres.Berkeley.EDU>
0 siblings, 0 replies; 2+ messages in thread
From: Paul M. Aoki @ 1994-05-14 00:13 UTC (permalink / raw)
To: Krys Kochut <kochut@pollux.cs.uga.edu>; +Cc: legacy
kochut@pollux.cs.uga.edu (Krys Kochut) writes:
> I am trying to install 4.2 beta on a Sparc running SunOS 4.1.3.
> The whole installation ('bmake all install') ended with no problems,
> so did the subsequent initdb. However, when I am trying to run
> the postmaster, I get an almost immediate core dump.
try making the following change to src/backend/postmaster.c. a guy
at xerox parc looked at this; the version of getcwd(3) in his library
interacts in awful ways with the installation of signal handlers in
postmaster. i've never seen the problem (we have the stockiest of
stock 4.1.3 and 4.1.3_U1 installations -- like, not even mandatory
patches, i think) but he stepped through it with the debugger on his
machine and that's what he found. i *think* this will work.
if it doesn't i'll have to change calls to getcwd(3) (the posix routine)
to getwd(3) (the bsd-specific routine) just for sunos4. man, i *hate*
doing stuff like that.
*** 1.77 1994/02/09 00:12:24
--- postmaster.c 1994/05/07 00:13:34
***************
*** 1,5 ****
/*
! * $Header: /usr/local/devel/postgres/src/backend/postmaster/RCS/postmaster.c,v 1.77 1994/02/09 00:12:24 aoki Exp $
*
* POSTMASTER
*
--- 1,5 ----
/*
! * $Header: /usr/local/devel/postgres/src/backend/postmaster/RCS/postmaster.c,v 1.78 1994/05/07 00:09:19 aoki Exp $
*
* POSTMASTER
*
***************
*** 168,181 ****
progname = argv[0];
- signal(SIGCHLD, reaper);
- signal(SIGTTIN, SIG_IGN);
- signal(SIGTTOU, SIG_IGN);
- signal(SIGHUP, pmdie);
- signal(SIGINT, pmdie);
- signal(SIGTERM, pmdie);
- signal(SIGCONT, dumpstatus);
-
/* for security, no dir or file created can be group or other accessible */
(void) umask((mode_t) 0077);
--- 168,173 ----
***************
*** 303,308 ****
--- 295,308 ----
if (silentflag)
pmdaemonize();
+ signal(SIGCHLD, reaper);
+ signal(SIGTTIN, SIG_IGN);
+ signal(SIGTTOU, SIG_IGN);
+ signal(SIGHUP, pmdie);
+ signal(SIGINT, pmdie);
+ signal(SIGTERM, pmdie);
+ signal(SIGCONT, dumpstatus);
+
status = ServerLoop(ServerSock);
ExitPostmaster(status != STATUS_OK);
--
Paul M. Aoki | CS Div., Dept. of EECS, UCB | aoki@postgres.Berkeley.EDU
| Berkeley, CA 94720 | ...!uunet!ucbvax!aoki
===============================================================================
To add/remove yourself from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
===============================================================================
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1994-05-14 00:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1994-05-13 18:37 Sparc and SunOS 4.1.3 -- postmaster problem Krys Kochut <kochut@pollux.cs.uga.edu>
1994-05-14 00:13 ` Paul M. Aoki <aoki@postgres.Berkeley.EDU>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox