Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id A7B8E4758E1 for ; Tue, 7 May 2002 20:06:34 -0400 (EDT) Received: from ivsmtp02la.mail2world.com (ivsmtp02la.mail2world.com [66.28.189.73]) by postgresql.org (Postfix) with ESMTP id DD9AF475A51 for ; Tue, 7 May 2002 20:06:00 -0400 (EDT) Received: from ivweb06la (unverified [10.1.200.110]) by ivsmtp02la.mail2world.com (Rockliffe SMTPRA 4.5.6) with ESMTP id for ; Tue, 7 May 2002 17:03:55 -0700 thread-index: AcH2I9gxKsT0A2YsQ126Uq0m1O3UCA== Thread-Topic: [ADMIN] Dying PostgreSQL backend From: "otisg" To: Cc: Subject: Re: Dying PostgreSQL backend Date: Tue, 7 May 2002 17:03:55 -0700 Message-ID: <038a01c1f623$d83191a0$6ec8010a@mail2world.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_038B_01C1F5E9.2BD2B9A0" X-Mailer: Microsoft CDO for Exchange 2000 Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200205/60 X-Sequence-Number: 4235 This is a multi-part message in MIME format. ------=_NextPart_000_038B_01C1F5E9.2BD2B9A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 . From health and pregnancy to shopping and relationships, iVillage has the scoop on what matters most to you. ------=_NextPart_000_038B_01C1F5E9.2BD2B9A0 Content-Type: text/html Content-Transfer-Encoding: 7bit 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.
From health and pregnancy to shopping and relationships, iVillage
has the scoop on what matters most to you.
------=_NextPart_000_038B_01C1F5E9.2BD2B9A0--