[WORKAROUND] RRDTool 1.3.2 Segmentation Fault

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

Moderators: Developers, Moderators

Post Reply
warnesj
Cacti User
Posts: 173
Joined: Sun May 29, 2005 7:34 pm

[WORKAROUND] RRDTool 1.3.2 Segmentation Fault

Post by warnesj »

Hey all, just thought I'd post something that I ran across today. I updated my rrdtool to 1.3.2-1.fc8 (yes I use packages) and then all of a sudden my graphs stopped appearing. I looked at the graph debug output from the Graph Management section and the RRDTool output was nothing. I went to a command prompt and ran the same RRDTool graph function and was presented a "Segmentation fault" error. :(

Anyway the problem had to do with the fonts. For now just to get around the problem I had to edit the ./lib/rrd.php file and put a // in front of the return "--font " . strtoupper($type) . ":" . $size . ":" . $font . RRD_NL; line so rrdtool wouldn't try to render fonts. So my line looks like this,

Code: Select all

//return "--font " . strtoupper($type) . ":" . $size . ":" . $font . RRD_NL;
I'm not sure yet what the problem is, but I thought I'd post my work around in case others are having this problem too.
dbunyard
Posts: 11
Joined: Wed Sep 03, 2008 9:48 am
Location: Mount Gilead, OH

Post by dbunyard »

Thanks! I was noticing the same problem on both of my Fedora 9 boxes after the update this morning, and your workaround works great! I don't have the time right now to look farther into this, but I plan to later this afternoon or evening to see if I can figure out what the actual problem is. Thanks again!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Sounds like the package maintainer removed the font support.

WTF.....
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
dbunyard
Posts: 11
Joined: Wed Sep 03, 2008 9:48 am
Location: Mount Gilead, OH

Post by dbunyard »

LOL......that really is a WTF.
Actually, the real WTF is that I (we) use packages.... :D
Dan
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

dbunyard wrote:LOL......that really is a WTF.
Actually, the real WTF is that I (we) use packages.... :D
Which is why it's better to compile your own stuff from source instead of relying upon a package that someone else may or may not have built correctly.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Users of rrdtool 1.3.* should, IMHO, closely listen at rrdtool-users mailing list. There have been some bug fixes, especially related to font handling, dramatic performance improvements and stuff in the very recent past.
Distro packages may be behind by some weeks
Reinhard
dbunyard
Posts: 11
Joined: Wed Sep 03, 2008 9:48 am
Location: Mount Gilead, OH

Post by dbunyard »

gandalf wrote:Users of rrdtool 1.3.* should, IMHO, closely listen at rrdtool-users mailing list. There have been some bug fixes, especially related to font handling, dramatic performance improvements and stuff in the very recent past.
Distro packages may be behind by some weeks
Reinhard
Indeed, I should have subscribed some time ago. I will closely watching it from now on.
Dan
atlanticd
Posts: 1
Joined: Sat Sep 13, 2008 9:35 am

Post by atlanticd »

Confirmed, this workaround works also on Fedora 9, x86_64.

Btw, before applying the workaround, if you run manually the rrdtool, there is entry in the syslog:

Code: Select all

Sep 13 16:24:10 hok kernel: rrdtool[1596]: segfault at 0 ip 3b180812d1 sp 7fff47071ef8 error 4 in libc-2.8.so[3b18000000+162000]
I'm not so experienced to figure out the problem after this message, but maybe it's useful for somebody who try to debug it.
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

I have that error with last rrdtool, compiled from source on CentOS 5.2
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Last rrdtool is now 1.3.3 as of today
Reinhard
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

And problem has gone !
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests