From nobody@www.freebsd.org  Tue Jun 11 20:05:04 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id CF74637B408
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Jun 2002 20:05:03 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5C353hG086787
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Jun 2002 20:05:03 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g5C353tM086786;
	Tue, 11 Jun 2002 20:05:03 -0700 (PDT)
Message-Id: <200206120305.g5C353tM086786@www.freebsd.org>
Date: Tue, 11 Jun 2002 20:05:03 -0700 (PDT)
From: Charles Sprickman <spork@fasttrackmonkey.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: netsaint-plugins util.c functions don't quite work and generate malloc errors
X-Send-Pr-Version: www-1.0

>Number:         39182
>Category:       ports
>Synopsis:       netsaint-plugins util.c functions don't quite work and generate malloc errors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 11 20:10:02 PDT 2002
>Closed-Date:    Sun Aug 17 16:00:24 PDT 2003
>Last-Modified:  Sun Aug 17 16:00:24 PDT 2003
>Originator:     Charles Sprickman
>Release:        4.5
>Organization:
FastTrackMonkey
>Environment:
bash-2.05a# uname -a
FreeBSD toolbox.biglist.com 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002     murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC  i386
      
>Description:
Discovered in the check_snmp plugin of the netsaint-plugins port.  If you either query multiple OIDS or specify a -w or -c option it exits with:

check_snmp in free(): warning: chunk is already free
check_snmp in realloc(): warning: chunk is already free
in strscat, which is in util.c of netsaint-plugins package.

This looks like a "it's written for Linux" problem.  See the following message for another person seeing this problem on OpenBSD:

http://www.geocrawler.com/archives/3/739/2001/9/0/6622268/
>How-To-Repeat:
Install netsaint-plugins port, call the check_snmp plugin with multiple OIDS and either -c or -w specified.
>Fix:
Not a programmer, but I'm betting this is one of those common linux->freebsd porting issues.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Sun Aug 17 16:00:09 PDT 2003 
State-Changed-Why:  
Please report this to the software developers. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39182 
>Unformatted:
