Package: mytop
Version: 1.6-6
Severity: grave

--- Please enter the report below this line. ---


--- System information. ---
Architecture: amd64
Kernel: Linux 2.6.32-5-amd64

Debian Release: 6.0.1
500 testing deb.opera.com
500 stable security.debian.org
500 stable ftp.de.debian.org
500 stable dl.google.com
500 squeeze www.lamaresh.net
200 squeeze-backports backports.debian.org
1 testing ftp.de.debian.org

--- Package information. ---
Depends (Version) | Installed
=========================================-+-==============
perl (>= 5.6.0-16) | 5.10.1-17
libdbi-perl (>= 1.13) | 1.612-1
libdbd-mysql-perl (>= 1.0) | 4.016-1
libterm-readkey-perl (>= 2.10) | 2.30-4
libconfig-inifiles-perl | 2.52-1


Package's Recommends field is empty.

Suggests (Version) | Installed
=================================-+-===========
libtime-hires-perl |



Hi,

because of the usage of Config::IniFiles you can't use all parameters
which can be set in my.cnf.

If you e.g. use "skip-external-locking" the CPAN Config::IniFiles
can't open the file because it is a mal-formed ini-file because
ini-files use the format "parameter = value".

You can reproduce it by setting this parameter which is default in
"/etc/mysql/my.cnf".
Then call mytop.

Also you should add an error-handling like:

        if ( not defined $cfgini )
        {
                foreach my $error (@Config::IniFiles::errors)
                {
                        print $error;
                        print "\n";
                }
                exit;
        }

Otherwise you just get a message that the method Parameters can't be
called for undefined objects.


-- 
  Andreas Ulm
  Systemadministration


Unister GmbH
Barfußgässchen 11 | 04109 Leipzig

Telefon: +49 (0)341 49288 4535

  andreas....@unister-gmbh.de

www.unister.de

Vertretungsberechtigter Geschäftsführer: Thomas Wagner

Amtsgericht Leipzig, HRB: 19056




Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to