my.cnf userstat=1 causes crash on install

Bug #1016973 reported by Ryan Lowe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
New
Undecided
Unassigned

Bug Description

# We're on CentOS 6.2 x86_64
%> uname -a
Linux host.domain 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
%> cat /etc/*release
CentOS release 6.2 (Final)
CentOS release 6.2 (Final)
CentOS release 6.2 (Final)
%> free -g
             total used free shared buffers cached
Mem: 31 0 30 0 0 0
-/+ buffers/cache: 0 30
Swap: 1 0 1

# Populate our my.cnf
%> cat > /etc/my.cnf << EOF
[mysqld]
innodb_buffer_pool_size = 16G
innodb_file_per_table
userstat = 1
EOF

# Here is what we install
%> mkdir rpms
%> cd rpms
%> wget http://www.percona.com/redir/downloads/Percona-Server-5.5/Percona-Server-5.5.24-26.0/RPM/rhel6/x86_64/Percona-Server-client-55-5.5.24-rel26.0.256.rhel6.x86_64.rpm
%> wget http://www.percona.com/redir/downloads/Percona-Server-5.5/Percona-Server-5.5.24-26.0/RPM/rhel6/x86_64/Percona-Server-devel-55-5.5.24-rel26.0.256.rhel6.x86_64.rpm
%> wget http://www.percona.com/redir/downloads/Percona-Server-5.5/Percona-Server-5.5.24-26.0/RPM/rhel6/x86_64/Percona-Server-server-55-5.5.24-rel26.0.256.rhel6.x86_64.rpm
%> wget http://www.percona.com/redir/downloads/Percona-Server-5.5/Percona-Server-5.5.24-26.0/RPM/rhel6/x86_64/Percona-Server-shared-55-5.5.24-rel26.0.256.rhel6.x86_64.rpm
%> wget http://www.percona.com/redir/downloads/XtraBackup/XtraBackup-2.0.0/RPM/rhel6/x86_64/percona-xtrabackup-2.0.0-417.rhel6.x86_64.rpm
%> rpm -ivh *.rpm
warning: Percona-Server-client-55-5.5.24-rel26.0.256.rhel6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing... ########################################### [100%]
   1:Percona-Server-shared-5########################################### [ 20%]
   2:Percona-Server-client-5########################################### [ 40%]
   3:percona-xtrabackup ########################################### [ 60%]
   4:Percona-Server-server-5########################################### [ 80%]
120623 15:41:54 [Note] Flashcache bypass: disabled
120623 15:41:54 [Note] Flashcache setup error is : ioctl failed

15:41:54 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=0
max_threads=151
thread_count=1
connection_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 338617 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x1ab0bb0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7f9584181c18 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x35)[0x7a5d85]
/usr/sbin/mysqld(handle_fatal_signal+0x4a4)[0x680e04]
/lib64/libpthread.so.0[0x339fe0f4a0]
/usr/sbin/mysqld[0x622f96]
/usr/sbin/mysqld(_Z24update_global_user_statsP3THDbl+0x3c2)[0x624a82]
/usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0xaa)[0x58b10a]
/usr/sbin/mysqld[0x58d4dd]
/usr/sbin/mysqld(_Z19do_handle_bootstrapP3THD+0x16a)[0x58d7ba]
/usr/sbin/mysqld(handle_bootstrap+0x51)[0x58d841]
/lib64/libpthread.so.0[0x339fe077f1]
/lib64/libc.so.6(clone+0x6d)[0x339fae570d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f95780009c0): is an invalid pointer
Connection ID (thread ID): 1
Status: NOT_KILLED

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.

Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.

You can try to start the mysqld daemon with:

    shell> /usr/sbin/mysqld --skip-grant &

and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /usr/bin/mysql -u root mysql
    mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.

Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!

Percona Server is distributed with several useful UDF (User Defined Function) from Maatkit.
Run the following commands to create these functions:
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
See http://code.google.com/p/maatkit/source/browse/trunk/udf for more details
   5:Percona-Server-devel-55########################################### [100%]

===== However, if we do the following, we can get this installed without issue:

%> yum remove Percona-Server-server-55 Percona-Server-shared-55 percona-xtrabackup Percona-Server-devel-55 Percona-Server-client-55
%> cat > /etc/my.cnf << EOF
[mysqld]
innodb_buffer_pool_size = 16G
innodb_file_per_table
userstat = 0
EOF
%> rpm -ivh *.rpm
warning: Percona-Server-client-55-5.5.24-rel26.0.256.rhel6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing... ########################################### [100%]
   1:Percona-Server-shared-5########################################### [ 20%]
   2:Percona-Server-client-5########################################### [ 40%]
   3:percona-xtrabackup ########################################### [ 60%]
   4:Percona-Server-server-5########################################### [ 80%]
120623 15:47:33 [Note] Flashcache bypass: disabled
120623 15:47:33 [Note] Flashcache setup error is : ioctl failed

120623 15:47:33 [Note] Flashcache bypass: disabled
120623 15:47:33 [Note] Flashcache setup error is : ioctl failed

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h host.domain password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

See the manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

Percona recommends that all production deployments be protected with a support
contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
be eligible for hot fixes, and boost your team's productivity.
Percona Server is distributed with several useful UDF (User Defined Function) from Maatkit.
Run the following commands to create these functions:
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
See http://code.google.com/p/maatkit/source/browse/trunk/udf for more details
   5:Percona-Server-devel-55########################################### [100%]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.