[pgpool-committers: 3124] pgpool: Fix for [pgpool-general: 4569] PGPoolII-3.5 : segfault

Muhammad Usama m.usama at gmail.com
Wed Apr 6 05:50:31 JST 2016


Fix for [pgpool-general: 4569] PGPoolII-3.5 : segfault

PostgreSQL's memory and exception manager APIs adopted by the pgpool 3.4 are not
thread safe and are causing the segmentation fault in the watchdog lifecheck
process, as it uses the threads to ping configured trusted hosts for checking
the upstream connections.
Fix is to remove threads and use the child process approach instead.

Branch
------
V3_5_STABLE

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

Modified Files
--------------
src/include/watchdog/wd_utils.h |   6 +-
src/watchdog/wd_if.c            |   6 +-
src/watchdog/wd_lifecheck.c     | 209 ++++++++++++++++++++++++++-----
src/watchdog/wd_ping.c          | 264 +++++++++++++---------------------------
4 files changed, 270 insertions(+), 215 deletions(-)



More information about the pgpool-committers mailing list