[pgpool-committers: 781] 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
------
V3_2_STABLE

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

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