Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hCurf-0007Hk-B4 for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Apr 2019 23:36:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hCurd-0007FV-Se for pgsql-hackers@arkaria.postgresql.org; Sat, 06 Apr 2019 23:36:45 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hCurd-0007FO-Jz for pgsql-hackers@lists.postgresql.org; Sat, 06 Apr 2019 23:36:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hCura-0008H7-LD for pgsql-hackers@lists.postgresql.org; Sat, 06 Apr 2019 23:36:45 +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 x36NaWVY019612; Sat, 6 Apr 2019 19:36:32 -0400 From: Tom Lane To: Alexander Korotkov cc: Andrew Dunstan , Andres Freund , PostgreSQL Hackers , John Naylor , Jeff Janes , Nikita Glukhov , Tomas Vondra , Oleg Bartunov , Michael Paquier , Stas Kelvich , PostgreSQL-development , Thomas Munro , David Steele , Robert Haas , Pavel Stehule Subject: Re: jsonpath In-reply-to: References: <20190324164458.srta7sz5ffizkqv5@alap3.anarazel.de> <6060.1553610709@sss.pgh.pa.us> <16120.1553694533@sss.pgh.pa.us> <565a6051-b9df-3e94-b858-abce0f8b6436@2ndQuadrant.com> <23e82578-b648-ab57-a4af-791abccff344@2ndQuadrant.com> <4971.1553779874@sss.pgh.pa.us> <5656.1553781027@sss.pgh.pa.us> Comments: In-reply-to Alexander Korotkov message dated "Sun, 07 Apr 2019 01:10:06 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19610.1554593792.1@sss.pgh.pa.us> Date: Sat, 06 Apr 2019 19:36:32 -0400 Message-ID: <19611.1554593792@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alexander Korotkov writes: > Thus, contents of unused function makes test fail or pass. So far, it > looks like a compiler bug. Any thoughts? Yeah :-(. The fact that we've not seen a similar failure on any other machines points in that direction, too. Maybe it's some other aspect of the machine's toolchain, like flex or bison, but that's not that much different from our standpoint. There's a lot of stuff I don't especially like about jsonpath_scan, for instance I think the "init" arguments to resizeString etc are a pretty error-prone and unmaintainable way to do things. But I don't see anything that looks like it'd be a portability hazard that would explain this. I still have a nagging feeling that there's a wild store somewhere in here, but I don't know how to find it based on the limited evidence we've got. regards, tom lane