Re: FW: FW: Latest cygwin always crashing with Postgres - Mailing list pgsql-cygwin

From Jason Tishler
Subject Re: FW: FW: Latest cygwin always crashing with Postgres
Date
Msg-id 20030210162624.GJ2408@tishler.net
Whole thread Raw
In response to FW: FW: Latest cygwin always crashing with Postgres  (Seth Rubin <srubin@thoughtprocess.com>)
List pgsql-cygwin
Seth,

On Mon, Feb 10, 2003 at 10:03:03AM -0500, Seth Rubin wrote:
> When I run from gdb, FATAL error occurs when "run", when I run from
> command line, the same error occurs, but not until I access with psql
> or other...

Hmm...

Also, where did the SEGVs go?

> This entry in /etc/passwd file was already there:
>
> Owner:unused_by_nt/2000/xp:1003:513:U-YOUR-W92P4BHLZG\Owner,S-1-5-21-6707922
                                        ^^^^^^^^^^^^^^^
                                        ***************

> 05-1163395192-3403473811-1003:/home/Owner:/bin/bash

Looks OK, except that I expected to see "Thought1" above.

I'm sorry, but I think that you are having a problem due to XP Home or
some other misconfiguration.  You will have to debug further yourself.

I would start in src/backend/utils/init/postinit.c:

    /*
     * Find oid and path of the database we're about to open. Since
     * we're not yet up and running we have to use the hackish
     * GetRawDatabaseInfo.
     */
**> GetRawDatabaseInfo(dbname, &MyDatabaseId, datpath);

    if (!OidIsValid(MyDatabaseId))
        elog(FATAL,
             "Database \"%s\" does not exist in the system catalog.",
             dbname);

and figure out why GetRawDatabaseInfo() fails and/or returns a bogus
MyDatabaseId value.

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

pgsql-cygwin by date:

Previous
From: Jason Tishler
Date:
Subject: Re: I couldn't compile postgresql 7.3.1 under cygwin 1.3.18-1
Next
From: Seth Rubin
Date:
Subject: FW: FW: FW: Latest cygwin always crashing with Postgres