pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: otisg <otisg@iVillage.com>
To: pgsql-admin@postgresql.org
Subject: Re: Dying PostgreSQL backend
Date: Tue, 7 May 2002 17:03:55 -0700
Message-ID: <038a01c1f623$d83191a0$6ec8010a@mail2world.com> (raw)

Hello,

> What I'd recommend doing is gdb'ing the core dump file to get a stack
> trace; that would give us some clue what's wrong. And you could do
> "p debug_query_string" to see what query made it crash.
> 
> If you do not find a core file in the database subdirectory
> ($PGDATA/base/yourdbnumber/core) then you are probably running the
> postmaster with "ulimit -c 0" which disables core dumps. Restart
> it with environment "ulimit -c unlimited".

Yes, I fixed that.

Unfortunately I can't gdb to look into the core file:
(gdb) p debug_query_string
No symbol table is loaded. Use the "file" command.
(gdb) file /tmp/core4
"/tmp/core4": not in executable format: File format not recognized
(gdb)

Any ideas?

I did, however, see this in the syslogd log at the time of core dump:

/usr/bin/postmaster child[4014]: starting with (postgres -d16 -v131072
-p mydb )
invoking IpcMemoryCreate(size=2015232)

The first line I had seen before (every few seconds, since my
application makes 5-7 updates per second), but never the second one.
This was the first time.
Maybe it means something to those familiar with the guts of PostgreSQL.

Thanks,
Otis
_______________________________________________________________
Sign up for FREE iVillage newsletters <http://s.ivillage.com/rd/16705; .
From health and pregnancy to shopping and relationships, iVillage
has the scoop on what matters most to you. 

view thread (5+ messages)

Message-ID: <038a01c1f623$d83191a0$6ec8010a@mail2world.com>
Permalink:  ../038a01c1f623$d83191a0$6ec8010a@mail2world.com/
Also on:    postgresql.org/message-id/038a01c1f623$d83191a0$6ec8010a@mail2world.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: otisg@iVillage.com
  Subject: Re: Dying PostgreSQL backend
  In-Reply-To: <038a01c1f623$d83191a0$6ec8010a@mail2world.com>
  References: <038a01c1f623$d83191a0$6ec8010a@mail2world.com>

* 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