[Nagiosplug-devel] [ nagiosplug-Patches-1595450 ] check_procs bus error, segmentation fault or ...
SourceForge.net
noreply at sourceforge.net
Fri Feb 29 11:52:53 CET 2008
Patches item #1595450, was opened at 2006-11-13 08:24
Message generated for change (Comment added) made by tonvoon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1595450&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alex Peeters (zxr750)
>Assigned to: Ton Voon (tonvoon)
Summary: check_procs bus error, segmentation fault or ...
Initial Comment:
check_procs bus error, segmentation fault or wrong
output on Solaris 8, 9 & 10
Do first the next configure!
----------------------------
./configure --with-ps_command="/usr/bin/ps -eo 's uid
pid ppid vsz rss pcpu etime comm args'"
--with-ps_format='%s %d %d %d %d %d %f %s %s %n'
--with-ps_cols=10
--with-ps_varlist='procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos'
--with-trusted-path=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
To solve the bus error and /or segmentation fault on
Solaris 8:
--------------------------------------------------
replace into check_procs.c
if ( cols >= expected_cols ) {
resultsum = 0;
- asprintf (&procargs, "%s", input_line + pos);
strip (procargs);
with
if ( cols >= expected_cols ) {
resultsum = 0;
+ asprintf (&procargs, "%s", input_line);
strip (procargs);
To solve the wrong output on Solaris 8, 9 & 10:
-----------------------------------------------
change into common.h
MAX_INPUT_BUFFER 1024
to
MAX_INPUT_BUFFER 4096
----------------------------------------------------------------------
>Comment By: Ton Voon (tonvoon)
Date: 2008-02-29 10:52
Message:
Logged In: YES
user_id=664364
Originator: NO
Alex,
Can you see if this is still a problem with the snapshot?
Ton
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1595450&group_id=29880
More information about the Devel
mailing list