pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6663: 64bit *conn not handled properly by PQfinish
2+ messages / 2 participants
[nested] [flat]

* BUG #6663: 64bit *conn not handled properly by PQfinish
@ 2012-05-24 03:14  gilsonlasco@yahoo.com
  0 siblings, 1 reply; 2+ messages in thread

From: gilsonlasco@yahoo.com @ 2012-05-24 03:14 UTC (permalink / raw)
  To: pgsql-bugs

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.

using libpq.a with a C multithread program





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #6663: 64bit *conn not handled properly by PQfinish
@ 2012-05-30 01:08  Craig Ringer <ringerc@ringerc.id.au>
  parent: gilsonlasco@yahoo.com
  0 siblings, 0 replies; 2+ messages in thread

From: Craig Ringer @ 2012-05-30 01:08 UTC (permalink / raw)
  To: gilsonlasco@yahoo.com; +Cc: pgsql-bugs

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
>
>
>




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2012-05-30 01:08 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-05-24 03:14 BUG #6663: 64bit *conn not handled properly by PQfinish gilsonlasco@yahoo.com
2012-05-30 01:08 ` Craig Ringer <ringerc@ringerc.id.au>

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