X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4564BD1E742 for ; Sat, 1 May 2004 00:37:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 53845-04 for ; Sat, 1 May 2004 00:36:41 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 8545BD1E738 for ; Sat, 1 May 2004 00:36:40 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i413aaqf010020; Fri, 30 Apr 2004 23:36:36 -0400 (EDT) To: Alvaro Herrera Munoz Cc: Bruce Momjian , Hackers Subject: Re: Current CVS tip segfaulting In-reply-to: <20040424023021.GA30353@dcc.uchile.cl> References: <20040423211034.GA15956@dcc.uchile.cl> <200404232300.i3NN05k14802@candle.pha.pa.us> <20040424003828.GB5259@dcc.uchile.cl> <20040424023021.GA30353@dcc.uchile.cl> Comments: In-reply-to Alvaro Herrera Munoz message dated "Fri, 23 Apr 2004 22:30:21 -0400" Date: Fri, 30 Apr 2004 23:36:36 -0400 Message-ID: <10019.1083382596@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/2 X-Sequence-Number: 53080 Alvaro Herrera Munoz writes: > strace'ing the postmaster suggested me that the dbname string in > utils/init/postinit.c, the InitPostgres function, is the culprit. > In fact, if I apply the following patch to tcop/postgres.c the > whole thing stops happening. > else if (argc - optind == 1) > ! dbname = argv[optind]; > ... > else if (argc - optind == 1) > ! dbname = pstrdup(argv[optind]); Surely this is a red herring --- that code path does not even execute except in the case of a standalone backend. regards, tom lane