Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jun 2002 20:05:03 -0700 (PDT)
From:      Charles Sprickman <spork@fasttrackmonkey.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/39182: netsaint-plugins util.c functions don't quite work and generate malloc errors
Message-ID:  <200206120305.g5C353tM086786@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 11 20:10:02 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206120305.g5C353tM086786>