Re: BUG #6086: Segmentation fault

Поиск
Список
Период
Сортировка
От noordsij
Тема Re: BUG #6086: Segmentation fault
Дата
Msg-id f82ce27210f51a2faf8879d4f14e5cab@cs.helsinki.fi
обсуждение исходный текст
Ответ на Re: BUG #6086: Segmentation fault  (Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>)
Ответы Re: BUG #6086: Segmentation fault  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
After a few hours of watching strange things happening I finally stumbled
on the cause.

Very short summary: the postgres binary needs to be linked to libpthread,
as this will ensure a special fork() inside libthr (the FreeBSD libpthread
implementation/wrapper) is used which correctly deals with any pthread
usage (I am guessing especially statically initialized pthread_X variables
in for example libxml2).

This can be accomplished by adding "-lpthread" to the LDFLAGS when building
either libxml2 or postgresql itself, or by preloading libpthread.so when
starting postgresql.

Before advocating any particular solution, I'd like to throw this out first
and see how strongly people feel about this.


Cheers, and thanks to everyone who replied so far
Dennis

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: BUG #6130: TOAST tables bug restoring to PostgreSQL 9.0.4
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #6086: Segmentation fault