[pgpool-committers: 3125] 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
------
master

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

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