Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 79990B5DCA1 for ; Mon, 5 Sep 2011 17:36:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 66869-02 for ; Mon, 5 Sep 2011 20:35:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from depesz.com (andy.depesz.com [88.198.47.100]) by mail.postgresql.org (Postfix) with ESMTP id 621E8B5DD8D for ; Mon, 5 Sep 2011 17:35:58 -0300 (ADT) Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.76) (envelope-from ) id 1R0ftc-0005Co-7C; Mon, 05 Sep 2011 22:35:56 +0200 Date: Mon, 5 Sep 2011 22:35:56 +0200 From: hubert depesz lubaczewski To: Bruce Momjian Cc: PostgreSQL-development Subject: Re: [GENERAL] pg_upgrade problem Message-ID: <20110905203555.GA12739@depesz.com> Reply-To: depesz@depesz.com References: <20110905184411.GA3444@depesz.com> <201109051851.p85IpCS05627@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <201109051851.p85IpCS05627@momjian.us> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/199 X-Sequence-Number: 194388 On Mon, Sep 05, 2011 at 02:51:12PM -0400, Bruce Momjian wrote: > hubert depesz lubaczewski wrote: > > On Mon, Sep 05, 2011 at 02:18:18PM -0400, Bruce Momjian wrote: > > > hubert depesz lubaczewski wrote: > > > > I'm not sure if it's upgrade thing, or is it because of error in > > > > ltree/compilation, but it looks bad. > > > > > > > > Is there any more info I could show/gather to help debug the issue? > > > > > > I am confused by the error --- is it not loading, or can you get a > > > backtrace of the crash? > > > > The one in logs is not sufficient? > > If not - could you tell me how to make the backtrace? I'm by far not a c > > programmer, so for this I'd need some tutoring. > > I think you want this: > > http://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD > > While strace is useful, it doesn't show us where the C code is failing. ok. got this: (gdb) bt #0 0x00007fdc28605095 in raise () from /lib/libc.so.6 #1 0x00007fdc28606af0 in abort () from /lib/libc.so.6 #2 0x00007fdc2863fa7b in ?? () from /lib/libc.so.6 #3 0x00007fdc2864708a in ?? () from /lib/libc.so.6 #4 0x00007fdc2864ac1c in free () from /lib/libc.so.6 #5 0x00000000006c18c9 in AllocSetDelete (context=) at aset.c:551 #6 0x00000000006c1e54 in MemoryContextDelete (context=0xbdae80) at mcxt.c:196 #7 0x000000000054913e in standard_ExecutorEnd (queryDesc=0xbbb4f0) at execMain.c:360 #8 0x000000000051c88f in PortalCleanup (portal=0xbb7a70) at portalcmds.c:268 #9 0x00000000006c26fc in PortalDrop (portal=0xbb7a70, isTopCommit=0 '\0') at portalmem.c:434 #10 0x00000000005f8c95 in exec_simple_query (query_string=0xb9b980 "select * from categories limit 1;") at postgres.c:1067 #11 0x00000000005f95de in PostgresMain (argc=, argv=, username=) at postgres.c:3936 #12 0x00000000005c94f6 in ServerLoop () at postmaster.c:3555 #13 0x00000000005ca0fe in PostmasterMain (argc=3, argv=0xaf0870) at postmaster.c:1092 #14 0x0000000000574070 in main (argc=3, argv=0xaf0870) at main.c:188 Hope it helps. Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/