Cacti & FreeBSD 6.x

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

Moderators: Developers, Moderators

Post Reply
m00h
Posts: 9
Joined: Thu May 18, 2006 12:09 pm

Cacti & FreeBSD 6.x

Post by m00h »

Hello,

Since a few days i'm using Cacti on many FreeBSD 6.x host. Since i've migrated to the 6.x branch i got weird problems with Cactid.

When lauching Cactid i've got :

Segmentation fault: 11 (core dumped)

If i look at the Core file itself:

root@noc0.gva16.oobm.ip-man.net(~)# gdb cactid cactid.sexfault
GNU gdb 6.1.1 [FreeBSD]
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-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `cactid'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libnetsnmp.so.9...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libnetsnmp.so.9
Reading symbols from /lib/libcrypto.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.14...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/mysql/libmysqlclient.so.14
Reading symbols from /lib/libz.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/lib/libpthread.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpthread.so.2
Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libcrypt.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x282864ab in pthread_testcancel () from /usr/lib/libpthread.so.2
[New Thread 0x8061800 (runnable)]
[New Thread 0x8061400 (LWP 100151)]
[New Thread 0x8061000 (sleeping)]
[New LWP 100245]
(gdb)

Then :

(gdb) info threads
* 4 LWP 100245 0x282864ab in pthread_testcancel () from /usr/lib/libpthread.so.2
3 Thread 0x8061000 (sleeping) 0x2827ef0f in pthread_mutexattr_init () from /usr/lib/libpthread.so.2
2 Thread 0x8061400 (LWP 100151) 0x2828646b in pthread_testcancel () from /usr/lib/libpthread.so.2
1 Thread 0x8061800 (runnable) 0x32312032 in ?? ()

Is there any change in the lib pthread ? It seems that Cactid Core dump when trying to create a new thread ? Is there someone using FreeBSD 6.x who can confirm this ?

I'm running:

cacti-0.8.6h_42
cactid-0.8.6.g

Thanks,

Nico
m00h
Posts: 9
Joined: Thu May 18, 2006 12:09 pm

Some more ..

Post by m00h »

Here is some more debugging:

(gdb) r
Starting program: /usr/local/bin/cactid
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...warning: Unable to get location for thread creation breakpoint: generic error
[New LWP 100270]
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...CACTID: Using cactid config file [/usr/local/etc/cactid.conf]
[New Thread 0x8061000 (LWP 100270)]

<snip>

CACTID: Host[2] DS[47] SNMP: v2: lo0.mcr01.gva02.oobm.ip-man.net, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.5052, value: 0
[New Thread 0x8061800 (LWP 100056)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x8061800 (LWP 100056)]
0x33312032 in ?? ()

Hope it will help.

Cu,

nico
nulldevice
Posts: 3
Joined: Thu May 18, 2006 2:58 pm

Post by nulldevice »

sounds familar. also running freebsd 6.0

area51# gdb cactid cactid.core
GNU gdb 6.1.1 [FreeBSD]
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-marcel-freebsd"...(no debugging symbols found). ..
Core was generated by `cactid'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libnetsnmp.so.9...(no debugging symbols foun d)...done.
Loaded symbols for /usr/local/lib/libnetsnmp.so.9
Reading symbols from /lib/libcrypto.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.15...(no debugging s ymbols found)...done.
Loaded symbols for /usr/local/lib/mysql/libmysqlclient.so.15
Reading symbols from /lib/libz.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/lib/libpthread.so.2...(no debugging symbols found)...d one.
Loaded symbols for /usr/lib/libpthread.so.2
Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libcrypt.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x282892b7 in pthread_testcancel () from /usr/lib/libpthread.so.2
[New Thread 0x8061e00 (runnable)]
[New Thread 0x8061200 (LWP 100172)]
[New Thread 0x8061000 (sleeping)]
[New LWP 100173]
(gdb)
tomasperez
Posts: 37
Joined: Tue Apr 11, 2006 11:10 am

Post by tomasperez »

I had the same problem. Segfault on cactid on 6.1
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Is this a release version or the SVN version? If not the SVN, can all of you test in that environment? Can I have access to any of your systems to nail down the location of this 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?
m00h
Posts: 9
Joined: Thu May 18, 2006 12:09 pm

Version

Post by m00h »

Hello,

For me it's the version in the ports (Because of production). I can try any versions if needed. For access it may be possible to do something if it's for debugging purpose.

Cheers,

Nico
m00h
Posts: 9
Joined: Thu May 18, 2006 12:09 pm

Info

Post by m00h »

I'm getting the SVN version and try to see if something goes wrong or not. It will give an idea on whats going on i believe ..

Cheers,

Nico
m00h
Posts: 9
Joined: Thu May 18, 2006 12:09 pm

d0h

Post by m00h »

Same thing with the SVN version ... i've tried the 3 versions and go some troubles .. Two are doing core dump and the other one does not compile.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you attach the core file to this thread. 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?
DenVault
Posts: 2
Joined: Thu Jun 01, 2006 7:04 am

Post by DenVault »

Hello everyone. I came to this forum `cause I have some problems with graphs.
But may be I can suggest something.
I have FreeBSD 6.0 amd64. Today I`ve successfully install
cacti-0.8.6h_42 &&
cactid-0.8.6.g
Everything works fine. I just wonder how you installed php. Have you installed php4 and php4-extensions from /usr/ports/lang? And what are the configure lines (options) to those packages you applied? I have a thought that the Segmentation fault error may be caused by wrong set of extensions or something.

Best regards.
m00h
Posts: 9
Joined: Thu May 18, 2006 12:09 pm

Core you said Core ?

Post by m00h »

Hello,

The file is quite too big and phpBB doesn't like it :P
You can get it here http://star.noc.ip-man.net/cactid.core

Cheers,

Nico
m00h
Posts: 9
Joined: Thu May 18, 2006 12:09 pm

PHP

Post by m00h »

You can install PHP Extensions one by one (if you know the extension name) of with the port php4-extensions (/usr/ports/lang/php4-extensions/).

Cheers,

Nico
m00h
Posts: 9
Joined: Thu May 18, 2006 12:09 pm

News ?

Post by m00h »

Hello,

Some news regarding this problem ?

Cheers,

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

Post by TheWitness »

Please post your cactid binary to the same web site and provide a link. I now have a FBSD VM setup to interpret the core file.

Regards,

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