Cacti & FreeBSD 6.x
Moderators: Developers, Moderators
Cacti & FreeBSD 6.x
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
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
Some more ..
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
(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
-
- Posts: 3
- Joined: Thu May 18, 2006 2:58 pm
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)
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)
-
- Posts: 37
- Joined: Tue Apr 11, 2006 11:10 am
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Can you attach the core file to this thread. Thanks!!
TheWitness
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?
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?
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.
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.
Core you said Core ?
Hello,
The file is quite too big and phpBB doesn't like it
You can get it here http://star.noc.ip-man.net/cactid.core
Cheers,
Nico
The file is quite too big and phpBB doesn't like it
You can get it here http://star.noc.ip-man.net/cactid.core
Cheers,
Nico
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
Who is online
Users browsing this forum: No registered users and 3 guests