[MDEV-9148] Assertion `thd->stmt_arena != thd->progress.arena' failed in thd_progress_init Created: 2015-11-18  Updated: 2015-12-10  Resolved: 2015-12-10

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB, Storage Engine - XtraDB
Affects Version/s: 10.0
Fix Version/s: 10.0.23

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDEV-9260 Improve progress report on on-line al... Open
Relates
relates to MDEV-9129 Server is restarting in the loop afte... Closed
Sprint: 10.0.23

 Description   

10.0/sql/sql_class.cc:4088: void thd_progress_init(THD*, uint): Assertion `thd->stmt_arena != thd->progress.arena' failed.
151117 21:41:17 [ERROR] mysqld got signal 6 ;

Stack trace from 10.0 commit 4008a3e55bda76fab622de163b174008d2d58abb

#6  0x00007efe3bf22311 in *__GI___assert_fail (assertion=0xf08270 "thd->stmt_arena != thd->progress.arena", file=<optimized out>, line=4088, function=0xf09ee0 "void thd_progress_init(THD*, uint)") at assert.c:81
#7  0x0000000000649b98 in thd_progress_init (thd=0x7efe236f9070, max_stage=3) at 10.0/sql/sql_class.cc:4088
#8  0x0000000000b00cdc in row_merge_sort (trx=0x7efe234ccb78, dup=0x7efe120b00c0, file=0x7efe234df8f8, block=0x7efe11006000 "\002\033aamzgmngfrmdthtdmdhlxkovjdz", tmpfd=0x7efe0cffedc4) at 10.0/storage/xtradb/row/row0merge.cc:2339
#9  0x0000000000adb4ba in fts_parallel_tokenization (arg=0x7efe3b494878) at 10.0/storage/xtradb/row/row0ftsort.cc:854
#10 0x00007efe3dd1cb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#11 0x00007efe3bfd295d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

10.1 also fails, but differently, see MDEV-9129 (10.1 fails both on debug and release builds, while 10.0 only fails on release).

To reproduce, download and unpack ftp://ftp.askmonty.org/public/MDEV-9129_data.gz

create table t1 (groups varchar(255) DEFAULT NULL) ENGINE=InnoDB;
load data local infile 't1.data' into table t1;
ALTER TABLE t1 ADD FULLTEXT ft_qu_la_contacts_groups (groups);

Default server settings are enough.



 Comments   
Comment by Jan Lindström (Inactive) [ 2015-12-10 ]

commit 311f0308d04f3a55ad18470ca39e9d44479c4782
Author: Jan Lindström <jan.lindstrom@mariadb.com>
Date: Thu Dec 10 16:41:46 2015 +0200

MDEV-9148: Assertion `thd->stmt_arena != thd->progress.arena' failed in thd_progress_init

Called thd_progress_init() from several threads used for FT-index
creation. For FT-indexes, need better way to report progress,
remove current one for them.

Generated at Thu Feb 08 07:32:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.