[SOLVED] Segmentation fault with 0.9

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
moonman
Cacti User
Posts: 101
Joined: Sat Sep 06, 2003 10:25 am

[SOLVED] Segmentation fault with 0.9

Post by moonman »

Hi

I have a problem with 0.9 on debian with PHP 5.2.0-8+etch1
I got Segmentation fault from weathermap but the same configuration is working on 0.82
I try it from the web and by running ./weathermap from cli
I will send you all the debug and configuration in private message

Thanks
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Segmentation fault with 0.9

Post by Howie »

moonman wrote:Hi

I have a problem with 0.9 on debian with PHP 5.2.0-8+etch1
I got Segmentation fault from weathermap but the same configuration is working on 0.82
I try it from the web and by running ./weathermap from cli
I will send you all the debug and configuration in private message

Thanks
I've reproduced this (I think) in Ubuntu Edgy Eft (based on Debian). I think it's now fixed. It's actually a one-liner - search Weathermap.class.php for the one occurence of ImageAlphaBlending, and remove the '#' comment marker from the front of that line. Why that stops php crashing, and why only on Debian, I have no idea.

I will probably try and get 0.9pre2 out today, as that's the last of the bugs I know about.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Segmentation fault with 0.9

Post by Howie »

Howie wrote:I will probably try and get 0.9pre2 out today, as that's the last of the bugs I know about.
Or not. That introduces a rendering issue with some GD and truetype fonts now.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

OK. It's a GD bug. It's documented here: http://bugs.libgd.org/4, and the reason it affects Debian is that Debian links to the system GD (version 2.0.33) not the built-in PHP one (2.0.28ish). For whatever reason, the problems aren't present in the PHP GD library, which has a different alpha-blending implementation as far as I can see from the docs.

My Windows and FreeBSD systems both use the built-in GD.

The bugs are apparently fixed in GD 2.0.34, which has been released and is in Debian unstable, if I understand Debian's release engineering website correctly.

In other words... SEP
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
moonman
Cacti User
Posts: 101
Joined: Sat Sep 06, 2003 10:25 am

It work

Post by moonman »

Howie,

I upgrade to libgd2-xpm from unstable and now it work

Thanks for your help
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests