Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 221991337C13 for ; Sat, 27 Nov 2010 17:12:40 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 94005-03-4 for ; Sat, 27 Nov 2010 21:12:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yw0-f46.google.com (mail-yw0-f46.google.com [209.85.213.46]) by mail.postgresql.org (Postfix) with ESMTP id C6AF01337BDE for ; Sat, 27 Nov 2010 17:12:17 -0400 (AST) Received: by ywl5 with SMTP id 5so1429432ywl.19 for ; Sat, 27 Nov 2010 13:12:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:cc :subject:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=/d9JYxIcGL2SEX72xfLvalnLLg0CKuPXMm1M1CLxKJw=; b=mR8e4amIlqFleNixNBSScQ6wJC5K3oqv//Sp2cY1gJd8Njhh+AJHzcoSl4zENeqoYW HYRr3MYaG3aQ3sXBcGLuOV5LTNpS3KjXrbbc2FOPrQ1Z+kTw3AerNTG/YjYrdECNSp8p DFH8kNrnZWGnvZfYAOMzSBJOM+TTyKSA6XxF4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:cc:subject:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=K2kqQkjsFvt3XO12AWbQSvHk/JsgVkPkWmn4pFGSZOSLeP4RVzoO7NkiI7K0O4B62n cGZ7xHlUaUX9pIa+jPXDBswlyLm6x5vIFwRgsvdWnzjWC7oTJCMOJ1s/mNLsl408GOOr E3MF9jxqabOte6m9RamAr2s5g5xIaQKTMhU/8= Received: by 10.90.221.5 with SMTP id t5mr6538733agg.72.1290892335863; Sat, 27 Nov 2010 13:12:15 -0800 (PST) Received: from eddie (c-67-186-249-122.hsd1.ut.comcast.net [67.186.249.122]) by mx.google.com with ESMTPS id v15sm2136428yhc.27.2010.11.27.13.12.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 27 Nov 2010 13:12:14 -0800 (PST) Message-ID: <4cf1742e.0f3dec0a.3014.ffffb065@mx.google.com> Date: Sat, 27 Nov 2010 14:11:50 -0700 From: Joshua Tolley To: Tom Lane Cc: Magnus Hagander , Balamurugan Mahendran , Craig Ringer , pgsql-bugs@postgresql.org Subject: Re: BUG #5773: DEBUG: reaping dead processes DEBUG: server process (PID 10007) was terminated by signal 11: Segme References: <4CF0CE91.3040101@postnewspapers.com.au> <4CF0E3BF.9010203@postnewspapers.com.au> <4CF0E580.7030603@postnewspapers.com.au> <9739.1290875026@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ie5iOtK4e9kgqh2F" Content-Disposition: inline In-Reply-To: <9739.1290875026@sss.pgh.pa.us> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201011/187 X-Sequence-Number: 28767 --Ie5iOtK4e9kgqh2F Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 27, 2010 at 11:23:46AM -0500, Tom Lane wrote: > Magnus Hagander 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.. >=20 > 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? >=20 > 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 =3D (uniqueidentifier *) PG_GETARG_POINTER(0); if (in =3D=3D NULL) PG_RETURN_CSTRING (NULL); =2E..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 --Ie5iOtK4e9kgqh2F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkzxdBUACgkQRiRfCGf1UMPo1wCfaIJSoFZPXZxLnPZ03dtwvaeJ A/YAn0N/KhsK6nhB3jUUAZSs4A1Gf5nV =GdY8 -----END PGP SIGNATURE----- --Ie5iOtK4e9kgqh2F--