++ Some graphs not showing/Segmentation Fault ++

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

Moderators: Developers, Moderators

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

Post by TheWitness »

It's some form of memory leak. You should run the following then, from the source code directory and after the binary is made:

Code: Select all

gdb ./spine
run -R -V 5
After it segfaults, obtain the IP and then

Code: Select all

b *0x<instruction_pointer_address>
That should give you a line of the code where the program faulted. I'll need that.

Also, give me a "uname -a" and let me know the distribution.

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?
maiden
Posts: 22
Joined: Wed Feb 24, 2010 11:36 pm
Location: Thailand

Post by maiden »

TheWitness wrote:It's some form of memory leak. You should run the following then, from the source code directory and after the binary is made:

Code: Select all

gdb ./spine
run -R -V 5
After it segfaults, obtain the IP and then

Code: Select all

b *0x<instruction_pointer_address>
That should give you a line of the code where the program faulted. I'll need that.

Also, give me a "uname -a" and let me know the distribution.

TheWitness
Thank for your suggestion, the result as below:

[root@dragon ~]# uname -a
Linux dragon.localdomain 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:47:32 EDT 2009 i686 i686 i386 GNU/Linux

Thank you.
Attachments
gdb-spine.txt
(655.08 KiB) Downloaded 132 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you do the same and give me the "backtrace"? Also, see if RH has updates to net-snmp. Did you install from an rpm?

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?
maiden
Posts: 22
Joined: Wed Feb 24, 2010 11:36 pm
Location: Thailand

Post by maiden »

TheWitness wrote:Can you do the same and give me the "backtrace"? Also, see if RH has updates to net-snmp. Did you install from an rpm?

TheWitness
Hi TheWitness

(gdb) backtrace
#0 0x0014dfeb in printU64 () from /usr/lib/libnetsnmp.so.10
#1 0x0011ab18 in sprint_realloc_counter64 () from /usr/lib/libnetsnmp.so.10
#2 0x0011b7e8 in sprint_realloc_value () from /usr/lib/libnetsnmp.so.10
#3 0x0804d47c in snmp_snprint_value (obuf=0xb5d289fc "", buf_len=1024, objid=0xb5d0ce00, objidlen=12, variable=0xb5d0cde8)
at snmp.c:491
#4 0x0804d6cf in snmp_get_multi (current_host=0xb5d03d28, snmp_oids=0xb5d26fe8, num_oids=6) at snmp.c:562
#5 0x0804fbf5 in poll_host (host_id=192) at poller.c:1009
#6 0x0805207d in child (arg=0x968a7e0) at poller.c:51
#7 0x00d80762 in start_thread () from /lib/i686/nosegneg/libpthread.so.0
#8 0x00cd4d7e in clone () from /lib/i686/nosegneg/libc.so.6

----------------------------------------------------------------------------------
When I try command "./spine -C /etc/spine.conf -R -V=5 --poller=1"
I can not find segmentation fault.
If I try "./spine -C /etc/spine.conf -R -V=5 --poller=0"
I can find segmentation fault.
That is cause of the problem of segmentation fault or not ?


Thank you.
Attachments
spine--poller-1.txt
./spine -C /etc/spine.conf -R -V=5 --poller=1
(267.37 KiB) Downloaded 284 times
spine--poller-0.txt
./spine -C /etc/spine.conf -R -V=5 --poller=0
(412.31 KiB) Downloaded 86 times
maiden
Posts: 22
Joined: Wed Feb 24, 2010 11:36 pm
Location: Thailand

Post by maiden »

Thank you for your support, I already fix the problem.

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

Post by TheWitness »

So, what was the problem?

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 0 guests