[postgres-xl-bugs] pgxc_ctl segfault when GTM not configured

Julian Szafraniec findingfreeusernamesishard at gmail.com
Mon Jul 24 07:07:56 PDT 2017


Hi guys,

There is a light bug in pgxc_ctl.
pgxc_ctl will seqfault when trying to add a coordinator or datanode
when GTM is not configured.

Error log:

[postgres at gtm01 ~]$ pgxc_ctl -V
/usr/bin/bash
Pgxc_ctl 9.5.5 (Postgres-XL 9.5r1.4)

[postgres at gtm01 ~]$ rm -rf pgxc_ctl/
[postgres at gtm01 ~]$ ls
[postgres at gtm01 ~]$ pgxc_ctl prepare config empty
/usr/bin/bash
Installing pgxc_ctl_bash script as /var/lib/postgres/pgxc_ctl/pgxc_ctl_bash.
ERROR: File "/var/lib/postgres/pgxc_ctl/pgxc_ctl.conf" not found or
not a regular file. No such file or directory
Installing pgxc_ctl_bash script as /var/lib/postgres/pgxc_ctl/pgxc_ctl_bash.
Reading configuration using /var/lib/postgres/pgxc_ctl/pgxc_ctl_bash
--home /var/lib/postgres/pgxc_ctl --configuration
/var/lib/postgres/pgxc_ctl/pgxc_ctl.conf
Finished reading configuration.
   ******** PGXC_CTL START ***************

Current directory: /var/lib/postgres/pgxc_ctl
[postgres at gtm01 ~]$ pgxc_ctl add coordinator master coord01
192.168.19.11 57101 57501 /var/lib/postgres/data_coord01 none none
none
/usr/bin/bash
Installing pgxc_ctl_bash script as /var/lib/postgres/pgxc_ctl/pgxc_ctl_bash.
Installing pgxc_ctl_bash script as /var/lib/postgres/pgxc_ctl/pgxc_ctl_bash.
Reading configuration using /var/lib/postgres/pgxc_ctl/pgxc_ctl_bash
--home /var/lib/postgres/pgxc_ctl --configuration
/var/lib/postgres/pgxc_ctl/pgxc_ctl.conf
Finished reading configuration.
   ******** PGXC_CTL START ***************

Current directory: /var/lib/postgres/pgxc_ctl
Segmentation fault (core dumped)

Regards
Julian


More information about the postgres-xl-bugs mailing list