Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 1C4E31337B5E for ; Fri, 10 Dec 2010 00:05:26 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 87036-06 for ; Fri, 10 Dec 2010 04:05:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from imail.internode.com.au (exchht01-ext.internode.com.au [203.26.95.185]) by mail.postgresql.org (Postfix) with ESMTP id A0F1F1337B53 for ; Fri, 10 Dec 2010 00:05:17 -0400 (AST) Received: from EXCHMAIL.staff.internode.com.au ([169.254.2.207]) by exchht01.staff.internode.com.au ([::1]) with mapi; Fri, 10 Dec 2010 14:35:14 +1030 From: Samuel Stearns To: Tom Lane CC: Shoaib Mir , "pgsql-admin@postgresql.org" Date: Fri, 10 Dec 2010 14:35:12 +1030 Subject: Re: Postgres Crash Thread-Topic: [ADMIN] Postgres Crash Thread-Index: AcuYHN/GRYgx8ETNQa2CzuEecbTN7AAAnZ4g Message-ID: <68B59BEDCD36854AADBDF17E91B2937A07844CD04A@EXCHMAIL.staff.internode.com.au> References: <68B59BEDCD36854AADBDF17E91B2937A07844CD029@EXCHMAIL.staff.internode.com.au> <68B59BEDCD36854AADBDF17E91B2937A07844CD02E@EXCHMAIL.staff.internode.com.au> <13055.1291952802@sss.pgh.pa.us> In-Reply-To: <13055.1291952802@sss.pgh.pa.us> Accept-Language: en-US, en-AU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-AU Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/66 X-Sequence-Number: 36295 Thanks Tom, We don't have gdb. We have mdb and pstack. From the core: [root@udrv] # mdb /opt/postgres/8.3-community/bin/postmaster /root/core=20 Loading modules: [ libc.so.1 ld.so.1 ] > ::status debugging core file of postmaster (32-bit) from udrv file: /opt/postgres/8.3-community/bin/postmaster initial argv: /opt/postgres/8.3-community/bin/postmaster -F threading model: multi-threaded status: process terminated by SIGSEGV (Segmentation Fault) > ::regs %cs =3D 0x003b %eax =3D 0x083b7fe0=20 %ds =3D 0x0043 %ebx =3D 0x00000000=20 %ss =3D 0x0043 %ecx =3D 0x00000000=20 %es =3D 0x0043 %edx =3D 0x00000000=20 %fs =3D 0x0000 %esi =3D 0x00000001=20 %gs =3D 0x01c3 %edi =3D 0x00000005=20 %eip =3D 0x081a8562 ConnCreate+0xb6 %ebp =3D 0x08047c88 %kesp =3D 0x00000000 %eflags =3D 0x00010206 id=3D0 vip=3D0 vif=3D0 ac=3D0 vm=3D0 rf=3D1 nt=3D0 iopl=3D0x0 status=3D %esp =3D 0x08047c78 %trapno =3D 0xe %err =3D 0x6 [root@udrv] # pstack /root/core=20 core '/root/core' of 771: /opt/postgres/8.3-community/bin/postmaster = -F 081a8562 ConnCreate (5) + b6 081a791b ServerLoop (8047e68, 83b7930, 2, fead58be, 8047e68, 83c28b8) + db 081a73f1 PostmasterMain (2, 83b7930) + ab5 08164e3a main (2, 8047e44, 8047e50) + 17a 080891fa _start (2, 8047ed0, 8047efb, 0, 8047efe, 8047f2e) + 7a > Sam -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20 Sent: Friday, 10 December 2010 2:17 PM To: Samuel Stearns Cc: Shoaib Mir; pgsql-admin@postgresql.org Subject: Re: [ADMIN] Postgres Crash=20 Samuel Stearns writes: > Tom, no useful messages in the log prior. I do have a 47M core dump. Wh= at should I do with that? If you use gdb, try $ gdb /path/to/postmaster /path/to/corefile gdb> bt ... useful info here ... gdb> quit I think the preferred debugger on Solaris might not be gdb, but if so you'll need to consult its docs to find out how to get a stack trace. regards, tom lane