<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=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt">I’m not sure if I’m using gdb correctly to analyze the core dump file but it looks like acknowledge.cgi can’t find acknowledge.c which only exists in the directory used to untar, configure, and make.   When
 I view the acknowledge.c I can see “No acks requested” so that appears to be where acknowledge.cgi is pulling that from when I use the “PUT” instead of the “GET”.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">gdb /home/xymon/xymon/server/bin/acknowledge.cgi core.21353<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Reading symbols from /home/xymon/xymon/server/bin/acknowledge.cgi...done.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">[New LWP 21353]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">[Thread debugging using libthread_db enabled]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Using host libthread_db library "/lib64/libthread_db.so.1".<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Core was generated by `/home/xymon/xymon/server/bin/acknowledge.cgi --env=/home/xymon/xymon/'.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Program terminated with signal 11, Segmentation fault.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">#0  0x0000000000402b7a in main (argc=<optimized out>, argv=<optimized out>)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">    at acknowledge.c:392<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">392     <span style="background:yellow;mso-highlight:yellow">
acknowledge.c: No such file or directory.</span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">(gdb) backtrace<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">#0  0x0000000000402b7a in main (argc=<optimized out>, argv=<optimized out>)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">    at acknowledge.c:392<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Xymon [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Steve Brown<br>
<b>Sent:</b> Wednesday, November 12, 2014 6:13 PM<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> [Xymon] 4.3.18 acknowledge.sh coredump<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt">About a week ago we upgraded from 4.1.2 to 4.3.17 we also migrated from an old RH3 server to a CentOS 7 with apache 2.4. 
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Since then when we try to acknowledge an alert we receive the below error in the browser.  Over the weekend I upgraded to 4.3.18 but that didn’t change the behavior and we still receive the error.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Internal Server Error<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">The server encountered an internal error or misconfiguration and was unable to complete your request.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">More information about this error may be available in the server error log.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Here’s the error log that details the error.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">/var/log/httpd/error_log<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">[Mon Nov 10 10:51:30.278866 2014] [cgi:error] [pid 18672] [client x.x.x.x:64640] End of script output before headers: acknowledge.sh, referer:
<a href="http://hostname.com:90/hobbit-seccgi/acknowledge.sh">http://hostname.com:90/hobbit-seccgi/acknowledge.sh</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">When I try to debug with the below script and pass it an alert number as a parameter, using the GET coredumps. When I try the “PUT”, I receive a html page saying “No acks requested”<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">export REQUEST_METHOD=GET<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">#export REQUEST_METHOD=PUT<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">export SCRIPT_NAME="acknowledge.sh"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">HNUM=$1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">export QUERY_STRING="ACTION=Ack&DELAY=480&MESSAGE=AckByLink&NUMBER=${HNUM}&Send=Send"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">xymoncmd /home/xymon/xymon/cgi-secure/acknowledge.sh<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">2014-11-12 19:07:09 Using default environment file /home/xymon/xymon/server/etc/xymonserver.cfg<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">./atest.sh: line 7: 24228 Segmentation fault      (core dumped) xymoncmd /home/xymon/xymon/cgi-secure/acknowledge.sh<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Thanks for your help<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Steve<o:p></o:p></span></p>
</div>
</body>
</html>