Skip site navigation (1) Skip section navigation (2)

BUG #2502: PQclear: "invalid next size"

From: "J(dot) R(dot) Fisher" <psql(at)jeffryfisher(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2502: PQclear: "invalid next size"
Date: 2006-06-28 17:41:02
Message-ID: 200606281741.k5SHf21v096183@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      2502
Logged by:          J. R. Fisher
Email address:      psql(at)jeffryfisher(dot)net
PostgreSQL version: 8.1
Operating system:   Linux
Description:        PQclear: "invalid next size"
Details: 

One patch of C++, two programs using it. One program runs without a hitch,
the other always explodes. In the debugger, this is what's executing:

result = PQexec (conn->handle, cmd);// char* cmd= "BEGIN"
if (PQresultStatus (result) != PGRES_COMMAND_OK) {
    ... // skipped because result *is* OK
}
if (!savingCursor) {
    PQclear (result);    // blows up here, but only in one program, not the
others

*** glibc detected *** free(): invalid next size (normal): 0x08068ab0

Responses

pgsql-bugs by date

Next:From: Russell FrancisDate: 2006-06-28 18:51:45
Subject: BUG #2503: Query results differ based on record count of unrelated table.
Previous:From: Tom LaneDate: 2006-06-28 15:48:06
Subject: Re: [BUGS] BUG #2500: subscribing for digest

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group