Re: (Never?) Kill Postmaster?

From: Christian Schröder <cs(at)deriva(dot)de>
To: pgsql-general(at)postgreSQL(dot)org
Subject: Re: (Never?) Kill Postmaster?
Date: 2007-11-13 13:08:47
Message-ID: 4739A1DF.4090400@deriva.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Hah, I've got it. (Should have searched Red Hat's bugzilla sooner.)
> What you are hitting is a glibc bug, as explained here:
> http://sources.redhat.com/ml/libc-hacker/2007-10/msg00010.html
> If libpthread is loaded after first use of dcgettext, then subsequent
> uses are at risk of hanging because they start to use a mutex lock
> that was never initialized. And libperl brings in libpthread.
>

Many thanks for your efforts which have been crowned with success at last!!

What remains inscrutable to me is why this problem did not arise
earlier. I cannot remember any changes that I have made to the system
recently. Or maybe it has been a defective update of the glibc? I did
not see in the bug report any hint about when this bug has been
introduced. Obviously it has something to do with the users having
disconnects, but we have been working with dial-up connections for many
years and did never see this bug.

By the way, does the "--enable-thread-safety" switch have anything to do
with the problem?

> So you need to pester SuSE for a glibc with that fix in it ...
>

Phew, that might be hard work, but I will give it a try. Until I have
success I will probably restart the database server once in a week to
remove those old connections.

Thanks a lot for your help!
Christian

P.S.: Can I change the root password again?

--
Deriva GmbH Tel.: +49 551 489500-42
Financial IT and Consulting Fax: +49 551 489500-91
Hans-Böckler-Straße 2 http://www.deriva.de
D-37079 Göttingen

Deriva CA Certificate: http://www.deriva.de/deriva-ca.cer

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-11-13 13:20:36 Re: (Never?) Kill Postmaster?
Previous Message yang zhenyu 2007-11-13 10:30:42 Re: PQexec(), what should I do for the "NULL in command" problem?