pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Sandro Santilli <strk@keybit.net>
Cc: pgsql-bugs@postgresql.org
Cc: peter_e@gmx.net
Subject: Re: cache lookup failed from empty plpythonu function
Date: Fri, 25 Jan 2013 17:44:00 -0500
Message-ID: <24397.1359153840@sss.pgh.pa.us> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Andres Freund <andres@2ndquadrant.com> 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



view thread (15+ messages)  latest in thread

Message-ID: <24397.1359153840@sss.pgh.pa.us>
Permalink:  ../24397.1359153840@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24397.1359153840@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@2ndquadrant.com, strk@keybit.net, peter_e@gmx.net
  Subject: Re: cache lookup failed from empty plpythonu function
  In-Reply-To: <24397.1359153840@sss.pgh.pa.us>
  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> <24397.1359153840@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox