Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tys0L-0003pi-RD for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Jan 2013 22:44:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tys0L-0005lt-By for pgsql-bugs@arkaria.postgresql.org; Fri, 25 Jan 2013 22:44:13 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tys0K-0005ln-Ff for pgsql-bugs@postgresql.org; Fri, 25 Jan 2013 22:44:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tys0H-000860-2k for pgsql-bugs@postgresql.org; Fri, 25 Jan 2013 22:44:12 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r0PMi1hV024398; Fri, 25 Jan 2013 17:44:01 -0500 (EST) From: Tom Lane To: Andres Freund cc: Sandro Santilli , pgsql-bugs@postgresql.org, peter_e@gmx.net Subject: Re: cache lookup failed from empty plpythonu function In-reply-to: <20130125223859.GA8538@awork2.anarazel.de> References: <20130124140336.GJ3157@gnash> <20130124141751.GB21296@awork2.anarazel.de> <19721.1359045633@sss.pgh.pa.us> <20130125132025.GD4289@awork2.anarazel.de> <23521.1359151679@sss.pgh.pa.us> <20130125223859.GA8538@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 25 Jan 2013 23:38:59 +0100" Date: Fri, 25 Jan 2013 17:44:00 -0500 Message-ID: <24397.1359153840@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Andres Freund writes: > On 2013-01-25 17:07:59 -0500, Tom Lane wrote: >> Neither version of gcc I tried complained about this, and I assume yours >> didn't either, which is a bit annoying/scary. I wonder whether the >> "volatile" marker prevents that? > I think the control flow is just to complex for gcc, it probably cannot > trace anything across a setjmp() althout it theoretically should be > possible given the failure is in the branch that is executed > unconditionally. > Given that the real culprit is 'found' I don't think its the volatiles. Yeah, but if it had warned about the volatiles you'd probably not have missed the more significant issue. I think the reason 'found' wasn't complained of is that its address gets passed to another function --- IME that seems to shut off any initialization warning, even if the compiler can see that the function call might not happen. But I'd have thought it'd warn about the volatiles. Anyway, not our problem. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs