Piwik 1.3: archive.sh: line 73: 7761 Segmentation fault $CMD

Your construction ‘cli’ somehow breaks my piwik web interface. So i use it without slashes. And… It seems to be working!
Great thanks!

ps: sorry, that’s reply to post

Fix is working for me as well, thanks for posting :slight_smile:

works for me! … thx.

Hi everybody,
thanks a lot for the tip ! It helped me so much, with everything up to date on debian, the problem occured.

I just changed the tip to be able to use it with php-fpm/fastcgi because php_sapi_name() always returns php-fcgi
– Still on top of index.php –


if ((isset($_SERVER['_'])) && (preg_match('/archive\.sh/', $_SERVER['_']) == 1)) {
        gc_disable();
}

I think there is several ways to do it, I chose this one…
Hope it will help fresh installs.

EDIT : to identify better the problem I updated system/php to PHP 5.5.7 (the last one on a 2nd Fedora server I have) and the problem disappeared :slight_smile: I have 2 servers : the new one on Debian and the old with an old Fedora. Finally, the last Fedora, on this point, is more stable …

@florent.lartet – I am curious, what version of PHP did you use before upgrading? was it less than 5.3?

because in Piwik 2.0 we removed this code that calls gc_disable() and I hope your bug was on a old version

I had (and still have if I remove the gc_disabel call) the bug on my current version which is

  • Piwik 2.0.2 from last week
  • Debian 7 up to date

||/ Nom                     Version          Architecture     Description
+++-=======================-================-================-===================================================
ii  mysql-server            5.5.33+dfsg-0+wh all              MySQL database server (metapackage depending on the
un  nginx                   <aucun>                           (aucune description n'est disponible)
ii  php-apc                 3.1.13-1         amd64            APC (Alternative PHP Cache) module for PHP 5
ii  php5                    5.4.4-14+deb7u7  all              server-side, HTML-embedded scripting language (meta
ii  php5-cgi                5.4.4-14+deb7u7  amd64            server-side, HTML-embedded scripting language (CGI
ii  php5-fpm                5.4.4-14+deb7u7  amd64            server-side, HTML-embedded scripting language (FPM-

nginx is version: nginx/1.2.1
It’s not working with APC disabled.
The crash happens on our biggest “idsite” 3’000’000 / year
Don’t hesitate if you want more information.

Thanks for the details! I created a ticket at Segmentation fault in archiving on latest stable php · Issue #4507 · matomo-org/matomo · GitHub