Return-Path: owner-postman Delivery-Date: Fri, 13 May 94 19:29:27 -0700 Return-Path: owner-postman Received: from localhost (localhost [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id RAA25227 for postgres-redist; Fri, 13 May 1994 17:13:23 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199405140013.RAA25227@nobozo.CS.Berkeley.EDU> Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from faerie.CS.Berkeley.EDU (faerie.CS.Berkeley.EDU [128.32.149.14]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with ESMTP id RAA25217 for ; Fri, 13 May 1994 17:13:22 -0700 Received: from localhost (localhost [127.0.0.1]) by faerie.CS.Berkeley.EDU (8.6.4/8.1B) with SMTP id RAA15717; Fri, 13 May 1994 17:13:11 -0700 Message-Id: <199405140013.RAA15717@faerie.CS.Berkeley.EDU> X-Authentication-Warning: faerie.CS.Berkeley.EDU: Host localhost didn't use HELO protocol From: aoki@postgres.Berkeley.EDU (Paul M. Aoki) To: kochut@pollux.cs.uga.edu (Krys Kochut) Cc: postgres@postgres.Berkeley.EDU Subject: Re: Sparc and SunOS 4.1.3 -- postmaster problem Reply-To: aoki@postgres.Berkeley.EDU (Paul M. Aoki) In-reply-to: Your message of Fri, 13 May 94 18:37:30 EDT <9405132237.AA03757@ajax> Date: Fri, 13 May 94 17:13:11 -0700 X-Sender: aoki@postgres.Berkeley.EDU Resent-To: postgres-redist@postgres.Berkeley.EDU X-Mts: smtp Resent-Date: Fri, 13 May 94 17:13:22 -0700 Resent-XMts: smtp 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. ===============================================================================