[MDEV-4445] Assertion `! is_set()' fails in Diagnostics_area::set_eof_status on attempt to use a corrupted partitioned ARCHIVE table Created: 2013-04-26  Updated: 2015-04-02

Status: Open
Project: MariaDB Server
Component/s: OTHER
Affects Version/s: 10.0.2, 5.5.30, 5.5, 10.0, 10.1
Fix Version/s: 10.1

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: upstream, verified

Issue Links:
Relates

 Description   

Also filed as http://bugs.mysql.com/bug.php?id=69085

Version: '5.5.30-MariaDB-debug-log'  socket: '/data/repo/bzr/5.5/mysql-test/var/tmp/mysqld.1.sock'  port: 16000  Source distribution
mysqld: /home/elenst/bzr/5.5/sql/sql_error.cc:387: void Diagnostics_area::set_eof_status(THD*): Assertion `! is_set()' failed.
130426 23:05:21 [ERROR] mysqld got signal 6 ;

#7  0x00007fd93d9d0192 in __GI___assert_fail (assertion=0xd223e6 "! is_set()", file=0xd22318 "/home/elenst/bzr/5.5/sql/sql_error.cc", line=387, function=0xd22820 "void Diagnostics_area::set_eof_status(THD*)") at assert.c:103
#8  0x00000000005eb8cd in Diagnostics_area::set_eof_status (this=0x3b800b0, thd=0x3b7c6e0) at /home/elenst/bzr/5.5/sql/sql_error.cc:387
#9  0x000000000057619e in my_eof (thd=0x3b7c6e0) at /home/elenst/bzr/5.5/sql/sql_class.h:3159
#10 0x0000000000681fc6 in mysqld_show_create (thd=0x3b7c6e0, table_list=0x7fd92808a880) at /home/elenst/bzr/5.5/sql/sql_show.cc:1095
#11 0x0000000000610487 in mysql_execute_command (thd=0x3b7c6e0) at /home/elenst/bzr/5.5/sql/sql_parse.cc:2769
#12 0x0000000000618cbc in mysql_parse (thd=0x3b7c6e0, rawbuf=0x7fd92808a7a8 "show create table t1", length=20, parser_state=0x7fd9330b3500) at /home/elenst/bzr/5.5/sql/sql_parse.cc:5759
#13 0x000000000060c3bc in dispatch_command (command=COM_QUERY, thd=0x3b7c6e0, packet=0x3c71031 "", packet_length=20) at /home/elenst/bzr/5.5/sql/sql_parse.cc:1068
#14 0x000000000060b5fd in do_command (thd=0x3b7c6e0) at /home/elenst/bzr/5.5/sql/sql_parse.cc:794
#15 0x000000000071090d in do_handle_one_connection (thd_arg=0x3b7c6e0) at /home/elenst/bzr/5.5/sql/sql_connect.cc:1266
#16 0x00000000007102f4 in handle_one_connection (arg=0x3b7c6e0) at /home/elenst/bzr/5.5/sql/sql_connect.cc:1181
#17 0x000000000095d648 in pfs_spawn_thread (arg=0x3bfece0) at /home/elenst/bzr/5.5/storage/perfschema/pfs.cc:1015
#18 0x00007fd93e7a0e9a in start_thread (arg=0x7fd9330b4700) at pthread_create.c:308
#19 0x00007fd93da94cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

Stack trace from

revision-id: knielsen@knielsen-hq.org-20130422142239-e1b8ly4fsw30i2c5
revno: 3734
branch-nick: 5.5

Also reproducible on 10.0, MySQL-5.5, MySQL-5.6.

Test case:

--source include/have_archive.inc
--source include/have_partition.inc
 
--let $datadir = `SELECT @@datadir`
 
create table t1 (a int) engine=archive partition by hash(a);
show create table t1;
--remove_file $datadir/test/t1#P#p0.ARZ
show create table t1;


Generated at Thu Feb 08 06:56:28 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.