[Nagiosplug-devel] [ nagiosplug-Bugs-1595449 ] check_procs bus error, ... on Solaris 8, 9 & 10

SourceForge.net noreply at sourceforge.net
Mon Sep 24 21:19:52 CEST 2007


Bugs item #1595449, was opened at 2006-11-13 09:23
Message generated for change (Settings changed) made by psychotrahe
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1595449&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: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Alex Peeters (zxr750)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_procs bus error, ... on Solaris 8, 9 & 10

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: Matthias Eble (psychotrahe)
Date: 2007-07-14 23:31

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

Hi Alex,

is the bus error still there?

Matthias

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

Comment By: Thomas Guyot (dermoth)
Date: 2007-02-17 15:05

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

The patch can be found on bug #1630970. It is also fixed in the latest
release, 1.4.6

https://sourceforge.net/tracker/index.php?func=detail&aid=1630970&group_id=29880&atid=397597

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

Comment By: msB (msbenjamin12)
Date: 2007-02-16 13:41

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

Where is the original code, I need to fix this I get the wrong output on
Solaris 9.

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

Comment By: Thomas Guyot (dermoth)
Date: 2007-01-17 06:37

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

The wrong output bug should be fixed (1630970). I (or somebody else) will
have to look further for the bus error.

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

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




More information about the Devel mailing list