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

Muhammad Usama m.usama at gmail.com
Thu Apr 7 03:59:28 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_4_STABLE

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

Modified Files
--------------
src/include/watchdog/wd_ext.h |   9 +-
src/watchdog/watchdog.c       |  99 -------------
src/watchdog/wd_if.c          |   4 +-
src/watchdog/wd_init.c        |   4 +-
src/watchdog/wd_lifecheck.c   | 221 ++++++++++++++++++++++++++++-
src/watchdog/wd_ping.c        | 317 +++++++++++++++++++-----------------------
6 files changed, 370 insertions(+), 284 deletions(-)



More information about the pgpool-committers mailing list