<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.im
        {mso-style-name:im;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I will request the test env to test the patch, it may take time, will get back to you when we have the results.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks very much!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Best Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Audrey<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Muhammad Usama [mailto:m.usama@gmail.com]
<br>
<b>Sent:</b> November-20-15 7:52 AM<br>
<b>To:</b> Ziyun Audrey Wang<br>
<b>Cc:</b> Tatsuo Ishii; Nabil Khoury; pgpool-general@pgpool.net<br>
<b>Subject:</b> Re: [pgpool-general: 4223] Re: pgpool segfault<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Can you please try the attached patch if it fixes the crash because of <span style="font-size:9.5pt">ERRORDATA_STACK_SIZE exceeded.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">Please note that the patch is generated against the </span>V3_4_STABLE pgpool-II branch.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Best regards<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Muhammad Usama<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Nov 18, 2015 at 5:48 PM, Ziyun Audrey Wang <<a href="mailto:ziyun.wang@ericsson.com" target="_blank">ziyun.wang@ericsson.com</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">Hi,<br>
<br>
Here is what I have now<br>
<br>
<br>
# gdb /usr/bin/pgpool core-pgpool-11-0-0-8096-1447690344<br>
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)<br>
Copyright (C) 2010 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a>><br>
This is free software: you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"<br>
and "show warranty" for details.<br>
This GDB was configured as "x86_64-redhat-linux-gnu".<br>
For bug reporting instructions, please see:<br>
<<a href="http://www.gnu.org/software/gdb/bugs/" target="_blank">http://www.gnu.org/software/gdb/bugs/</a>>...<br>
Reading symbols from /usr/bin/pgpool...(no debugging symbols found)...done.<br>
[New Thread 8096]<br>
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/ld-linux-x86-64.so.2<br>
Core was generated by `pgpool: md'.<br>
Program terminated with signal 11, Segmentation fault.<br>
#0  0x000000000048e352 in appendStringInfoChar ()<br>
Missing separate debuginfos, use: debuginfo-install pgpool-II-pg93-3.4.3-1pgdg.rhel6.x86_64<br>
(gdb) bt<br>
#0  0x000000000048e352 in appendStringInfoChar ()<br>
Cannot access memory at address 0x7ffcb6f33e80<br>
<br>
<br>
<br>
<br>
<span class="im">-----Original Message-----</span><br>
<span class="im">From: Tatsuo Ishii [mailto:<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>]</span><br>
<span class="im">Sent: November-17-15 10:40 PM</span><br>
<span class="im">To: Ziyun Audrey Wang</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">Cc: <a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>;
<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a>; Nabil Khoury<br>
Subject: Re: [pgpool-general: 4187] pgpool segfault<br>
<br>
Please type "bt" when gdb shows "(gdb)", and send the output. That's the stack trace.<br>
<br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
> Hi,<br>
><br>
> Here is the info<br>
><br>
> # gdb /usr/bin/pgpool core-pgpool-11-0-0-8096-1447690344<br>
> GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6) Copyright (C) 2010<br>
> Free Software Foundation, Inc.<br>
> License GPLv3+: GNU GPL version 3 or later<br>
> <<a href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a>><br>
> This is free software: you are free to change and redistribute it.<br>
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"<br>
> and "show warranty" for details.<br>
> This GDB was configured as "x86_64-redhat-linux-gnu".<br>
> For bug reporting instructions, please see:<br>
> <<a href="http://www.gnu.org/software/gdb/bugs/" target="_blank">http://www.gnu.org/software/gdb/bugs/</a>>...<br>
> Reading symbols from /usr/bin/pgpool...(no debugging symbols found)...done.<br>
> [New Thread 8096]<br>
> Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.<br>
> Loaded symbols for /lib64/ld-linux-x86-64.so.2 Core was generated by<br>
> `pgpool: md'.<br>
> Program terminated with signal 11, Segmentation fault.<br>
> #0  0x000000000048e352 in appendStringInfoChar () Missing separate<br>
> debuginfos, use: debuginfo-install<br>
> pgpool-II-pg93-3.4.3-1pgdg.rhel6.x86_64<br>
> (gdb)<br>
><br>
><br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: Tatsuo Ishii [mailto:<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>]<br>
> Sent: November-17-15 8:13 AM<br>
> To: Ziyun Audrey Wang<br>
> Cc: <a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>; <a href="mailto:pgpool-general@pgpool.net">
pgpool-general@pgpool.net</a>; Nabil Khoury<br>
> Subject: Re: [pgpool-general: 4187] pgpool segfault<br>
><br>
> Thanks but the core is not very usefull for me because to take an accurate stack trace, I have to have identical environment as you. Can you please take a stack trace on the machine where the core dump files were generated. i.e.<br>
><br>
> gdb /usr/bin/pgpool core-pgpool-11-0-0-8096-1447690344<br>
><br>
>> bt (from gdb prompt)<br>
><br>
> Best regards,<br>
> --<br>
> Tatsuo Ishii<br>
> SRA OSS, Inc. Japan<br>
> English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
> Japanese:<a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
><br>
>> 2nd core dump file<br>
>><br>
>> -----Original Message-----<br>
>> From: Ziyun Audrey Wang<br>
>> Sent: November-17-15 8:01 AM<br>
>> To: 'Tatsuo Ishii'<br>
>> Cc: <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a>; Nabil Khoury<br>
>> Subject: RE: [pgpool-general: 4187] pgpool segfault<br>
>><br>
>> Hello<br>
>><br>
>> We have been able to reproduce the problem and get the core dumps. Since there are many core dump files, I am sending two of them, one is from the starting time, one is the finish time and please let me know if you need more.<br>
>><br>
>> The step to reproduce is to trigger the failover.<br>
>><br>
>> Thanks!<br>
>><br>
>> Best Regards<br>
>> Audrey<br>
>><br>
>><br>
>> -----Original Message-----<br>
>> From: Tatsuo Ishii [mailto:<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>]<br>
>> Sent: November-11-15 6:50 PM<br>
>> To: Ziyun Audrey Wang<br>
>> Cc: <a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
>> Subject: Re: [pgpool-general: 4187] pgpool segfault<br>
>><br>
>> Please send info either:<br>
>><br>
>> 1) stack trace info using gdb<br>
>><br>
>> or<br>
>><br>
>> 2) step to reproduce the problem<br>
>><br>
>> Best regards,<br>
>> --<br>
>> Tatsuo Ishii<br>
>> SRA OSS, Inc. Japan<br>
>> English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
>> Japanese:<a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
>><br>
>>> Hello,<br>
>>><br>
>>> We have<br>
>>> # pgpool -version<br>
>>> pgpool-II version 3.4.2 (tataraboshi)<br>
>>><br>
>>> in the system message log,<br>
>>><br>
>>> we found lots of segfault, like the following:<br>
>>><br>
>>> pgpool-00 kernel: pgpool[15458]: segfault at 0 ip 000000000042cb69<br>
>>> sp<br>
>>> 00007ffdb08d5fd0 error 4 in pgpool[400000+12d000]<br>
>>><br>
>>> pgpool-00 kernel: pgpool[27931]: segfault at 10 ip 0000000000430933<br>
>>> sp 00007ffc814d1370 error 4 in pgpool[400000+12d000]<br>
>>><br>
>>> what's the cause of this?<br>
>>><br>
>>> Thanks very much!<br>
>>><br>
>>> Best Regards<br>
>>> Ziyun Audrey Wang<br>
>>><br>
>>><br>
>>><br>
>>><br>
_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>