Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 35C481D7D621 for ; Fri, 20 Apr 2012 04:02:10 -0300 (ADT) Received: from nm6.bullet.mail.bf1.yahoo.com ([98.139.212.165]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1SL7r4-0000Q2-UF for pgsql-bugs@postgresql.org; Fri, 20 Apr 2012 07:02:09 +0000 Received: from [98.139.212.153] by nm6.bullet.mail.bf1.yahoo.com with NNFMP; 20 Apr 2012 07:01:54 -0000 Received: from [98.139.215.251] by tm10.bullet.mail.bf1.yahoo.com with NNFMP; 20 Apr 2012 07:01:54 -0000 Received: from [127.0.0.1] by omp1064.mail.bf1.yahoo.com with NNFMP; 20 Apr 2012 07:01:54 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 234851.49250.bm@omp1064.mail.bf1.yahoo.com Received: (qmail 57674 invoked by uid 60001); 20 Apr 2012 07:01:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1334905313; bh=lgPe8cVBkslH1qX/4o0o+dCVjZCaVtLQnC0+KD2Qp3o=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=4T3rf2fcTN9eocUdevEPUIL67GpM2jKZrALiSAEDo+pYvvxgysNXjNdOTk0XHwJrNzDdv1+ahF7U9024dVJkNzarfNoJNChag7FElNFrWL1ddRas1VlA3DHsmQnuYVtXn5UrV6oHFtIel0hOoDNI31NkQL61pLnoceevspUgOJw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=uKPd3iL5AJS43P472HwlPcrcVqrJVLC8dcNPyiEujCusKtX9GFi63O4mp6wrfbYbs9443VlF2Jl6CDI7Kzz4B5OLaosNNTGbjJjCfSx9F/CauSj2JLIETfYrDSLYj0rB68aQ1OV3fED2KuXiwuUCQ/AlQuu62t3/13SI9YZNQz8=; X-YMail-OSG: GsbdUsoVM1meNWSeC6BeAdWZXcU.beyGExMaOUrr8yjONbK AF4DBTVtWXHCMufiYp3Plyenkx445_TDOva4kb7ihty0UrKOv6I8PPWuqVJ_ 6z3.SOm9ZyDoiXbT1vVaJcu1OsuC32aj7cqLe0dMuzkDtu6hh.EUndfGPwZr QsATJBFVNrqG_RMMNkOuT_EonfCb0wLU9VstOLzwdbl_8whRADkoCY6Iklu2 aRzMlLFk7qBRHUgQeEHmq79Ixl_UV0SB5y_I_P54tsyEqtoOAzoJLYHqy1jd Xbe93FiT9hh.jXIoGxOJQCBk_YKOUh47onyjkS3njxiXaD1x31as68DLfW0q JEpXUFV8B8QJyYNn2KMn1Kzmo7Z76uKTLH2fC2J2IWbEkwyNPCj2CU4VbPRW 9RCRlHyo.iASt_ULlNnju7PUUjsLYKuYIftSbmHZuaj06vPbOLNaccYTer1L WVd3PuDdbIVevfTwpSesGN4mJmqBGS7KmMyqq1kuxkjpiN.gAO.xtzeW4XVI IP5zvv5xY7VsebfeSzZsdCLawzaUNVp6xLI5tlFzcJehv2zHCjVJAuxsrZmN 1voTK_Xzb.jBXsQtb3ysUi0QQV2RVFD450JygxUn9Xt1KiI.W4y3FSPza0wG I4Q-- Received: from [180.168.111.42] by web160601.mail.bf1.yahoo.com via HTTP; Fri, 20 Apr 2012 00:01:53 PDT X-Mailer: YahooMailWebService/0.8.117.340979 References: <1594.1334106240@sss.pgh.pa.us> Message-ID: <1334905313.57579.YahooMailNeo@web160601.mail.bf1.yahoo.com> Date: Fri, 20 Apr 2012 00:01:53 -0700 (PDT) From: Ran Ningyu Reply-To: Ran Ningyu Subject: Re: BUG #6578: Deadlock in libpq after upgrading from 8.4.7 to 8.4.11 To: Tom Lane Cc: "pgsql-bugs@postgresql.org" In-Reply-To: <1594.1334106240@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1737431079-724722961-1334905313=:57579" X-Pg-Spam-Score: 0.0 (/) X-Archive-Number: 201204/131 X-Sequence-Number: 32882 --1737431079-724722961-1334905313=:57579 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable > > This month, we upgrade the libpq5 from=A0 8.4.7 to 8.4.11.(libpq-dev=0A= =0A> > 8.4.11-0ubuntu0.11.04) Our service program become unstable after upg= rading.=0A=0A> > After search the mailing list, we found someone else have = the similar=0A> > problem:=0A> > http://archives.postgresql.org/pgsql-gener= al/2011-03/msg00895.php =0A=0A> I can't help observing that that person is = also using ubuntu, and that=0A> we have not heard similar complaints from a= nybody else.=A0 Ubuntu-specific=0A> glibc bug perhaps?=A0 A slightly differ= ent theory is an ubuntu-specific=0A> openssl bug; if there were something w= rong in the internal locking=0A> in libcrypto, it could well lead to a back= trace like this.=0A=0AThank you for you advice. We move back from Ubuntu 11= .04 x64 to Ubuntu 10.04 x64, but the problem still exist.=0A=0AWe finally F= IX that deadlock by install a older version of openssl using the following = command=0A=0Aapt-get install libssl0.9.8=3D0.9.8k-7ubuntu8=0A=0AOur program= =A0 runs 6 Days 21:55:30 till now without any problem.=0A=0AThe conclusion = is :=0A=0ADeadlock bug in openssl version 0.9.8k-7ubuntu8.10, newer version= of ubuntu (we tested 11.04, 11.10) still have this bug.=0AThe working vers= ion of openssl is 0.9.8k-7ubuntu8 --1737431079-724722961-1334905313=:57579 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
> > This month,= we upgrade the libpq5 from  8.4.7 to 8.4.11.(libpq-dev
> > 8.4.11-0ubuntu0.11.04) Our service program become uns= table after upgrading.

> > After search the mailing list, we f= ound someone else have the similar
> > problem:
> > http:= //archives.postgresql.org/pgsql-general/2011-03/msg00895.php

> I= can't help observing that that person is also using ubuntu, and that
&g= t; we have not heard similar complaints from anybody else.  Ubuntu-spe= cific
> glibc bug perhaps?  A slightly different theory is an ub= untu-specific
> openssl bug; if there were something wrong in the internal locking
> in libcrypto, it could well lead to a backtrace l= ike this.

Thank you for you advice. We move back from Ubuntu 11.04 x= 64 to Ubuntu 10.04 x64, but the problem still exist.

We finally FIX = that deadlock by install a older version of openssl using the following com= mand

apt-get install libssl0.9.8=3D0.9.8k-7ubuntu8

Our progra= m  runs 6 Days 21:55:30 till now without any problem.

The concl= usion is :

Deadlock bug in openssl version 0.9.8k-7ubuntu8.10, newer= version of ubuntu (we tested 11.04, 11.10) still have this bug.
The wor= king version of openssl is 0.9.8k-7ubuntu8

--1737431079-724722961-1334905313=:57579--