<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 491: pgxc_ctl segfaults when run to get the config template</title><link>https://sourceforge.net/p/postgres-xc/bugs/491/</link><description>Recent changes to 491: pgxc_ctl segfaults when run to get the config template</description><atom:link href="https://sourceforge.net/p/postgres-xc/bugs/491/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 29 Oct 2014 18:21:10 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/postgres-xc/bugs/491/feed.rss" rel="self" type="application/rss+xml"/><item><title>#491 pgxc_ctl segfaults when run to get the config template</title><link>https://sourceforge.net/p/postgres-xc/bugs/491/?limit=25#7124</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;So setting the variables creates fixes the template creation and I must rollback the statement from the issue description:&lt;br /&gt;
"Also it seems 'prepare' command listed in the Primer example for pgxc_ctl is spurious as have no reflection in the code." is not true after checking the code carefully. It is used.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">yazun</dc:creator><pubDate>Wed, 29 Oct 2014 18:21:10 -0000</pubDate><guid>https://sourceforge.net9ef4c8743477a42eaa069b0ce132e1d4aedb707f</guid></item><item><title>#491 pgxc_ctl segfaults when run to get the config template</title><link>https://sourceforge.net/p/postgres-xc/bugs/491/?limit=25#9455</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This seems related to the variables that were deleted from the first version (I use trunk)&lt;br /&gt;
dnMstrDi=$HOME/pgxc/nodes/dn_master&lt;br /&gt;
dnSlvDir=$HOME/pgxc/nodes/dn_slave&lt;br /&gt;
dnALDir=$HOME/pgxc/nodes/datanode_archlog&lt;/p&gt;
&lt;p&gt;these are undefined in the current version hence segfault.&lt;br /&gt;
&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">yazun</dc:creator><pubDate>Wed, 29 Oct 2014 15:15:34 -0000</pubDate><guid>https://sourceforge.netd5e9718a4e0c46eb1b0f08e3c63c8983027335b6</guid></item><item><title>#491 pgxc_ctl segfaults when run to get the config template</title><link>https://sourceforge.net/p/postgres-xc/bugs/491/?limit=25#30c3</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;(gdb) bt&lt;/p&gt;
&lt;h1 id="0-__strcmp_ssse3-at-sysdepsx86_64multiarchstrcmps210"&gt;0  __strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:210&lt;/h1&gt;
&lt;h1 id="1-0x00000000004050b1-in-checkresourceconflict-srcnamessrcnamesentry0x42b912-gtmproxynames"&gt;1  0x00000000004050b1 in checkResourceConflict (srcNames=srcNames@entry=0x42b912 "gtmProxyNames",&lt;/h1&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;srcServers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;srcServers&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x42b92d&lt;/span&gt; &lt;span class="s"&gt;"gtmProxyServers"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;srcPorts&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;srcPorts&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x42b94a&lt;/span&gt; &lt;span class="s"&gt;"gtmProxyPorts"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;srcPoolers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;srcPoolers&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
&lt;span class="n"&gt;srcDirs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;srcDirs&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x42b965&lt;/span&gt; &lt;span class="s"&gt;"gtmProxyDirs"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;destNames&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;destNames&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x42bb09&lt;/span&gt; &lt;span class="s"&gt;"datanodeNames"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
&lt;span class="n"&gt;destServers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;destServers&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x42a36d&lt;/span&gt; &lt;span class="s"&gt;"datanodeMasterServers"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;destPorts&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;destPorts&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x42bb24&lt;/span&gt; &lt;span class="s"&gt;"datanodePorts"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; 
&lt;span class="n"&gt;destPoolers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;destPoolers&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;destDirs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;destDirs&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mh"&gt;0x42a3b1&lt;/span&gt; &lt;span class="s"&gt;"datanodeMasterDirs"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;destOnly&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;destOnly&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;checkName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;checkName&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="n"&gt;entry&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;at&lt;/span&gt; &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;821&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h1 id="2-0x0000000000405f7b-in-verifyresource-at-configc1001"&gt;2  0x0000000000405f7b in verifyResource () at config.c:1001&lt;/h1&gt;
&lt;h1 id="3-0x0000000000407267-in-check_configuration-at-configc1083"&gt;3  0x0000000000407267 in check_configuration () at config.c:1083&lt;/h1&gt;
&lt;h1 id="4-0x00000000004035fd-in-main-argc3-argv0x7fffffffdf88-at-pgxc_ctlc535"&gt;4  0x00000000004035fd in main (argc=3, argv=0x7fffffffdf88) at pgxc_ctl.c:535&lt;/h1&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">yazun</dc:creator><pubDate>Wed, 29 Oct 2014 14:51:13 -0000</pubDate><guid>https://sourceforge.net02231b260e374035440aa4c5699126cd98484479</guid></item><item><title>pgxc_ctl segfaults when run to get the config template</title><link>https://sourceforge.net/p/postgres-xc/bugs/491/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When pgxc_ctl is called as described in the Pgxc_ctl Primer to create a stub config file it segfaults as the config produced is not coherent and verification seems to have a bug:&lt;/p&gt;
&lt;p&gt;Reading symbols from pgxc_ctl...done.&lt;br /&gt;
(gdb) set args mypgxc_ctl.conf&lt;br /&gt;
(gdb) r&lt;br /&gt;
Starting program: /home/postgres/xc/bin/pgxc_ctl mypgxc_ctl.conf&lt;br /&gt;
&lt;span&gt;[Thread debugging using libthread_db enabled]&lt;/span&gt;&lt;br /&gt;
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".&lt;br /&gt;
bash_handler.c:install_pgxc_ctl_bash(34) Installing pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.&lt;br /&gt;
pgxc_ctl.c:build_configuration_path(232) ERROR: File "/home/postgres/pgxc_ctl/pgxc_ctl.conf" not found or not a regular file. No such file or directory&lt;br /&gt;
bash_handler.c:install_pgxc_ctl_bash(34) Installing pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.&lt;br /&gt;
pgxc_ctl.c:read_configuration(254) Reading configuration using /home/postgres/pgxc_ctl/pgxc_ctl_bash --home /home/postgres/pgxc_ctl --configuration /home/postgres/pgxc_ctl/pgxc_ctl.conf&lt;br /&gt;
pgxc_ctl.c:read_configuration(264) Finished to read configuration.&lt;br /&gt;
config.c:checkConfiguredAndSize(565) ERROR: Number of elements in datanode master definitions are different datanodeNames and datanodeMasterDirs.  Check your configuration&lt;br /&gt;
config.c:verifyResource(925) ERROR: Found fundamental configuration error.&lt;/p&gt;
&lt;p&gt;Program received signal SIGSEGV, Segmentation fault.&lt;br /&gt;
__strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:210&lt;/p&gt;
&lt;p&gt;Also it seems 'prepare' command listed in the Primer example for pgxc_ctl is spurious as have no reflection in the code.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Krzysztof&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">yazun</dc:creator><pubDate>Wed, 29 Oct 2014 14:35:19 -0000</pubDate><guid>https://sourceforge.netacdee6ad2139dc9c410eb5be423d8d67db3ace30</guid></item></channel></rss>