Package: cacti
Version: 0.8.6h-3
Severity: important
Cacti+php has been segfaulting for me for quite a while, probably over a
month. This shows up as follows when you access the index page:
[Mon Jul 17 18:58:13 2006] [notice] Apache/2.0.55 (Debian) PHP/4.4.2-1.1
mod_ssl/2.0.55 OpenSSL/0.9.8b mod_perl/2.0.2 Perl/v5.8.8 configured --
resuming normal operations
[Mon Jul 17 18:58:42 2006] [notice] child pid 876 exit signal
Segmentation fault (11)
I've tried apache2 as well as apache1 as one bug report against php
suggested that this would help, but at least in my case I get the same
error.
The poller also fails:
/usr/share/cacti/site/poller.php
PHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{]
application/x-awk invalid in Unknown on line 0
Segmentation fault
For some reason I couldn't catch this crash in GDB, however I was able
to create a coredump - php4 seems compiled without debug information
(reasonably so) so the stack isn't as useful as it could be, but fairly
clearly suggests infinite recursion leading to blowing the stack:
-snip identical stack frames-
#2921 0x081a413c in execute ()
#2922 0x081a413c in execute ()
#2923 0x081a413c in execute ()
#2924 0x081a413c in execute ()
#2925 0x081a413c in execute ()
#2926 0x081a413c in execute ()
#2927 0x081a413c in execute ()
#2928 0x081a413c in execute ()
#2929 0x081a413c in execute ()
#2930 0x081a5629 in execute ()
#2931 0x081a5629 in execute ()
#2932 0x0818f156 in zend_execute_scripts ()
#2933 0x0815da3e in php_execute_script ()
#2934 0x081b9de7 in main ()
Stracing the poller it seems to get stuck in an infinite loop querying
the database "select value from settings "... to which mysql replies
"No database selected", before it segfaults (presumably as a result of
the infinite recursion seen above).
Let me know if there's any more information I can provide to assist with
debugging.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Versions of packages cacti depends on:
ii apache 1.3.34-2 versatile, high-performance HTTP s
ii apache2-mpm-prefork [apache2 2.0.55-4 traditional model for Apache2
ii dbconfig-common 1.8.17 common framework for packaging dat
ii debconf [debconf-2.0] 1.5.2 Debian configuration management sy
ii libapache2-mod-php4 4:4.4.2-1.1 server-side, HTML-embedded scripti
ii libphp-adodb 4.72-0.1 The 'adodb' database abstraction l
ii logrotate 3.7.1-3 Log rotation utility
ii mysql-client-5.0 [virtual-my 5.0.22-3 mysql database client binaries
ii php4 4:4.4.2-1.1 server-side, HTML-embedded scripti
ii php4-cli 4:4.4.2-1.1 command-line interpreter for the p
ii php4-mysql 4:4.4.2-1.1 MySQL module for php4
ii php4-snmp 4:4.4.2-1.1 SNMP module for php4
ii rrdtool 1.2.11-0.6 Time-series data storage and displ
ii snmp 5.2.2-4 NET SNMP (Simple Network Managemen
ii ucf 2.0012 Update Configuration File: preserv
Versions of packages cacti recommends:
ii iputils-ping 3:20020927-3 Tools to test the reachability of
ii mysql-server-5.0 [mysql-ser 5.0.22-3 mysql database server binaries
-- debconf information:
* cacti/username: cacti
cacti/db/app-user: cacti
cacti/mysql/admin-user: root
* cacti/mysql_server: localhost
* cacti/webserver: All
cacti/mysql/method: unix socket
cacti/remote/host:
cacti/upgrade-error: abort
cacti/import-oldsettings:
cacti/dbconfig-upgrade: true
cacti/remote/newhost:
cacti/purge: false
cacti/upgrade_warning:
cacti/database-type: mysql
* cacti/database: cacti
cacti/remove-error: abort
cacti/db/dbname:
cacti/mismatch:
cacti/upgrade-backup: true
cacti/install-error: abort
cacti/internal/reconfiguring: false
cacti/save_rootpw: true
cacti/root_mysql: root
cacti/passwords-do-not-match:
* cacti/no_automagic:
cacti/dbconfig-remove: true
* cacti/dbconfig-install: false
cacti/purge_db: true
cacti/performing_upgrade: true
cacti/remote/port:
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]