[Nagiosplug-devel] [ nagiosplug-Patches-764745 ] check_procs SIGSEGV fix for some Solaris systems w/ zombies
SourceForge.net
noreply at sourceforge.net
Wed Jul 2 10:23:04 CEST 2003
Patches item #764745, was opened at 2003-07-02 12:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=764745&group_id=29880
Category: Bugfix
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexander Matey (amatey)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_procs SIGSEGV fix for some Solaris systems w/ zombies
Initial Comment:
check_procs (current CVS rev 1.5) dies with
segmentation fault on _some_ of my Solaris systems. I
was seeing it on both Solaris 7 and 8 with different
patchlevels.
Running check_procs under gdb revealed that in all
cases it died on check_procs.c:211 because asprintf()
call on previous line returned procargs == NULL. The
process entry in ps output that caused this was always
a zombie process with input_buffer + pos pointing to
0x0 instead of '\n' which the code assumed to be there.
Attached patch corrects this behavior by not making
this assumption. This may help other OSes besides Solaris.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=764745&group_id=29880
More information about the Devel
mailing list