Re: async problems?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: async problems?
Дата
Msg-id 17767.1086132932@sss.pgh.pa.us
обсуждение исходный текст
Ответ на async problems?  (Mark Harrison <mh@pixar.com>)
Ответы Re: async problems?
Список pgsql-general
Mark Harrison <mh@pixar.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Mark Harrison
Дата:
Сообщение: async problems?
Следующее
От: Hadley Willan
Дата:
Сообщение: Dynamic SQL