cactid segfault (FC3, MySQL 4.1.8)

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

Moderators: Developers, Moderators

Post Reply
crimi

cactid segfault (FC3, MySQL 4.1.8)

Post by crimi »

hi,

i've got a problem with cactid on my linux servers. it keeps segfaulting. below the output (gdb / strace):

CACTID: Version 0.8.7 starting
Detaching after fork from child process 21851.
[New Thread -1479668816 (LWP 21853)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1479668816 (LWP 21853)]
0xa7f28e36 in mysql_num_rows () from /usr/lib/libmysqlclient.so.14

--
....
clone(child_stack=0xa7ce04c8, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID|CLONE_DETACHED, parent_tidptr=0xa7ce0bf8, {entry_number:6, base_addr:0xa7ce0bb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xa7ce0bf8) = 22130
nanosleep({0, 100000000}, 0) = ? ERESTART_RESTARTBLOCK (To be restarted)
+++ killed by SIGSEGV +++

---

the problem is related to the mysql functions. both mysql_num_rows and mysql_store_result result in a segfault.

the mysql libraries arent the problem, every other application that uses them operates without any problems.

is there a solution for this?

regards,

Tim Westervoorde
Guest

Post by Guest »

figured it out. the source included in the FC3 source rpm is broken. i've downloaded the source from the site (same version), replaced it and rebuilded the cactid rpm. now it works fine.
jailsonjan
Posts: 2
Joined: Thu Dec 16, 2004 12:14 pm
Location: Porto Alegre - Brasil

My fast solution for the segmentation fault in Fedora Core 2

Post by jailsonjan »

Hi,
My server Fedora Core 2 presented an error similar to its with CACTID (segmentation fault) after the compilation.
I made some configurations and none gave certain.
My fast solution to compile in a server Debian machine to see if functioned - it functioned.
A make a copy of "cactid" (/usr/local/cactid/bin/cactid - in Debian) for the Fedora Core 2. In the directory "/usr/lib" in Fedora i make a symbolic link to "/lib/libcrypto.so.0.9.7" (#cd /usr/lib #ln -s /lib/libcrypto.so.0.9.7a libcrypto.so.0.9.7 ).
I run the cactid in the directory "/usr/local/cactid/bin/" for test the program.
My servers are running ok.
Good luck, for all.
Jailsonjan :lol:
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I will get this one to the author of the RPM ASAP. It's the wrong version of CACTID.
CACTID: Version 0.8.7 starting
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?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Which Cactid RPM are you downloading that is causing the problems? I didn't even see any Fedora Core 3 RPM's for Cactid on the site. Perhaps it is time to build some...

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests