X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 1C76F9FA5F3; Thu, 27 Jul 2006 20:01:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 65809-03; Thu, 27 Jul 2006 20:00:44 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from relay01.mdc.ubisoft.com (relay01.mdc.ubisoft.com [216.98.56.134]) by postgresql.org (Postfix) with ESMTP id 6AF0E9FA4AE; Thu, 27 Jul 2006 20:00:38 -0300 (ADT) Received: from UBIMAIL1.ubisoft.org (unknown [10.129.1.15]) by smarthost.mdc.ubisoft.com (Postfix) with ESMTP id AE6F84BB44; Thu, 27 Jul 2006 19:00:28 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: [SQL] PostgreSQL server terminated by signal 11 Date: Thu, 27 Jul 2006 19:00:27 -0400 Message-ID: <1E293D3FF63A3740B10AD5AAD88535D202B64F64@UBIMAIL1.ubisoft.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] PostgreSQL server terminated by signal 11 Thread-Index: AcaxuBUpTgfx8Vl9RmyxphtnwZn56AAD8eaA From: "Daniel Caune" To: "Tom Lane" Cc: , X-Ubisoft-MailScanner-Information: Please contact administrators@ubisoft.qc.ca X-Ubisoft-MailScanner: Found to be clean X-Ubisoft-MailScanner-SpamCheck: X-MailScanner-From: daniel.caune@ubisoft.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200607/246 X-Sequence-Number: 22492 > -----Message d'origine----- > De=A0: Tom Lane [mailto:tgl@sss.pgh.pa.us] > Envoy=E9=A0: jeudi, juillet 27, 2006 16:06 > =C0=A0: Daniel Caune > Cc=A0: pgsql-sql@postgresql.org > Objet=A0: Re: [SQL] PostgreSQL server terminated by signal 11 >=20 > "Daniel Caune" writes: > > My PostgreSQL server running on a Linux machine is terminated by = signal > > 11 whenever I try to create some indexes on a table, which contains > > quite a lot of data. >=20 > Judging from your examples it's got something to do with the partial > index WHERE clause. What PG version is this exactly? If you leave = out > different parts of the WHERE, does it still crash? Does the crash > happen immediately after you give the command, or does it run for > awhile? It might be worth getting a stack trace from the failure > (best way is to attach to the running backend with gdb, provoke the > crash, and do "bt" --- search for "gdb" in the archives if you need > details). >=20 > regards, tom lane Quite a long time I didn't use gdb! :-) Anyway I proceed as described = hereafter; correct me if I was wrong. > ps -eaf | grep postgres postgres 2792 2789 0 21:50 pts/2 00:00:00 su postgres postgres 2793 2792 0 21:50 pts/2 00:00:00 bash postgres 2902 1 7 22:17 ? 00:01:10 postgres: dbo agora = [local] idle = = = =20 postgres 2952 1 2 22:32 ? 00:00:00 = /usr/lib/postgresql/8.1/bin/postmaster -D /var/lib/postgresql/8.1/main = -c unix_socket_directory=3D/var/run/postgresql -c = config_file=3D/etc/postgresql/8.1/main/postgresql.conf -c = hba_file=3D/etc/postgresql/8.1/main/pg_hba.conf -c = ident_file=3D/etc/postgresql/8.1/main/pg_ident.conf postgres 2954 2952 0 22:32 ? 00:00:00 postgres: writer process = = = = =20 postgres 2955 2952 0 22:32 ? 00:00:00 postgres: stats buffer = process = = = =20 postgres 2956 2955 0 22:32 ? 00:00:00 postgres: stats = collector process = = = =20 I connected to the postgres server using psql and I retrieved the = backend pid by executing the statement "SELECT pg_backend_pid();" I started gdb under the UNIX account postgres and I attached the backend = process providing the pid returned by the statement. I run the command responsible for creating the index and I entered = "continue" in gdb for executing the command. After a while, the server = crashes: Program received signal SIGSEGV, Segmentation fault. 0x08079e2a in slot_attisnull () (gdb) Continuing. Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. I can't do "bt" since the program no longer exists. How can I provide = more information, stack trace, and so on? -- Daniel