Using too big key for internal temp tables & Out Of Memory Error in MariaDB 5.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Executing this query on MariaDB errors out - and occasionally works - MySQL 5.5, and MariaDB 5.3.5 handle this query perfectly.
Issue happening with 5.5.21 Beta.
I've tried changing various memory related settings in my.cnf without any success.. If needed I can upload the tables related to this query.
MariaDB [sabretooth]> SELECT channels.id, channels.created, channels.vhost, channels.name, channels.shortname, channels.
ERROR 5 (HY000): Out of memory (Needed 4212250480 bytes)
MariaDB [sabretooth]> SELECT channels.id, channels.created, channels.vhost, channels.name, channels.shortname, channels.
ERROR 5 (HY000): Out of memory (Needed 3527552248 bytes)
MariaDB [sabretooth]> SELECT channels.id, channels.created, channels.vhost, channels.name, channels.shortname, channels.
^[[A
ERROR 1928 (HY000): Internal error: 'Using too big key for internal temp tables'
MariaDB [sabretooth]> SELECT channels.id, channels.created, channels.vhost, channels.name, channels.shortname, channels.
ERROR 5 (HY000): Out of memory (Needed 3527552248 bytes)
My.cnf
---------
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "/var/lib/
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://
# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/
[client]
port = 3306
socket = /var/run/
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/
nice = 0
max_connections = 8000
[mysqld]
#
# * Basic Settings
#
user = mysql
thread_stack = 2M
pid-file = /var/run/
socket = /var/run/
port = 3306
basedir = /usr
datadir = /var/lib/mysql/
tmpdir = /tmp
language = /usr/share/
skip-external-
skip-name-resolve
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address = 127.0.0.1
bind-address = 0.0.0.0
#
# * Fine Tuning
#
key_buffer = 64M
max_allowed_packet = 16M
#
# * Query Cache Configuration
#
query_cache_limit = 1048576
query_cache_size = 67108864
query_cache_type = 1
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
#log = /var/log/mysql.log
#log = /var/log/
#
# Error logging goes to syslog. This is a Debian improvement
#
# Here you can see queries with especially long duration
log-slow-queries = /var/log/
long_query_time = 1
#
# The following can be used as easy to replay backup logs or for replication.
server-id = 23
log-bin = /var/log/
# See /etc/mysql/
max_binlog_size = 104857600
#binlog-do-db = include_
#binlog-ignore-db = include_
#
# * BerkeleyDB
#
# The use of BerkeleyDB is now discouraged and support for it will probably
# cease in the next versions.
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Feature
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# If you want to enable SSL support (recommended) read the manual or my
# HOWTO in /usr/share/
# ssl-ca=
# ssl-cert=
# ssl-key=
max-connections = 8000
innodb_
#innodb_
#innodb_
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[isamchk]
key_buffer = 16M
I've uploaded the tables needed for this to private/958033.tgz