[Nagiosplug-devel] Problems with check_procs and pst3 in Solaris 9
Anders Nordby
anders at fupp.net
Mon Oct 30 14:56:36 CET 2006
Hi,
If I build pst3 straight without anything special, it gives me this
error:
# ./plugins-root/pst3: /dev/ksyms is not a 32-bit kernel namelist
pst3: Failed to open kernel memory: Error 0
To get the pst3 program getting further, I had to compile it as a 64-bit
binary (and since I was doing that, I did that to the whole plugin
package):
# CFLAGS="-g -O2 -m64" STRIP="" ./configure --without-gnu-ld
# make
But the pst3 program crashes. When I try to run it manually through gdb
(a 64-bit version of gdb 6.0), I get:
# /root/gdb-6.0/gdb/gdb ./pst3
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "sparc-sun-solaris2.9"...
(gdb) run
Starting program:
/root/nagios-plugins-HEAD-200610300052/plugins-root/pst3
S UID PPID VSZ RSS %CPU COMMAND ARGS
S 0 0 1280 712 0.0 init /etc/init -
S 0 1 1816 1096 0.0 sac /usr/lib/saf/sac -t 300
S 25 1 4456 1272 0.0 clientmqueue
sendmail: Queue runner at 00:15:00 for /var/spool/clientmqueue
Program received signal SIGSEGV, Segmentation fault.
0xffffffff7f400648 in memcpy ()
from /usr/platform/SUNW,Sun-Fire-V240/lib/sparcv9/libc_psr.so.1
(gdb) bt
#0 0xffffffff7f400648 in memcpy ()
from /usr/platform/SUNW,Sun-Fire-V240/lib/sparcv9/libc_psr.so.1
#1 0xffffffff7f202268 in kvm_getcmd32 () from /usr/lib/64/libkvm.so.1
#2 0xffffffff7f2025a0 in kvm_getcmd () from /usr/lib/64/libkvm.so.1
#3 0x00000001000012bc in GetArgVectors (pid=1058288) at pst3.c:222
(gdb) quit
The program is running. Exit anyway? (y or n) y
I am using nagios-plugins-1.4.4.tar.gz and
nagios-plugins-HEAD-200610300052.tar.gz (the gdb run above is done with
the snapshot).
This problem does not exist in Solaris 8.
Also I suggest someone add hints about using --without-gnu-ld and adding
/usr/ccs/bin to PATH in Solaris, as nagios-plugins does not build easily
without it.
Let me know if anyone can figure out a fix before I do. Just want it
fixed.
Bye,
--
Anders.
More information about the Devel
mailing list