Re: [Pgbuildfarm-members] CREATE FUNCTION hang on test machine polecat on HEAD

From: Alex Hunsaker <badalex(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Creager <Robert(dot)Creager(at)oracle(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, "pgbuildfarm-members(at)pgfoundry(dot)org" <pgbuildfarm-members(at)pgfoundry(dot)org>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [Pgbuildfarm-members] CREATE FUNCTION hang on test machine polecat on HEAD
Date: 2011-06-07 18:12:20
Message-ID: BANLkTinqj1_FDZBpDt-3Y_GsTAWWJqejaA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: buildfarm-members pgsql-hackers

On Tue, Jun 7, 2011 at 11:48, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Alex Hunsaker <badalex(at)gmail(dot)com> writes:
>> On Mon, Jun 6, 2011 at 21:16, Robert Creager <Robert(dot)Creager(at)oracle(dot)com> wrote:
>>> (gdb) bt
>>> #0  0x0000000100a505e4 in Perl_get_hash_seed ()
>>> #1  0x0000000100a69b94 in perl_parse ()
>
>> I don't suppose /dev/urandom blocks on OS X?
>
> The man page for it avers not, and besides it's hard to believe that
> there wouldn't be a libc routine or two on the stack if we were blocked
> in a kernel call,

Yeah.

> and also Robert showed that the process was consuming
> CPU time, so it's not blocked.  Tis puzzling if there's no loop in the
> function.

Well there is one, I snipped it out for brevity (I don't see how it
could be at fault):

const char *s = PerlEnv_getenv("PERL_HASH_SEED");
if (s)
while (isSPACE(*s))
s++;
if (s && isDIGIT(*s))
myseed = (UV)Atoul(s);
else
{
srand(Perl_seed());
myseed = rand() *UV_MAX;
....
}

Im looking at the "raw" perl 5.10.0 source... I wonder if apple is
shipping a modified version?

In response to

Responses

Browse buildfarm-members by date

  From Date Subject
Next Message Tom Lane 2011-06-07 18:22:13 Re: [Pgbuildfarm-members] CREATE FUNCTION hang on test machine polecat on HEAD
Previous Message Christopher Browne 2011-06-07 17:50:18 Re: [Pgbuildfarm-members] CREATE FUNCTION hang on test machine polecat on HEAD

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2011-06-07 18:21:10 Re: SIREAD lock versus ACCESS EXCLUSIVE lock
Previous Message Kevin Grittner 2011-06-07 18:10:06 Re: SIREAD lock versus ACCESS EXCLUSIVE lock