Spine Encountered a Segmentation Fault (Spine parent)

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
radarruan
Posts: 2
Joined: Tue Aug 11, 2009 10:12 am

Spine Encountered a Segmentation Fault (Spine parent)

Post by radarruan »

today I have installed cacti 0.8.7.e and cacti-spine-0.8.7e.
Spine has compiled fine but seg faults when runing.Here is the output

Code: Select all

[root@localhost bin]# ./spine 
SPINE: Using spine config file [../etc/spine.conf]
SPINE: Version 0.8.7e starting
08/11/2009 10:43:13 PM - SPINE: Poller[0] FATAL: Spine Encountered a Segmentation Fault (Spine parent)
when I run

Code: Select all

gdb ./spine
         run
Here is the output

[root@localhost bin]# gdb ./spine
GNU gdb Red Hat Linux (6.3.0.0-1.132.EL4rh)
Copyright 2004 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 "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/local/spine/bin/spine
[Thread debugging using libthread_db enabled]
[New Thread -1209071936 (LWP 351)]
SPINE: Using spine config file [../etc/spine.conf]
SPINE: Version 0.8.7e starting

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209071936 (LWP 351)]
0x00bdd882 in main_arena () from /lib/tls/libc.so.6

why?who can help me?[/list]
radarruan
Posts: 2
Joined: Tue Aug 11, 2009 10:12 am

Post by radarruan »

up
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please do the same but in DEBUG level:

Code: Select all

gdb spine
run -V 5
Post the output. Also, set a break point before you run:

Code: Select all

b *0x<address>
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?
packetslave
Posts: 1
Joined: Tue Jun 08, 2010 4:47 pm

Post by packetslave »

CentOS 5.5 32-bit, all patches as of today. Spine compiled from source from the 0.8.7 branch in SVN.

Code: Select all

[XXX@opsview 0.8.7]# gdb spine
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5_5.1)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/XXX/spine/branches/0.8.7/spine...done.
(gdb) run -V 5
Starting program: /home/XXX/spine/branches/0.8.7/spine -V 5
[Thread debugging using libthread_db enabled]
SPINE: Using spine config file [spine.conf]
[New Thread 0xb7ff3b90 (LWP 13682)]
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The path_php_server variable is /usr/local/cacti-0.8.7f/script_server.php
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The path_cactilog variable is /usr/local/cacti-0.8.7f/log/cacti.log
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The log_destination variable is 1 (FILE)
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The path_php variable is /usr/bin/php
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The availability_method variable is 2
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The ping_recovery_count variable is 3
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The ping_failure_count variable is 2
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The ping_method variable is 2
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The ping_retries variable is 1
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The ping_timeout variable is 400
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The snmp_retries variable is 3
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The log_perror variable is 1
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The log_pwarn variable is 0
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The boost_redirect variable is 0
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The log_pstats variable is 0
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The threads variable is 4
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The polling interval is 60 seconds
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The number of concurrent processes is 1
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The script timeout is 25
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The number of php script servers to run is 2
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: StartHost='-1', EndHost='-1', TotalPHPScripts='1'
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The PHP Script Server is Required
06/08/2010 05:44:55 PM - SPINE: Poller[0] DEBUG: The Maximum SNMP OID Get Size is 10
warning: .dynamic section for "/lib/libgcc_s.so.1" is not at the expected address
warning: difference appears to be caused by prelink, adjusting expectations

Program received signal SIGSEGV, Segmentation fault.
0x009869c4 in free () from /lib/libc.so.6
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Make sure your MySQL library and header file versions match. It's crashing attempting to free a pointer, or so it would appear, this should not happen.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests