Re: Multi-threaded user app segfaults when using libpq with separate connections

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Multi-threaded user app segfaults when using libpq with separate connections
Дата
Msg-id 13531.1060036862@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Multi-threaded user app segfaults when using libpq with separate connections  (Frank van Vugt <ftm.van.vugt@foxi.nl>)
Ответы Re: Multi-threaded user app segfaults when using libpq with separate connections  (Frank van Vugt <ftm.van.vugt@foxi.nl>)
SOLVED: Multi-threaded Qt app segfaults when using libpq with separate connections  (Frank van Vugt <ftm.van.vugt@foxi.nl>)
Список pgsql-interfaces
Frank van Vugt <ftm.van.vugt@foxi.nl> writes:
>> You may care to try your test with CVS tip and see if it works better.

> I've retried this with a cvs-version of this afternoon (local
> time). The build stranded in plpgsql (I seem to need a more recent
> bison), but at that point libpq was already finished. This still
> resulted in more or less the same kind of errors.

Are you sure that each thread is accessing only its own PGconn object?

Other than that, not sure what to suggest.  I get the impression that
something is clobbering memory with abandon.  Do you have any
Purify-like tools to look for memory stomp problems?
        regards, tom lane


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

Предыдущее
От: Frank van Vugt
Дата:
Сообщение: Re: Multi-threaded user app segfaults when using libpq with separate connections
Следующее
От: Frank van Vugt
Дата:
Сообщение: Fwd: Re: Multi-threaded user app segfaults when using libpq with separate connections