<div dir="ltr">Hi Yugo<br><br>I have found the problem in the code and pushed the fix in 3.4 and master branches.<div><a href="http://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=2b55c09cbfb1488ecd0fe0b2d7d5045febea57bd">http://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=2b55c09cbfb1488ecd0fe0b2d7d5045febea57bd</a><div><br></div><div>Although I was getting the segmentation fault with and not the exact bus error as reportred, So can you please verify if the issue is fixed at your end.</div><div><br></div><div>Thanks</div><div>Kind regards!</div><div>Muhammad Usama</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 29, 2015 at 5:51 AM, Yugo Nagata <span dir="ltr">&lt;<a href="mailto:nagata@sraoss.co.jp" target="_blank">nagata@sraoss.co.jp</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">Hi hackers,<br>
<br>
I found a bug about pool_hba on 3.4.x.<br>
<br>
When enalbed_pool_hba is on, after several times of &quot;pgpool reload&quot;<br>
pgpool main process is terminated leaving children.<br>
Any log messages isn&#39;t output.<br>
<br>
gdb said &quot;Bus error&quot; occured at free_lines (at pool_hba.c).<br>
Here is backtrace result.<br>
<br>
Program received signal SIGBUS, Bus error.<br>
free_lines (lines=0x72e3e8, line_nums=0x72e3f0) at auth/pool_hba.c:1189<br>
1189                                    pfree(lfirst(token));<br>
(gdb) bt<br>
#0  free_lines (lines=0x72e3e8, line_nums=0x72e3f0) at auth/pool_hba.c:1189<br>
#1  0x00000000004202c3 in load_hba (hbapath=0x7410e0 &quot;/home/yugo-n/work/git/pgpool2/src/test/heathcheck/etc/pool_hba.conf&quot;) at auth/pool_hba.c:107<br>
#2  0x00000000004055e2 in reload_config () at main/pgpool_main.c:2950<br>
#3  0x00000000004073fd in pool_sleep (second=&lt;value optimized out&gt;) at main/pgpool_main.c:2307<br>
#4  0x0000000000409e6f in PgpoolMain (discard_status=&lt;value optimized out&gt;, clear_memcache_oidmaps=&lt;value optimized out&gt;) at main/pgpool_main.c:473<br>
#5  0x0000000000404431 in main (argc=&lt;value optimized out&gt;, argv=&lt;value optimized out&gt;) at main/main.c:319<br>
<br>
This problem occurs only on 3.4.0. (I used head of git repository.)<br>
3.3.4 has no problem.<br>
<br>
Is this a bug of memory-management of 3.4?<br>
<br>
--<br>
Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
_______________________________________________<br>
pgpool-hackers mailing list<br>
<a href="mailto:pgpool-hackers@pgpool.net">pgpool-hackers@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-hackers</a><br>
</div></div></blockquote></div><br></div>