a belated follow-up:
On Wed, 2006-07-19 at 08:09 +0100, Miah Gregory wrote:
> 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:
>
> 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
i've tried to replicate this without success. could you first try
upgrading to the latest and greatest of everything (php/mysql/etc)
on your system and verify that the problem still occurs?
> 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:
yeah, that seems likely.
> 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).
what's in your cactid.conf?
other configuration files that might be of interest:
/etc/cacti/debian.php
/etc/dbconfig-common/cacti.conf
sean
signature.asc
Description: This is a digitally signed message part

