pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua Tolley <eggyknap@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Balamurugan Mahendran <balamurugan@adaptavant.com>
Cc: Craig Ringer <craig@postnewspapers.com.au>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5773: DEBUG: reaping dead processes DEBUG: server process (PID 10007) was terminated by signal 11: Segme
Date: Sat, 27 Nov 2010 14:11:50 -0700
Message-ID: <4cf1742e.0f3dec0a.3014.ffffb065@mx.google.com> (raw)
In-Reply-To: <9739.1290875026@sss.pgh.pa.us>
References: <AANLkTin0Zy-_tRWSxA0sGqG3Kh91jQeXSgMJRgFCjxCk@mail.gmail.com>
	<4CF0CE91.3040101@postnewspapers.com.au>
	<AANLkTi=2VrTLZyja5D81rN3MwPYF7JPn84u5vEzEDLVu@mail.gmail.com>
	<4CF0E3BF.9010203@postnewspapers.com.au>
	<AANLkTimEGD70jpUBZWKzA+hnC0x4OsanPXby=hNeVFhE@mail.gmail.com>
	<4CF0E580.7030603@postnewspapers.com.au>
	<AANLkTi=3_TZwbfGXTkD3t2ZyG=ZQ+naCkYgYi2TkBUQJ@mail.gmail.com>
	<AANLkTimXAPNCAPY+zPtMuR8jRDDNc2KbfYWwfaM_F=y4@mail.gmail.com>
	<AANLkTim70ywBCGmJd83tvpXPB4M3p=ofpGvAQ=eemPUc@mail.gmail.com>
	<9739.1290875026@sss.pgh.pa.us>

On Sat, Nov 27, 2010 at 11:23:46AM -0500, Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
> > Where does your uniqueidentifier.so file come from? It's not a part of
> > standard PostgreSQL 9.0, and this is the part that's crashing..
> 
> There used to be a project of that name on gborg.  I can't find the
> source code anymore though.

How about
http://www.postgresql.org/ftp/projects/gborg/uniqueidentifier/stable/

> > Any chance it's a third party module that you didn't recompile for 9.0?
> 
> The magic-block mechanism should prevent that.  What I'm wondering about
> is whether the input function is (a) careless about null input and (b)
> not marked STRICT.

I think you're right:

PG_FUNCTION_INFO_V1(uniqueidentifier_out);
Datum
uniqueidentifier_out(PG_FUNCTION_ARGS)
{
    char *result;
    uniqueidentifier *in = (uniqueidentifier *) PG_GETARG_POINTER(0);

    if (in == NULL)
        PG_RETURN_CSTRING (NULL);

...and...

CREATE OR REPLACE FUNCTION uniqueidentifier_in(cstring)
    returns uniqueidentifier
    as 'MODULE_PATHNAME'
    language 'c';

It should use PG_ARGISNULL(0), no?

--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com

Attachments:

  signature.asc (application/pgp-signature, 196B) download

view thread (17+ messages)  latest in thread

Message-ID: <4cf1742e.0f3dec0a.3014.ffffb065@mx.google.com>
Permalink:  ../4cf1742e.0f3dec0a.3014.ffffb065@mx.google.com/
Also on:    postgresql.org/message-id/4cf1742e.0f3dec0a.3014.ffffb065@mx.google.com

 · 

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: eggyknap@gmail.com, tgl@sss.pgh.pa.us, magnus@hagander.net, balamurugan@adaptavant.com, craig@postnewspapers.com.au
  Subject: Re: BUG #5773: DEBUG: reaping dead processes DEBUG: server process (PID 10007) was terminated by signal 11: Segme
  In-Reply-To: <4cf1742e.0f3dec0a.3014.ffffb065@mx.google.com>
  References: <AANLkTin0Zy-_tRWSxA0sGqG3Kh91jQeXSgMJRgFCjxCk@mail.gmail.com> <4CF0CE91.3040101@postnewspapers.com.au> <AANLkTi=2VrTLZyja5D81rN3MwPYF7JPn84u5vEzEDLVu@mail.gmail.com> <4CF0E3BF.9010203@postnewspapers.com.au> <AANLkTimEGD70jpUBZWKzA+hnC0x4OsanPXby=hNeVFhE@mail.gmail.com> <4CF0E580.7030603@postnewspapers.com.au> <AANLkTi=3_TZwbfGXTkD3t2ZyG=ZQ+naCkYgYi2TkBUQJ@mail.gmail.com> <AANLkTimXAPNCAPY+zPtMuR8jRDDNc2KbfYWwfaM_F=y4@mail.gmail.com> <AANLkTim70ywBCGmJd83tvpXPB4M3p=ofpGvAQ=eemPUc@mail.gmail.com> <9739.1290875026@sss.pgh.pa.us> <4cf1742e.0f3dec0a.3014.ffffb065@mx.google.com>

* 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