<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif;font-size:10pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}--></style>
</head>
<body>
<div style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Jeremy,</p>
<p>I'm not that familiar with working with core files, but here is the output. Hopefully I did it right.</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Nicole<br>
</p>
<p><br>
</p>
<p>[root@hobbit-test ccpp-2015-07-02-10:41:42-16666]# gdb /usr/local/xymon/xymon-current/server/bin/acknowledge.cgi coredump<br>
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6)<br>
Copyright (C) 2010 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html><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>
<http://www.gnu.org/software/gdb/bugs/>...<br>
Reading symbols from /usr/local/xymon/xymon-4.3.18/server/bin/acknowledge.cgi...done.<br>
[New Thread 16666]<br>
Missing separate debuginfo for <br>
Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/ee/208590e0e20612ddabb0a20acafc7f9bd06e8e<br>
Reading symbols from /usr/lib64/libssl.so.10...(no debugging symbols found)...done.<br>
Loaded symbols for /usr/lib64/libssl.so.10<br>
Reading symbols from /usr/lib64/libcrypto.so.10...(no debugging symbols found)...done.<br>
Loaded symbols for /usr/lib64/libcrypto.so.10<br>
Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/librt.so.1<br>
Reading symbols from /lib64/libpcre.so.0...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/libpcre.so.0<br>
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/libc.so.6<br>
Reading symbols from /lib64/libgssapi_krb5.so.2...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/libgssapi_krb5.so.2<br>
Reading symbols from /lib64/libkrb5.so.3...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/libkrb5.so.3<br>
Reading symbols from /lib64/libcom_err.so.2...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/libcom_err.so.2<br>
Reading symbols from /lib64/libk5crypto.so.3...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/libk5crypto.so.3<br>
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/libdl.so.2<br>
Reading symbols from /lib64/libz.so.1...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/libz.so.1<br>
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.<br>
[Thread debugging using libthread_db enabled]<br>
Loaded symbols for /lib64/libpthread.so.0<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>
Reading symbols from /lib64/libkrb5support.so.0...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/libkrb5support.so.0<br>
Reading symbols from /lib64/libkeyutils.so.1...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/libkeyutils.so.1<br>
Reading symbols from /lib64/libresolv.so.2...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/libresolv.so.2<br>
Reading symbols from /lib64/libselinux.so.1...(no debugging symbols found)...done.<br>
Loaded symbols for /lib64/libselinux.so.1<br>
Core was generated by `/usr/local/xymon/xymon-current/server/bin/acknowledge.cgi --env=/usr/local/xymo'.<br>
Program terminated with signal 11, Segmentation fault.<br>
#0  0x0000000000402b4f in main (argc=<value optimized out>, <br>
    argv=<value optimized out>) at acknowledge.c:392<br>
392                             if (strncmp(awalk->period, "hour", 4) == 0) awalk->validity *= 60;
<br>
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-15.el6_5.1.x86_64 libcom_err-1.41.12-18.el6.x86_64 libselinux-2.0.94-5.3.el6_4.1.x86_64 openssl-1.0.1e-16.el6_5.7.x86_64 pcre-7.8-6.el6.x86_64
 zlib-1.2.3-29.el6.x86_64<br>
(gdb) bt<br>
#0  0x0000000000402b4f in main (argc=<value optimized out>, <br>
    argv=<value optimized out>) at acknowledge.c:392<br>
<br>
</p>
<div style="color: #282828;">
<hr tabindex="-1" style="display: inline-block; width: 98%;">
<div dir="ltr" id="divRplyFwdMsg"><font face="Calibri, sans-serif" color="#000000" style="font-size: 11pt;"><b>From:</b> Jeremy Laidman <jlaidman@rebel-it.com.au><br>
<b>Sent:</b> Wednesday, July 1, 2015 11:14 PM<br>
<b>To:</b> Nicole Beck<br>
<b>Cc:</b> xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] Errors for acknowledge alerts in 4.3.18</font>
<div> </div>
</div>
<div>
<div dir="ltr">Nicole
<div><br>
</div>
<div>I can't answer your question, but it might help if you can post a backtrace.  You can refer to the following thread for an example of how to do this:</div>
<div><br>
</div>
<div><a href="http://lists.xymon.com/archive/2014-October/040455.html">http://lists.xymon.com/archive/2014-October/040455.html</a><br>
</div>
<div><br>
</div>
<div>Cheers</div>
<div>Jeremy</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 20 June 2015 at 04:48, Nicole Beck <span dir="ltr"><<a target="_blank" href="mailto:nskyrca@syr.edu">nskyrca@syr.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
<div>
<div style="font-size: 12pt; color: #000000; background-color: #ffffff; font-family: calibri,arial,helvetica,sans-serif;">
<p>Hello,</p>
<p>I just upgraded from 4.2.3 to 4.3.18, and we are getting errors when acknowledging alerts. I saw other people wrote to the list with similar problems, but I didn't really see a solution (or I just missed it.) So I apologize in advance for the duplicate question.
 Any help would be appreciated.</p>
<p><br>
</p>
<p><br>
</p>
<p>This is the error we see in the web interface:</p>
<p><br>
</p>
<p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p>
<p>Please contact the server administrator, xxxx@xxx.xxx and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p>
<p>More information about this error may be available in the server error log</p>
<p><br>
</p>
<p>This is in the Apache error log:<br>
</p>
<p>[Fri Jun 19 14:37:16 2015] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: acknowledge.sh, referer:
<a target="_blank" href="https://hobbit-test.syr.edu/xymon-ackcgi/acknowledge.sh">
https://hobbit-test.syr.edu/xymon-ackcgi/acknowledge.sh</a></p>
<p><br>
</p>
<p><br>
</p>
<p>The messages file indicates it is creating a core file:</p>
<p>Jun 19 14:39:59 hobbit-test kernel: acknowledge.cgi[8882]: segfault at 0 ip 0000000000402b4f sp 00007fffae050310 error 4 in acknowledge.cgi[400000+25000]<br>
Jun 19 14:39:59 hobbit-test abrtd: Directory 'ccpp-2015-06-19-14:39:59-8882' creation detected<br>
Jun 19 14:39:59 hobbit-test abrt[8883]: Saved core dump of pid 8882 (/usr/local/xymon/xymon-4.3.18/server/bin/acknowledge.cgi) to /var/spool/abrt/ccpp-2015-06-19-14:39:59-8882 (819200 bytes)<br>
Jun 19 14:39:59 hobbit-test abrtd: Executable '/usr/local/xymon/xymon-4.3.18/server/bin/acknowledge.cgi' doesn't belong to any package and ProcessUnpackaged is set to 'no'<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Since we want a certain group of people to be able to acknowledge alerts, I copied the acknowledge.sh script/link to another cgi directory:</p>
<p><br>
</p>
<p>[root@hobbit-test xymon-current]# ls -al cgi-ack<br>
total 208<br>
drwxr-xr-x 2 xymon xymon   4096 Jun 19 13:32 .<br>
drwxr-xr-x 8 xymon xymon   4096 Mar  5 10:28 ..<br>
lrwxrwxrwx 1 xymon xymon     49 Jun 19 13:32 acknowledge.sh -> /usr/local/xymon/xymon-current/server/bin/cgiwrap<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>This is a portion of the httpd.conf file:</p>
<p><br>
</p>
<p>ScriptAlias /xymon-ackcgi/ "/usr/local/xymon/xymon-current/cgi-ack/"<br>
<Directory "/usr/local/xymon/xymon-current/cgi-ack"><br>
    AllowOverride None<br>
    Options ExecCGI FollowSymLinks Includes<br>
    Order allow,deny<br>
    Allow from all<br>
    <br>
    Require group ackers<br>
</Directory><br>
<br>
</p>
<p>Thanks,<br>
Nicole<br>
</p>
<p><br>
</p>
</div>
</div>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a target="_blank" rel="noreferrer" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>