Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TJLyT-0002Ku-Rg for pgsql-bugs@postgresql.org; Wed, 03 Oct 2012 10:14:41 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TJLyQ-0003cn-49 for pgsql-bugs@postgresql.org; Wed, 03 Oct 2012 10:14:41 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TJLyO-0008VK-M9 for pgsql-bugs@postgresql.org; Wed, 03 Oct 2012 10:14:37 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TJLyO-0001h7-B7 for pgsql-bugs@postgresql.org; Wed, 03 Oct 2012 10:14:36 +0000 Date: Wed, 03 Oct 2012 10:14:36 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7579: repeatable Segmentation fault on some query (even in Explain) To: pgsql-bugs@postgresql.org From: maxim.boguk@gmail.com X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201210/18 X-Sequence-Number: 34318 The following bug has been logged on the website: Bug reference: 7579 Logged by: Maxim Boguk Email address: maxim.boguk@gmail.com PostgreSQL version: 9.2.1 Operating system: Linux Description: = Hi, After testing migration to 9.2.1, Segmentation fault query were found. It produce error: 2012-10-02 23:05:05 MSK LOG: server process (PID 28234) was terminated by signal 11: Segmentation fault It crash even with explain of the query. I can not create self-contained test case yet... but I working on it... Query: select = OIR.OrderItemReserveID = from OrderItemReserves as OIR = inner join OrderItems as OI on (OI.OrderItemID =3D OIR.OrderItemID) = left outer join ( = select = distinct CSI.SaleArticleID = from CatalogueSectionItems as CSI = inner join CatalogueSections as CS on (CS.CatalogueSectionID =3D CSI.CatalogueSectionID) = where = CS.CatalogueID =3D 20083 = ) as CSI on (CSI.SaleArticleID =3D OI.SaleArticleID) = where = OIR.ObjectStatusID =3D 1 = and OIR.Amount >0 = and ( OIR.StoreGroupID =3D 5 = or (OIR.StoreGroupID =3D 6 and CSI.SaleArticleID is not null) ) Without distinct on left join subquery - no problem. Without 'CSI.SaleArticleID is not null' part no problem too.