<div dir="ltr"><div>Hi Ishii-San</div><div><br></div><div>I am getting the segmentation fault in Pgpool-II child process on master and 3_6 stable branches.</div><div><br></div><div>Steps to reproduce.</div><div><br></div><div>1-) Start the pgpool-II with two backend nodes (both PG up and running).</div><div>2-) Stop one backend node (bin/pg_ctl -D data_5432/ stop)</div><div>3-) pgpool-II will perform failover.</div><div>4-) Connect to Pgpool-II using PSQL after failover is done.</div><div><br></div><div>Step 4 is producing the segmentation fault</div><div><br></div><div>The configuration file I was using for testing is attached and see below the stack trace.</div><div><br></div><div>--stack trace--</div><div><br></div><div>[usama@localhost pgpool]$ gdb --core /tmp/core_pgpool.97854 bin/pgpool</div><div>GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7</div><div>Copyright (C) 2013 Free Software Foundation, Inc.</div><div>License GPLv3+: GNU GPL version 3 or later &lt;<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>&gt;</div><div>This is free software: you are free to change and redistribute it.</div><div>There is NO WARRANTY, to the extent permitted by law.  Type &quot;show copying&quot;</div><div>and &quot;show warranty&quot; for details.</div><div>This GDB was configured as &quot;x86_64-redhat-linux-gnu&quot;.</div><div>For bug reporting instructions, please see:</div><div>&lt;<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>&gt;...</div><div>Reading symbols from /home/usama/work/community/installed/pgpool/bin/pgpool...done.</div><div>[New LWP 97854]</div><div>[Thread debugging using libthread_db enabled]</div><div>Using host libthread_db library &quot;/lib64/libthread_db.so.1&quot;.</div><div>Core was generated by `pgpool: usama postgres  idle                                                  &#39;.</div><div>Program terminated with signal 11, Segmentation fault.</div><div>#0  0x0000000000422f21 in select_load_balancing_node () at protocol/child.c:1669</div><div>1669<span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>char *database = MASTER_CONNECTION(ses-&gt;backend)-&gt;sp-&gt;database;</div><div>Missing separate debuginfos, use: debuginfo-install audit-libs-2.6.5-3.el7.x86_64 cyrus-sasl-lib-2.1.26-20.el7_2.x86_64 glibc-2.17-157.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.14.1-27.el7_3.x86_64 libcap-ng-0.7.5-4.el7.x86_64 libcom_err-1.42.9-9.el7.x86_64 libgcc-4.8.5-11.el7.x86_64 libmemcached-1.0.16-5.el7.x86_64 libselinux-2.5-6.el7.x86_64 libstdc++-4.8.5-11.el7.x86_64 nspr-4.13.1-1.0.el7_3.x86_64 nss-3.28.2-1.6.el7_3.x86_64 nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64 nss-util-3.28.2-1.1.el7_3.x86_64 openldap-2.4.40-13.el7.x86_64 openssl-libs-1.0.1e-60.el7_3.1.x86_64 pam-1.1.8-18.el7.x86_64 pcre-8.32-15.el7_2.1.x86_64 zlib-1.2.7-17.el7.x86_64</div><div>(gdb) bt</div><div>#0  0x0000000000422f21 in select_load_balancing_node () at protocol/child.c:1669</div><div>#1  0x000000000043d935 in pool_init_session_context (frontend=&lt;optimized out&gt;, backend=&lt;optimized out&gt;) at context/pool_session_context.c:97</div><div>#2  0x0000000000423dee in do_child (fds=fds@entry=0xf41600) at protocol/child.c:350</div><div>#3  0x00000000004087e5 in fork_a_child (fds=0xf41600, id=3) at main/pgpool_main.c:586</div><div>#4  0x000000000040bf6e in failover () at main/pgpool_main.c:1952</div><div>#5  0x000000000040ccce in sigusr1_interupt_processor () at main/pgpool_main.c:1427</div><div>#6  0x000000000040df9a in PgpoolMain (discard_status=discard_status@entry=1 &#39;\001&#39;, clear_memcache_oidmaps=clear_memcache_oidmaps@entry=0 &#39;\000&#39;) at main/pgpool_main.c:436</div><div>#7  0x0000000000406dbe in main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at main/main.c:300</div><div>(gdb) </div><div><br></div><div><br></div><div>Thanks</div><div>Best Regards</div><div>Muhammad Usama</div><div><br></div><div><br></div></div>