1
0
mirror of https://github.com/MariaDB/server.git synced 2025-10-21 08:47:42 +03:00
Files
mariadb/mysql-test/r
Jon Olav Hauglid 75d59ff967 Bug #57659 Segfault in Query_cache::invalidate_data for TRUNCATE TABLE
This crash could happen if TRUNCATE TABLE indirectly failed to open a
merge table due to failures to open underlying tables. Even if opening
failed, the TRUNCATE TABLE code would try to invalidate the table in
the query cache. Since this table had been closed and memory released,
this could lead to a crash.

This bug was introduced by a combination of the changes introduced by
the patch for Bug#52044, where failing to open a table will cause opened
tables to be closed. And the changes in patch for Bug#49938, where
TRUNCATE TABLE uses the standard open tables function.

This patch fixes the problem by setting the TABLE pointer to NULL before 
invalidating the query cache.

Test case added to truncate_coverage.test.
2010-10-29 16:10:53 +02:00
..
2010-10-13 08:51:37 +04:00
2010-10-29 11:59:36 +04:00
2010-06-24 15:29:53 +04:00
2010-10-29 15:25:18 +03:00
2010-10-13 08:51:37 +04:00
2010-09-09 16:43:45 +04:00
2010-07-09 14:46:46 +04:00
2010-09-08 09:36:39 +02:00
2010-07-14 15:05:20 +03:00
2010-10-04 15:42:16 +03:00
2010-07-21 18:20:29 +03:00
2010-08-25 13:17:15 +05:00
2010-10-04 15:42:16 +03:00
2010-10-04 15:42:16 +03:00
2010-08-25 13:17:15 +05:00
2010-09-28 16:00:11 +02:00
2010-09-13 14:46:55 +02:00
2010-09-13 15:56:56 +02:00
2010-10-15 20:13:35 +05:00
2010-09-13 15:56:56 +02:00
2010-09-13 15:56:56 +02:00
2010-10-01 16:06:10 +02:00
2010-10-20 16:56:09 +02:00
2010-10-20 16:56:09 +02:00
2010-09-30 14:06:50 +03:00
2010-09-30 14:06:50 +03:00
2010-09-30 14:06:50 +03:00
2010-09-30 14:06:50 +03:00
2010-10-06 13:02:11 +03:00
2010-08-26 16:35:38 +04:00
2010-07-16 21:25:00 +03:00
2010-09-07 12:17:12 +02:00
2010-08-13 14:20:49 +03:00