From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marko Tiikkaja <pgmail@joh.to>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7516: PL/Perl crash
Date: Fri, 14 Sep 2012 10:26:23 -0400
Message-ID: <12944.1347632783@sss.pgh.pa.us> (raw)
In-Reply-To: <5052E4C0.2060004@joh.to>
References: <E1T8YUZ-0006gb-Oz@wrigleys.postgresql.org>
<1194.1346688396@sss.pgh.pa.us>
<5047BA9C.2040405@joh.to>
<16153.1347226320@sss.pgh.pa.us>
<17785.1347230278@sss.pgh.pa.us>
<504F8034.20802@joh.to>
<4011.1347407415@sss.pgh.pa.us>
<50506B94.5040003@joh.to>
<17684.1347558484@sss.pgh.pa.us>
<505229E8.9070507@joh.to>
<21173.1347568661@sss.pgh.pa.us>
<22390.1347572522@sss.pgh.pa.us>
<22854.1347573532@sss.pgh.pa.us>
<5052E4C0.2060004@joh.to>
Marko Tiikkaja <pgmail@joh.to> writes:
> On 9/13/12 11:58 PM, Tom Lane wrote:
>> And on still further investigation, the patch I just applied to HEAD
>> seems to make it go away too. Bizarre as can be. If that holds up for
>> you, I think back-patching that change is less ugly than making the
>> variable non-static.
> It does, indeed. I can't reproduce the bug on my end with that patch
> applied.
Here's what Jakub Jelinek wrote in the RH bugzilla:
> That is a glibc bug. While in setjmp.h the __sigsetjmp prototype is properly
> marked as non-leaf:
> extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask)
> __THROWNL;
> in pthread.h it is incorrectly marked as leaf:
> extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __THROW;
> When pthread.h is fixed, the testcase works properly.
So that explains why including perl.h is relevant. Would you like to
try modifying your copy of pthread.h to confirm it's the same situation
on Ubuntu?
It's probably pure luck that my no-palloc patch dodges the problem, but
anyway it seems like a good enough work-around until the glibc issue is
fixed. I'll go ahead and back-patch that.
regards, tom lane
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, pgmail@joh.to
Subject: Re: BUG #7516: PL/Perl crash
In-Reply-To: <12944.1347632783@sss.pgh.pa.us>
References: <E1T8YUZ-0006gb-Oz@wrigleys.postgresql.org> <1194.1346688396@sss.pgh.pa.us> <5047BA9C.2040405@joh.to> <16153.1347226320@sss.pgh.pa.us> <17785.1347230278@sss.pgh.pa.us> <504F8034.20802@joh.to> <4011.1347407415@sss.pgh.pa.us> <50506B94.5040003@joh.to> <17684.1347558484@sss.pgh.pa.us> <505229E8.9070507@joh.to> <21173.1347568661@sss.pgh.pa.us> <22390.1347572522@sss.pgh.pa.us> <22854.1347573532@sss.pgh.pa.us> <5052E4C0.2060004@joh.to> <12944.1347632783@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