Custom Percona Server 5.5.27 build crashes when compiled with MAX_INDEXES between 121-128 in config.h.cmake

Bug #1042517 reported by Jaime Sicam
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Percona Server moved to
Fix Released
Sergei Glushchenko
Fix Released
Sergei Glushchenko
Fix Released
Sergei Glushchenko

Bug Description

On Percona Server 5.5.27:
Edit config.h.cmake and change "#define MAX_INDEXES 64" to "#define MAX_INDEXES 121"
Try compiling and running MySQL and it will crash

Error when starting MySQL:
02:33:53 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.
Please help us make Percona Server better by reporting any
bugs at

It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 338613 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x2d8ad70
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 = 7f1b38111c28 thread_stack 0x40000

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f1b2c0009c0): INSERT INTO tmp_db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y')
Connection ID (thread ID): 1

You may download the Percona Server operations manual by visiting You may find information
in the manual which will help you identify the cause of the crash.
error while creating grant tables
Installing MySQL system tables...

Installation of system tables failed! Examine the logs in
/home/mybuster/sandboxes/msb_5_5_27/data for more information.

Tags: i25618 i25824

Related branches

Jaime Sicam (jssicam)
tags: added: i25814
tags: added: i25824
removed: i25814
Revision history for this message
Alexey Kopytov (akopytov) wrote :

See also (and is most likely a duplicate of that one). We have a fix for that bug in the rnt-5.1 branch:

Revision history for this message
Alexey Kopytov (akopytov) wrote :
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

After applying patch following tests are failing:


They are designed with the assumption that MAX_INDEXES=64.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to:

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.