[pgpool-committers: 783] pgpool: Fix segmentation fault while pgpool-II stating up or fail over

Yugo Nagata nagata at sraoss.co.jp
Fri Feb 1 18:42:29 JST 2013


Fix segmentation fault while pgpool-II stating up or fail over when
watchdog is enabled. This is caused by wrong usage of pthread, namely
pthread_detach and pthread_join are mixed together.  Solution is to
use pthread_join only if we need to get status of child thread. BTW,
the problem could occur on moderately modern OS such as Fedora 17, but
the reason why the problem is not observed on other OSs is, just we
were lucky.

Problem Reported in [pgpool-general: 1179] by Lonni J Friedman.
3.2.1 segfaults at startup on Fedora17.
http://www.sraoss.jp/pipermail/pgpool-general/2012-November/001198.html

Patch provided by chads.
http://www.pgpool.net/mantisbt/view.php?id=48

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=862a6ca3e1d3eb371f4007cacb668a9b79accd90

Modified Files
--------------
watchdog/wd_lifecheck.c |   15 +++++++--------
watchdog/wd_packet.c    |   15 +++++++--------
watchdog/wd_ping.c      |    8 +++-----
3 files changed, 17 insertions(+), 21 deletions(-)



More information about the pgpool-committers mailing list