Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fT6qT-0006GH-BD for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Jun 2018 14:33:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fT6qR-0006Jm-Q8 for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Jun 2018 14:33:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fT6qR-0006Jc-Jd for pgsql-bugs@lists.postgresql.org; Wed, 13 Jun 2018 14:33:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fT6qK-0008V8-MQ for pgsql-bugs@postgresql.org; Wed, 13 Jun 2018 14:33:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w5DEXcs2028334; Wed, 13 Jun 2018 10:33:38 -0400 From: Tom Lane To: "K S, Sandhya (Nokia - IN/Bangalore)" cc: Michael Paquier , Sergei Kornilov , "'pgsql-bugs@postgresql.org'" Subject: Re: psql crashes found when executing slash commands In-reply-to: References: <2802591528270961@web59j.yandex.ru> <20180606075911.GL1442@paquier.xyz> <7090.1528296489@sss.pgh.pa.us> Comments: In-reply-to "K S, Sandhya (Nokia - IN/Bangalore)" message dated "Wed, 13 Jun 2018 09:22:41 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28332.1528900418.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 13 Jun 2018 10:33:38 -0400 Message-ID: <28333.1528900418@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "K S, Sandhya (Nokia - IN/Bangalore)" writes: > The issue was with the version of flex(not sure any issue with flex 2.5.= 37 version). = > We were able to compile with flex version 2.6.4 and it is working withou= t any psql crashes. Interesting. There are many buildfarm members reporting that they use 2.5.37, and we've not seen any issues there. Maybe there's a platform-specific bug in it? Or those members are really running vendor-patched versions rather than straight 2.5.37? (Hard to believe they'd all have the same patch though.) I also remain suspicious that you were running only one of psqlscan.l and psqlscanslash.l through your local flex, and using the tarball-provided output file for the other. We currently use flex 2.6.1 when creating tarballs. It's not real hard to believe that there was an ABI break between 2.5.x and 2.6.x ... Dunno that it's worth any extra trouble to track it down, though. regards, tom lane