Segmentation fault (core dumped)

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
pier62350
Posts: 15
Joined: Thu Aug 02, 2012 9:12 am

Segmentation fault (core dumped)

Post by pier62350 »

Hi all, I've a problem with the Weathermap plugin.

When the poller try to create the map the last message is "About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01] "

I've increasing the memory_limit to 256M and restart httpd/php but the problem is not solved.

I've trying check.php and check-gd.php and the second one show me a problem.

check.php:

Code: Select all

----------------------------------------------------
Weathermap Pre-Install Checker

This script checks for some common problems with your PHP and server
environment that may stop Weathermap or the Editor from working.

NOTE: You should run this script as both a web page AND from the
command-line, as the environment can be different in each.

This is the PHP version that is responsible for
* creating maps from the Cacti poller
* the command-line weathermap tool

PHP Basics
----------
This is PHP Version 5.3.16 running on "Linux pdel0100
2.6.32-279.2.1.el6.x86_64 #1 SMP Fri Jul 20 01:55:29 UTC 2012 x86_64" with
a memory_limit of '256M'.

The php.ini file was /etc/php.ini
There were no additional ini files, according to PHP.

PHP Functions
-------------
Some parts of Weathermap need special support in your PHP
installation to work.

This PHP uses the system GD library, which MIGHT have alpha-blending bugs.
Check that you have at least GD 2.0.34 installed, if you see problems with
weathermap segfaulting.
You can test for this specific fault by running check-gdbug.php

The Console_Getopt PEAR module is available. That's good!

            imagepng   YES
imagecreatetruecolor   YES
  imagealphablending   YES
      imageSaveAlpha   YES
          preg_match   YES
  imagecreatefrompng   YES
 imagecreatefromjpeg   YES
  imagecreatefromgif   YES
           imagejpeg   YES
            imagegif   YES
  imagecopyresampled   YES
        imagettfbbox   YES
    memory_get_usage   YES

---------------------------------------------------------------------
OK! Your PHP and server environment *seems* to have support for ALL of the
Weathermap features. Make sure you have run this script BOTH as a web page
and from the CLI to be sure, however.
</table>
</body>
check-gdbug.php

Code: Select all

Some version of the GD graphics library have a bug in their handling of
Alpha channels. Unfortunately, Weathermap uses these to draw Nodes.

This program will test if your PHP installation is using a buggy GD
library.

If you are, you should either use PHP's built-in (aka 'bundled') GD
library, or update to GD Version 2.0.34 or newer. Weathermap REQUIRES
working Alpha support.

Let's see if you have the GD transparency bug...

If you see no more output, or a segfault, then you do, and you'll need to
upgrade.

If you get other errors, like 'undefined function', then run check.php to
make sure that your PHP installation is otherwise OK.

Here we go...

[b]PHP Notice:  ob_flush(): failed to flush buffer. No buffer to flush in /apps/cacti/plugins/weathermap/check-gdbug.php on line 30
Segmentation fault (core dumped)[/b]
The problem don't apear when I comment the following line:
imagefill($node_im, 0, 0, $nothing);



Can somebody help me to solve the problem?
I'm using cacti 0.8.8a with weathermap 0.97a on Centos 6.3 (x86_64), php 5.3.16, php-gd 5.3.16 ...
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Segmentation fault (core dumped)

Post by Howie »

What map file are you using? Have you tried using something simple like the weathermap.conf that comes with weathermap?

If that works, then it might still be a memory_limit issue.
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!)
pier62350
Posts: 15
Joined: Thu Aug 02, 2012 9:12 am

Re: Segmentation fault (core dumped)

Post by pier62350 »

Hello,

I'm trying with the "simple.conf" fils who is available with the weathermap plugin.
I've already increase my memory_limit to 256M and it did not resolve the problem, in phpinfo() local and master value for memory limite is right to 256M...

I've recompile libgd, php... and the problem is "Segmentation fault (core dumped)" when I run "check_gdbug.php"

I'm using php 5.3.16 & GD 2.0.33

Can somebody help me to find any solution to solve the problem?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Segmentation fault (core dumped)

Post by Howie »

pier62350 wrote:Hello,

I'm trying with the "simple.conf" fils who is available with the weathermap plugin.
I've already increase my memory_limit to 256M and it did not resolve the problem, in phpinfo() local and master value for memory limite is right to 256M...

I've recompile libgd, php... and the problem is "Segmentation fault (core dumped)" when I run "check_gdbug.php"

I'm using php 5.3.16 & GD 2.0.33

Can somebody help me to find any solution to solve the problem?
So when you run check-gdbug.php it says "update to GD Version 2.0.34 or newer" - did you try that?
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!)
pier62350
Posts: 15
Joined: Thu Aug 02, 2012 9:12 am

Re: Segmentation fault (core dumped)

Post by pier62350 »

I'm trying to install the version 2.0.34 but i don't find the option to use with cmake to specify the libpng, freetype2, fontconfig... path. (they are installed in /apps folder)

Can somebody send me a link to download 2.0.34 or 2.0.35 version?
pier62350
Posts: 15
Joined: Thu Aug 02, 2012 9:12 am

Re: Segmentation fault (core dumped)

Post by pier62350 »

I've find the 2.0.35 version in http://www.chipsnbytes.net/downloads/gd-2.0.35.tar.gz, it works fine now! :)
TY for your help
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests