Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id F166D1CCA647 for ; Tue, 29 May 2012 22:08:29 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SZXOl-0001gI-No for pgsql-bugs@postgresql.org; Wed, 30 May 2012 01:08:28 +0000 Received: by pbbrp8 with SMTP id rp8so6711194pbb.19 for ; Tue, 29 May 2012 18:08:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=thFbDre9HRn/55IJLs4AzrEgbtEkY5FmfybVzjERFug=; b=ETfag5Qi27LEPOpaHmu1EGu80W/M3ix1m/WkQZA7/iXpHE85wIbFI3GQRCv02/6lFQ 7d0TuQuTGi5wv5VrHUiiDFLsGY7BB2R7W/IElFuHrTaJWtYiXGo++Q6ho8u86cddFeH1 zdJum3Lm4M/OHBuzwL6YF8J4Ksblh4htoWZ4+TOT5LuyMyUWXpoMuT6cq1BVfwZ1234B 1foOXNxcNpO0Ui8uW2h3MufjbuP+1scsbckjPZVcrISKR1uxpTOweASvrw/R1dTrbYaS UoHTk49ZR21RaQFvY6Eyt08BxXDh9XUZlzVLlW+pWJGcW2sDszasuT8FHvgAxiHtcZSx THjw== Received: by 10.68.130.197 with SMTP id og5mr43627288pbb.56.1338340093620; Tue, 29 May 2012 18:08:13 -0700 (PDT) Received: from wallace.localnet (office1.postnewspapers.com.au. [150.101.171.128]) by mx.google.com with ESMTPS id py5sm24562837pbb.1.2012.05.29.18.08.10 (version=SSLv3 cipher=OTHER); Tue, 29 May 2012 18:08:12 -0700 (PDT) Message-ID: <4FC572F7.4050503@ringerc.id.au> Date: Wed, 30 May 2012 09:08:07 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: gilsonlasco@yahoo.com CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6663: 64bit *conn not handled properly by PQfinish References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkppFMlMoCu0LHpW+FBm+y6k6m3SZT+N50x9IckWpJpHgjtpyRfhmBfNVcORf7aMgPtxOuB X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/220 X-Sequence-Number: 33191 On 05/24/2012 11:14 AM, gilsonlasco@yahoo.com wrote: > The following bug has been logged on the website: > > Bug reference: 6663 > Logged by: Gilson Lasco > Email address: gilsonlasco@yahoo.com > PostgreSQL version: 9.1.3 > Operating system: Linux Ubuntu 12.04 x64 > Description: > > while PQconnectdb returns addresses below 2gb, PQfinish works nicely. > First conn obj above 2gb line and PGfinish segfaults. Backtrace? Minimal test program to demonstrate the problem? Did you compile libpq yourself, or is it a packaged version? If packaged, from where? What compiler options were used in the build of libpq? and of your program? Does more than one thread ever access libpq at a time? There are strict threading rules around how you can access libpq and connections. See the documentation. If you violate them, you enter undefined behavior territory. If you run your test program under valgrind, do you see any issues? > using libpq.a with a C multithread program > > >