Re: Current CVS tip segfaulting - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Current CVS tip segfaulting
Date
Msg-id 10019.1083382596@sss.pgh.pa.us
Whole thread Raw
In response to Re: Current CVS tip segfaulting  (Alvaro Herrera Munoz <alvherre@dcc.uchile.cl>)
Responses Re: Current CVS tip segfaulting  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Timezone library on Unix
Next
From: Vinay Jain
Date:
Subject: Re: Is there any method to keep table in memory at startup