pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera Munoz <alvherre@dcc.uchile.cl>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Current CVS tip segfaulting
Date: Fri, 30 Apr 2004 23:36:36 -0400
Message-ID: <10019.1083382596@sss.pgh.pa.us> (raw)
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>

Alvaro Herrera Munoz <alvherre@dcc.uchile.cl> 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



view thread (19+ messages)  latest in thread

Message-ID: <10019.1083382596@sss.pgh.pa.us>
Permalink:  ../10019.1083382596@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10019.1083382596@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@dcc.uchile.cl, pgman@candle.pha.pa.us
  Subject: Re: Current CVS tip segfaulting
  In-Reply-To: <10019.1083382596@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox