Re: async problems?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mark Harrison <mh(at)pixar(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: async problems?
Date: 2004-06-01 23:35:32
Message-ID: 17767.1086132932@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mark Harrison <mh(at)pixar(dot)com> writes:
> res = PQexec(conn,"DECLARE cur CURSOR FOR select * from assets limit 8888"); printf("PQexec declare %s\n", PQresStatus(PQresultStatus(res)));
> PQclear(res);

> rc = PQsendQuery(conn, fetchstr);
> printf("PQsendQuery %d\n", rc);
> PQclear(res);

You just re-cleared an already cleared result. This probably caused a
double free, corrupting malloc's datastructures. The later crash within
malloc is not surprising...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hadley Willan 2004-06-02 06:29:20 Dynamic SQL
Previous Message Mark Harrison 2004-06-01 22:53:19 async problems?