Description of problem: status.cgi script from nagios alway ends with Segmentation fault. Version-Release number of selected component (if applicable): nagios-2.12-6.el5 How reproducible: 100% Steps to Reproduce: 1. Enter cgi-bin dir, in my case /usr/lib64/nagios/cgi-bin/. 2. export REQUEST_METHOD="GET" 3. ./status.cgi Actual results: Segmentation fault Expected results: Should end without seg fault. Additional info:
Created attachment 353981 [details] status.cgi output Adding status.cgi output till ends witj seg fault.
This bug is currently marked as affecting Fedora 8; if that is accurate, then you will need to upgrade to Fedora 10 or 11 (8 is no longer supported). The "el5" in nagios-2.12-6.el5 indicate Enterprise Linux 5. If you are running Fedora, you'll want to run a version which has been built for Fedora (in which case "rpm -e nagios" and then "yum install nagios" should work, if you are running a recent version of Fedora). The latest version is 3.0.6-3.fc11, which may have already fixed this problem. If you are running Enterprise Linux, you'll want to change the Product and Version this bug is filed against. Thanks! --- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers
Actually I'm running CentOS 5.3.
Reproducible to me.
Any progress here?
Here is the upstream "fix" to the problem: http://nagios.cvs.sourceforge.net/viewvc/nagios/nagios/cgi/cgiutils.c?r1=1.80&r2=1.81 In patch form against the 2.12: diff -ur nagios-2.12.orig/cgi/cgiutils.c nagios-2.12/cgi/cgiutils.c --- nagios-2.12.orig/cgi/cgiutils.c 2009-12-11 04:40:40.864087315 -0500 +++ nagios-2.12/cgi/cgiutils.c 2009-12-11 04:41:07.750091589 -0500 @@ -1300,6 +1300,9 @@ static int i = 0; char* str = encoded_url_string[i]; + if(input==NULL) + return '\x0'; + len=(int)strlen(input); output_len=(int)sizeof(encoded_url_string[0]);
Reassigning to new owners.
nagios-2.12-10.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/nagios-2.12-10.el5
nagios-2.12-10.el4 has been submitted as an update for Fedora EPEL 4. https://admin.fedoraproject.org/updates/nagios-2.12-10.el4
nagios-2.12-10.el5 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update nagios'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/nagios-2.12-10.el5
nagios-2.12-10.el4 has been pushed to the Fedora EPEL 4 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update nagios'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/nagios-2.12-10.el4
nagios-2.12-10.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
nagios-2.12-10.el4 has been pushed to the Fedora EPEL 4 stable repository. If problems still persist, please make note of it in this bug report.