TRAP during backend startup

From: Grant Finnemore <grantf(at)guruhut(dot)co(dot)za>
To: pgsql-hackers(at)postgresql(dot)org
Subject: TRAP during backend startup
Date: 2004-04-07 11:06:27
Message-ID: 4073E0B3.3020807@guruhut.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

After an installation from CVS tip, I start the postmaster with the
-d(anything) flag. The postmaster starts up normally. I then try to
connect using psql, and either a TRAP is triggered (not using -A 0)
or an invalid cache id is found (using -A 0)

When I start the postmaster without the -d flag, I have no problems
in connecting from psql.

Any ideas?

Regards,
Grant

Necessary info:
. Sources are CVS tip, pulled today
. uname -a
Linux localhost.localdomain 2.4.20-19.9 #1 Tue Jul 15 17:18:13 EDT 2003 i686
i686 i386 GNU/Linux
. gcc --version
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

. make maintainer-clean check install
./configure --with-java --prefix=/home/grant/bin/pgsql/
--with-integer-datetimes --enable-debug --enable-cassert

[grant(at)localhost pgsql-HEAD]$ postmaster -d1
LOG: database system was shut down at 2004-04-07 12:51:06 SAST
LOG: checkpoint record is at 0/9DCE0C
LOG: redo record is at 0/9DCE0C; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 465; next OID: 17208
LOG: database system is ready

Now, from another console do : psql -l

TRAP: BadState("!(((bool) ((CurrentUserId) != 0)))", File: "miscinit.c", Line: 252)
LOG: server process (PID 16802) was terminated by signal 6
LOG: terminating any other active server processes

[grant(at)localhost pgsql-HEAD]$ postmaster -A 0 -d1
LOG: database system was shut down at 2004-04-07 12:51:36 SAST
LOG: checkpoint record is at 0/9DCE8C
LOG: redo record is at 0/9DCE8C; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 465; next OID: 17208
LOG: database system is ready
FATAL: invalid cache id: 30

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2004-04-07 11:26:19 Re: Small suggestion on build script
Previous Message Dennis Bjorklund 2004-04-07 11:04:09 locale