Spine 0.8.7 SVN segfault on Solaris 10

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
prune
Posts: 23
Joined: Sun Sep 11, 2005 9:51 am
Location: Paris, France
Contact:

Spine 0.8.7 SVN segfault on Solaris 10

Post by prune »

Hi,

I'm trying to have Spine running on Solaris 10 spart (T2000).

Even with the svn files I got the "warning" about libnetinet, as stated on another post. But this is not the problem.
I installed libtool, automake and autoconf. Compilation is done this way :

Code: Select all

autoconf
automake
aclocal
./configure --prefix=/opt/monitor/spine-0.8.7 --with-snmp=/usr/sfw
gmake
gmake install
Then I have a binary linked to :

Code: Select all

ldd  /opt/monitor/spine-0.8.7/bin/spine
        libnetsnmp.so.5 =>       /usr/sfw/lib/libnetsnmp.so.5
        libcrypto.so.0.9.7 =>    /usr/sfw/lib/libcrypto.so.0.9.7
        libkstat.so.1 =>         /lib/libkstat.so.1
        libz.so.1 =>     /usr/lib/libz.so.1
        libpthread.so.1 =>       /lib/libpthread.so.1
        libm.so.2 =>     /lib/libm.so.2
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libc.so.1 =>     /lib/libc.so.1
        libpkcs11.so.1 =>        /usr/lib/libpkcs11.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libmd5.so.1 =>   /lib/libmd5.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        libcryptoutil.so.1 =>    /usr/lib/libcryptoutil.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        /platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1
As you see, I'm using the default systems libs.

When I try to run spine by hand, I get a segfault error :

Code: Select all

 /opt/monitor/spine-0.8.7/bin/spine --conf=/opt/monitor/spine-0.8.7/etc/spine.conf -V DEBUG 1 1
SPINE: Using spine config file [/opt/monitor/spine-0.8.7/etc/spine.conf]
SPINE: Version 0.8.7a starting
11/22/2007 04:31:45 PM - SPINE: Poller[0] FATAL: Spine Encountered a Segmentation Fault (Spine thread)

If I change options I get  : 
 /opt/monitor/spine-0.8.7/bin/spine --conf=/opt/monitor/spine-0.8.7/etc/spine.conf -V DEBUG -S 
SPINE: Using spine config file [/opt/monitor/spine-0.8.7/etc/spine.conf]
SPINE: Version 0.8.7a starting
Host[6] DS[196] WARNING: Result from SNMP not valid. Partial Result: ...

Host[6] DS[202] WARNING: Result from SNMP not valid. Partial Result: ...

Host[6] DS[203] WARNING: Result from SNMP not valid. Partial Result: ...
...

ERROR: Spine Timed Out While Processing Hosts Internal

SPINE: Time: 303.0055 s, Threads: 32, Hosts: 56

Same problem if started from the poller.
Have no clue why.

Maybe there is a special debug feature I could use ? I can truss the process but I would like to limit the number of hosts i'm polling...

Thanks.
--
Prune
(Dual G5/4go/RAID)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you edit spine.c and comment out the installation of the signal handlers. Then run the first way, where you get the segmentation fault by hand using GDB. Post the details of the segmentation fault.

Thanks,

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
prune
Posts: 23
Joined: Sun Sep 11, 2005 9:51 am
Location: Paris, France
Contact:

Post by prune »

Hi,

thanks for this procedure, but I don't know what to comment to disable the signal handler.

Can you be a little more precise ?

What can I do to also see which checks are making the poller to wait much more than 300 sec ?

Thanks
--
Prune
(Dual G5/4go/RAID)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

put // in front of lines 153 and 630. Save, recompile, then "gdb spine" followed by a "run". You should get your sementation fault indicating the line in the code that is the violator.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
nun0pt
Posts: 3
Joined: Mon Jan 14, 2008 2:06 pm

Post by nun0pt »

Hello guys,

any development on this issue? I've compiled Spine 0.8.7a in a Sun T2000 and seems i have the same problem.

If you managed to figure out the problem, please post it.

Best Regards.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests