Error in cronjob (segmentation fault)


(Danya ISS) #1

Hi,

I just got the following error e-mail from my cronjob:

Subject:
Cron maxstats@server01 /home/maxstats/public_html/piwik/misc/cron/archive.sh > /dev/null
Message:
/home/maxstats/public_html/piwik/misc/cron/archive.sh: line 71: 25280 Segmentation fault $CMD

What sort of error is it, and is it a serious error? Can I fix it or is it an error from Piwik itself?

Thanks in froward!


(vipsoft) #2

If the PHP runtime seg faults, then it’s a PHP bug. You might be able to fix it by rebuilding PHP using the latest stable version from php.net.

In some cases, it could be a buggy libc. Edit misc/cron/archive.sh, changing:

        $CMD

to:

        MALLOC_CHECK_=1 $CMD

If that doesn’t work, try repairing your MySQL database.