malloc(): memory corruption with replication
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
|||
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
High
|
George Ormond Lorch III | ||
5.1 |
Fix Released
|
Medium
|
George Ormond Lorch III | ||
5.5 |
Fix Released
|
High
|
George Ormond Lorch III |
Bug Description
Since update to 5.5.18
We periodically encounter this error message from the server
*** glibc detected *** /usr/sbin/mysqld: malloc(): memory corruption: 0x00007f8cb104f580 ***
======= Backtrace: =========
/lib/libc.
/lib/libc.
/lib/libc.
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/lib/libpthread
/lib/libc.
======= Memory map: ========
00400000-00d47000 r-xp 00000000 08:06 32 /usr/sbin/mysqld
00f47000-01063000 rw-p 00947000 08:06 32 /usr/sbin/mysqld
01063000-01090000 rw-p 00000000 00:00 0
01d1c000-2e085000 rw-p 00000000 00:00 0 [heap]
......
7f930a3dc000-
7f930a3e7000-
7f930a5e6000-
7f930a5e7000-
7f930a5e8000-
7f930a5f2000-
7f930a7f1000-
7f930a7f2000-
7f930a7f3000-
7f930a808000-
7f930aa07000-
7f930aa08000-
7f930aa09000-
7f930aa0b000-
7f930aa12000-
7f930ac11000-
7f930ac12000-
7f930ac13000-
7f930ac29000-
7f930ae28000-
7f930ae29000-
7f930ae2a000-
7f930b62a000-
7f930b782000-
7f930b981000-
7f930b985000-
7f930b986000-
7f930b98b000-
7f930b98c000-
7f930bb8b000-
7f930bb8c000-
7f930bb93000-
7f930bd92000-
7f930bd93000-
7f930bd94000-
7f930be14000-
7f930c014000-
7f930c015000-
7f930c016000-
7f930c018000-
7f930c218000-
7f930c219000-
7f930c21a000-
7f930c222000-
7f930c421000-
7f930c422000-
7f930c423000-
7f930c451000-
7f930c468000-
7f930c667000-
7f930c668000-
7f930c669000-
7f930c66d000-
7f930c6a4000-
7f930c6a5000-
7f930c6d5000-
7f930c6d6000-
7f930c706000-
7f930c707000-
7f930c737000-
7f930c738000-
7f930c768000-
7f930c769000-
7f930c799000-
7f930c79a000-
7f930c7ca000-
7f930c7cb000-
7f930c7fb000-
7f930c7fc000-
7f930c82c000-
7f930c82d000-
7f930c887000-
7f930c88a000-
7f930c88b000-
7f930c88c000-
7fff6f0a4000-
7fff6f1aa000-
ffffffffff60000
120113 5:43:01 - mysqld got signal 6 ;
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_
read_buffer_
max_used_
max_threads=400
thread_count=7
connection_count=6
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x28814b20
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 = 0x7f930c7f9ea8 thread_stack 0x30000
/usr/sbin/
/usr/sbin/
/lib/libpthread
/lib/libc.
/lib/libc.
/lib/libc.
/lib/libc.
/lib/libc.
/lib/libc.
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/lib/libpthread
/lib/libc.
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f8cb104f128): is an invalid pointer
Connection ID (thread ID): 2
Status: NOT_KILLED
The manual page at http://
information that should help you find out what is causing the crash.
mysqld: /home/jenkins/
failed.
query_cache_
+------
| Variable_name | Value |
+------
| have_query_cache | YES |
| query_cache_limit | 2097152 |
| query_cache_
| query_cache_size | 50331648 |
| query_cache_
| query_cache_type | ON |
| query_cache_
+------
Related branches
- Laurynas Biveinis (community): Approve
-
Diff: 1805 lines (+448/-1188)1 file modifiedpatches/query_cache_enhance.patch (+448/-1188)
- Alexey Kopytov (community): Approve
-
Diff: 93 lines (+42/-3)1 file modifiedPercona-Server/sql/log_event.cc (+42/-3)
- Alexey Kopytov (community): Approve
-
Diff: 85 lines (+42/-3)1 file modifiedPercona-Server/sql/log_event.cc (+42/-3)
Changed in percona-server: | |
assignee: | Oleg Tsarev (tsarev) → Patrick Crews (patrick-crews) |
Changed in percona-server: | |
assignee: | Patrick Crews (patrick-crews) → nobody |
Changed in percona-server: | |
milestone: | none → 5.5.21-25.0 |
assignee: | nobody → Alexey Kopytov (akopytov) |
status: | Incomplete → In Progress |
Changed in percona-server: | |
status: | In Progress → Fix Committed |
Changed in percona-server: | |
milestone: | 5.5.21-25.0 → 5.5.21-25.1 |
summary: |
- malloc(): memory corruption with 5.5.18 + malloc(): memory corruption with replication |
tags: | added: upstream |
Looks exactly like the 5.5 counterpart of bug #908531.