[Nagiosplug-devel] [ nagiosplug-Bugs-1912023 ] check_http segfaults with "-a x" option

SourceForge.net noreply at sourceforge.net
Wed Mar 26 03:20:30 CET 2008


Bugs item #1912023, was opened at 2008-03-11 10:01
Message generated for change (Comment added) made by sf-robot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1912023&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Argument proccessing
Group: Release (specify)
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Adam Buchbinder (gdrago23)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_http segfaults with "-a x" option

Initial Comment:
Plugin Version (-V output): check_http v1861 (nagios-plugins 1.4.11)
Plugin Name: check_http
Plugin Commandline showing issues: ./check_http -a x google.com
Operating System: Ubuntu Gutsy
Architecture: i686
Compiler: gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

Backtrace:

(gdb) run -a x google.com
Starting program: /home/abuchbinder/src/nagiosplug/nagios-plugins-1.4.11/plugins/check_http -a x google.com

Program received signal SIGSEGV, Segmentation fault.
0x08050b73 in base64 (bin=0x806bf04 'A' <repeats 200 times>..., len=1) at base64.c:23
23                      buf[i++] = base64_table[bin[j] >> 2];
(gdb) bt
#0  0x08050b73 in base64 (bin=0x806bf04 'A' <repeats 200 times>..., len=1) at base64.c:23
#1  0x0804b164 in check_http () at check_http.c:764
#2  0x0804e344 in main (argc=1094795585, argv=0x41414141) at check_http.c:166
(gdb) 

The argument specified isn't valid, but it still shouldn't segfault.

----------------------------------------------------------------------

>Comment By: SourceForge Robot (sf-robot)
Date: 2008-03-25 19:20

Message:
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

----------------------------------------------------------------------

Comment By: Holger Weiss (hweiss)
Date: 2008-03-11 10:26

Message:
Logged In: YES 
user_id=759506
Originator: NO

As far as I can see, this is fixed in SVN (we now use Gnulib for Base64
encoding), see the latest snapshot at:

http://nagiosplug.sourceforge.net/snapshot/nagios-plugins-HEAD.tar.gz

----------------------------------------------------------------------

Comment By: Adam Buchbinder (gdrago23)
Date: 2008-03-11 10:05

Message:
Logged In: YES 
user_id=20994
Originator: YES

This has also been reported on the Ubuntu bug tracker:

https://bugs.launchpad.net/ubuntu/+source/nagios-plugins/+bug/201054

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1912023&group_id=29880




More information about the Devel mailing list