Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B42E0B5DC20 for ; Tue, 6 Sep 2011 07:32:39 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 49796-03 for ; Tue, 6 Sep 2011 10:32:33 +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 0B901B5DC1D for ; Tue, 6 Sep 2011 07:32:32 -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 1R0sx5-0001ig-2G; Tue, 06 Sep 2011 12:32:23 +0200 Date: Tue, 6 Sep 2011 12:32:22 +0200 From: hubert depesz lubaczewski To: Tom Lane Cc: Bruce Momjian , PostgreSQL-development Subject: Re: [GENERAL] pg_upgrade problem Message-ID: <20110906103222.GA20760@depesz.com> Reply-To: depesz@depesz.com References: <201109052104.p85L4Wx11935@momjian.us> <15262.1315257960@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <15262.1315257960@sss.pgh.pa.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/246 X-Sequence-Number: 194435 On Mon, Sep 05, 2011 at 05:26:00PM -0400, Tom Lane wrote: > Bruce Momjian writes: > > Odd it is dying in the memory freeing at executor close --- not in the > > ltree code. > > Doesn't seem odd. The glibc complaint previously shown already > indicates this is a memory stomp problem. > > --enable-cassert might (or might not) provide additional help. recompiled with cassert. result: =# select * from categories where category_id = 177; The connection to the server was lost. Attempting reset: Succeeded. which is interesting, as the error is different. logs show: 2011-09-06 10:28:58 UTC () [21986]: [1-1] user=[unknown],db=[unknown] LOG: connection received: host=[local] 2011-09-06 10:28:58 UTC ([local]) [21986]: [2-1] user=postgres,db=xxxxxxx LOG: connection authorized: user=postgres database=xxxxxxx 2011-09-06 10:28:58 UTC () [21977]: [2-1] user=,db= LOG: server process (PID 21985) was terminated by signal 11: Segmentation fault 2011-09-06 10:28:58 UTC () [21977]: [3-1] user=,db= LOG: terminating any other active server processes 2011-09-06 10:28:58 UTC ([local]) [21986]: [3-1] user=postgres,db=xxxxxxx WARNING: terminating connection because of crash of another server process 2011-09-06 10:28:58 UTC ([local]) [21986]: [4-1] user=postgres,db=xxxxxxx DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. 2011-09-06 10:28:58 UTC ([local]) [21986]: [5-1] user=postgres,db=xxxxxxx HINT: In a moment you should be able to reconnect to the database and repeat your command. gdb backtrace is even less helpful: $ gdb -q -c core* /opt/pgsql-9.0.5a-int/bin/postgres warning: Can't read pathname for load map: Input/output error. Reading symbols from /usr/lib/libxml2.so.2...done. Loaded symbols for /usr/lib/libxml2.so.2 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libm.so.6...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /lib/ld-linux-x86-64.so.2...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Core was generated by `postgres: postgres xxxxxxx [local] SELECT '. Program terminated with signal 11, Segmentation fault. [New process 21985] #0 0x00007fe18c235e4b in memcpy () from /lib/libc.so.6 (gdb) bt #0 0x00007fe18c235e4b in memcpy () from /lib/libc.so.6 #1 0x00007fe1897532e4 in ?? () #2 0x0000000000000000 in ?? () (gdb) Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/