LP #917770: pt-config-diff Use of uninitialized value in substitution (s///) at line 1996

Description

**Reported in Launchpad by Daniel Nichter last update 14-01-2013 22:16:40

$ pt-config-diff --version
pt-config-diff 2.0.1

Below is my.cnf file on this server:

[mysqld]

server-id = 98765

pid-file = /var/lib/mysql/mysql.pid
socket = /var/lib/mysql/mysql.sock
port = 3306

datadir = /var/lib/mysql/
innodb_data_home_dir = /var/lib/mysql/

log-error = mysqld.err
log-slow-queries = slave-slow.log

  1. Replication
    log_bin = mysql-bin
    relay-log = relay-bin
    expire-logs-days = 14
    log-slave-updates
    skip-slave-start
    old_passwords=1

tmpdir = /dev/shm

  1. InnoDB
    innodb_log_file_size = 32M
    innodb_buffer_pool_size = 256M

read-only

max_allowed_packet = 16M
table_cache = 4096
default-character-set = utf8
max-connections = 200
ft_min_word_len = 3
net_read_timeout = 7200
net_write_timeout = 7200

key_buffer_size = 4086M
query_cache_size = 0
query_cache_type = 0
thread_cache_size = 4
group_concat_max_len = 8192
long-query-time = 2000000
skip-name-resolve

innodb_flush_method = O_DIRECT
innodb_log_buffer_size = 4M
innodb_flush_log_at_trx_commit = 2
innodb_file_per_table = 1
innodb_open_files = 256

[mysql.server]
user=mysql
#basedir=/var/lib

[mysqld_safe]
log-error = mysqld.err
pid-file=/var/run/mysqld/mysqld.pid

Environment

None

Smart Checklist

Activity

Show:

lpjirasync January 24, 2018 at 3:05 PM

**Comment from Launchpad by: Daniel Nichter on: 30-11-2012 23:04:47

Brian has reproduced this. The branch/fix is in progress.

lpjirasync January 24, 2018 at 3:05 PM

**Comment from Launchpad by: Brian Lee on: 27-11-2012 00:20:40

On a side note, if I use pt-config-diff to compare two different servers there are no errors. It is only when I compare against a file.

e.g:
Works:
pt-config-diff h=host1,u=user1 h=host2,u=user2 --ask-pass

Errors out:
pt-config-diff h=host1,u=user1 /etc/my.cnf --ask-pass
pt-config-diff /etc/my.cnf /etc/my-2.cnf

lpjirasync January 24, 2018 at 3:05 PM

**Comment from Launchpad by: Daniel Nichter on: 22-11-2012 19:05:38

We'll try again to reproduce it.

lpjirasync January 24, 2018 at 3:05 PM

**Comment from Launchpad by: Brian Lee on: 15-11-2012 20:33:26

I upgraded to 2.1.5 and I'm still getting this error:
Use of uninitialized value $var in substitution (s///) at /usr/bin/pt-config-diff line 2217.

  1. uname -a
    Linux dbc2-q1.local-paymo.net 2.6.32-220.17.1.el6.x86_64 #1 SMP Wed May 16 00:01:37 BST 2012 x86_64 x86_64 x86_64 GNU/Linux

  1. pt-config-diff --version
    pt-config-diff 2.1.5

MySQL version:

mysql> select @@version;
------------------

@@version

------------------

5.5.25a-27.1-log

------------------
1 row in set (0.00 sec)

Tail of ptdebug output:

  1. MySQLConfig:2226 23714 Var: innodb_data_file_path val: ibdata1:10M:autoextend

  2. MySQLConfig:2226 23714 Var: innodb_file_format val: Barracuda

  3. MySQLConfig:2226 23714 Var: innodb_additional_mem_pool_size val: 20M

  4. MySQLConfig:2226 23714 Var: innodb_lock_wait_timeout val: 120

  5. MySQLConfig:2226 23714 Var: innodb_ibuf_active_contract val: 1

  6. MySQLConfig:2226 23714 Var: innodb_adaptive_flushing val: false

  7. MySQLConfig:2226 23714 Var: innodb_read_io_threads val: 4

  8. MySQLConfig:2226 23714 Var: innodb_write_io_threads val: 4

  9. MySQLConfig:2226 23714 Var: innodb_thread_concurrency val: 0

  10. MySQLConfig:2226 23714 Var: innodb_thread_sleep_delay val: 0

  11. MySQLConfig:2226 23714 Var: innodb_log_buffer_size val: 16M

  12. MySQLConfig:2226 23714 Var: innodb_max_dirty_pages_pct val: 2

  13. MySQLConfig:2226 23714 Var: innodb_large_prefix val: 1
    Use of uninitialized value $var in substitution (s///) at /usr/bin/pt-config-diff line 2217.

  14. Cxn:1589 23714 Disconnecting dbh DBI::db=HASH(0x2b59810) undef

Of note however, in a different server with the same version, I don't get the error.

lpjirasync January 24, 2018 at 3:05 PM

**Comment from Launchpad by: Daniel Nichter on: 25-08-2012 18:02:42

I reported this bug, but I cannot reproduce it now with 2.1.2 or 2.0.5. If anyone can still reproduce this bug, please provide PTDEBUG output. Else, I'll mark this bug invalid and close it in a few days.

Done

Details

Assignee

Reporter

Priority

Smart Checklist

Created January 24, 2018 at 3:05 PM
Updated January 24, 2018 at 3:05 PM
Resolved January 24, 2018 at 3:05 PM