pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Joshua Berry <yoberi@gmail.com>
Cc: PostgreSQL - General <pgsql-general@postgresql.org>
Subject: Re: Segmentation fault with core dump
Date: Thu, 11 Apr 2013 01:13:58 +0200
Message-ID: <20130410231358.GC7547@awork2.anarazel.de> (raw)
In-Reply-To: <CAPmZXM3N0V68b1=kRk2pB3Nr-E_Me_urLJ6Cb-XWEkrGwwiFRg@mail.gmail.com>
References: <CAPmZXM03MEDEn6nqqf_Phs3M1DK-EaXP5_K-LmirneOJMAQ-Hg@mail.gmail.com>
	<20130410214929.GA7547@awork2.anarazel.de>
	<CAPmZXM2AV1D1_grC7pwg8WH4L-cTqcDEWOC2VneG2X8OHLxdsw@mail.gmail.com>
	<20130410222233.GB7547@awork2.anarazel.de>
	<CAPmZXM3N0V68b1=kRk2pB3Nr-E_Me_urLJ6Cb-XWEkrGwwiFRg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

On 2013-04-10 17:31:09 -0500, Joshua Berry wrote:
> > Ok, so while we have a valid resource owner up to here, portal->resonwer
> > is NULL.
> >
> > Could you 'up' until youre in this frame and then do 'print *portal'?
> >
> 
> #7  0x0000000000638c78 in PortalRun (portal=0x2aa9360, count=10,
>     isTopLevel=1 '\001', dest=0x2a50c40, altdest=0x2a50c40,
>     completionTag=0x7fffd193d0f0 "") at pquery.c:787
> 787                                     nprocessed =
> PortalRunSelect(portal, true, count, dest);
> (gdb) print *portal
> $1 = {name = 0x2a3fe78 "SQL_CUR017CB040", prepStmtName = 0x0,
>   heap = 0x2aca6f0, resowner = 0x0, cleanup = 0x535d30 <PortalCleanup>,
>   createSubid = 0,
>   sourceText = 0x2d141b8 "declare \"SQL_CUR017CB040\" cursor with hold for
> SELECT
> anl.LAB,anl.JOB,anl.COMPANYCODE,anl.SAMPLETYPE,anl.COMPANYLAB,anl.CYLNO,anl.CONTAINERCODE,anl.DATEGCANALYSIS,anl.DATEREPORT,anl.SAMPLENAME,anl.FIE"...,
>   commandTag = 0x828f32 "SELECT", stmts = 0x2d145e8, cplan = 0x0,
>   portalParams = 0x0, strategy = PORTAL_ONE_SELECT, cursorOptions = 52,
>   status = PORTAL_ACTIVE, portalPinned = 0 '\000', queryDesc = 0x0,
>   tupDesc = 0x2e7fc50, formats = 0x0, holdStore = 0x2d0d430,
>   holdContext = 0x2f4e290, atStart = 0 '\000', atEnd = 0 '\000',
>   posOverflow = 0 '\000', portalPos = 10, creation_time = 418933112934458,
>   visible = 1 '\001'}
> (gdb)

Ok, I might be seeing whats going on here. Could you go to 'printtup'
and print *myState, *myState->attrinfo, *typpeinfo?

Tom: It looks to me like printtup_prepare_info won't normally be called
in an held cursor. But if some concurrent DDL changed the number of
columns in typeinfo vs thaose in the the receiver that could explain the
issue and why its not seen all the time, right?

Greetings,

Andres Freund

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (32+ messages)  latest in thread

Message-ID: <20130410231358.GC7547@awork2.anarazel.de>
Permalink:  ../20130410231358.GC7547@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20130410231358.GC7547@awork2.anarazel.de

 · 

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-general@postgresql.org
  Cc: andres@2ndquadrant.com, yoberi@gmail.com
  Subject: Re: Segmentation fault with core dump
  In-Reply-To: <20130410231358.GC7547@awork2.anarazel.de>
  References: <CAPmZXM03MEDEn6nqqf_Phs3M1DK-EaXP5_K-LmirneOJMAQ-Hg@mail.gmail.com> <20130410214929.GA7547@awork2.anarazel.de> <CAPmZXM2AV1D1_grC7pwg8WH4L-cTqcDEWOC2VneG2X8OHLxdsw@mail.gmail.com> <20130410222233.GB7547@awork2.anarazel.de> <CAPmZXM3N0V68b1=kRk2pB3Nr-E_Me_urLJ6Cb-XWEkrGwwiFRg@mail.gmail.com> <20130410231358.GC7547@awork2.anarazel.de>

* 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