Bug #84975 Assertion failure in thread 139870064981760 in file trx0trx.cc line 1465
Submitted: 14 Feb 2017 7:07 Modified: 1 Apr 2017 14:35
Reporter: Masanao KITORA Email Updates:
Status: No Feedback Impact on me:
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.7.17 OS:CentOS
Assigned to: CPU Architecture:Any

[14 Feb 2017 7:07] Masanao KITORA
Below logs are written down to mysqld.log.
I don't know this happens with which operation.

Around 12hours later of this message mysqld process crashed.
I had to set 'innodb_force_recovery=1' option to restart mysqld.

2017-02-13T15:03:57.757294Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 6527ms. The settings might not be optimal. (flushed=200 and evicted=0, during
the time.)
2017-02-13T15:05:44.132695Z 33115 [Warning] InnoDB: Cannot create table `cts`.`FTS_0000000000000142_0000000000000279_INDEX_6` because tablespace full
2017-02-13T15:05:44.132750Z 33115 [Warning] InnoDB: Failed to create FTS index table cts/FTS_0000000000000142_0000000000000279_INDEX_6
2017-02-14 00:05:44 0x7f360989b700  InnoDB: Assertion failure in thread 139870064981760 in file trx0trx.cc line 1465
InnoDB: Failing assertion: trx->error_state == DB_SUCCESS
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
15:05:44 UTC - 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.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

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

Thread pointer: 0x7f374c751920
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 = 7f360989ae28 thread_stack 0x40000

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f374c050e10): is an invalid pointer
Connection ID (thread ID): 33115

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.

How to repeat:
Don't know
[16 Feb 2017 16:01] MySQL Verification Team

Thank you for your bug report. This appears to be an error due to the configuration or due to your hardware limitations.

For the moment, I have two questions:

* When creating a tablespace, have you made it auto-extendable ???

* Is there enough space on the disk partition where it is residing ???

After you answer these questions, we can move on ...
[16 Feb 2017 16:51] MySQL Verification Team
One more important question:

Are you using innodb-file-per-table=NO ??? Or is this option set to YES ???

If it is NO, then the FTS indexes may be in the system tablesapce ...

And only the system tablespace, and temp tablespace, can be a fixed size. If that is the case than this is not a bug, but mis-configuration of your installation.
[17 Feb 2017 0:36] Masanao KITORA
In my.cnf below settings exist, 

Shared table space is not auto-extendable.
Each innodb table has idb file.
It seems FTS_...  files are created out of shared table space.
[17 Feb 2017 14:27] MySQL Verification Team
Yes, they are. If you have not configured InnoDB to use one file for each table, then it is what you get. Just as I described in my previous comments.
[27 Feb 2017 2:36] Masanao KITORA
>* When creating a tablespace, have you made it auto-extendable ???

-> No. I prepared 1GB fixed table space.

>* Is there enough space on the disk partition where it is residing ???

-> Yes. 5TB- available for /var/lib/mysql.

>*Are you using innodb-file-per-table=NO ??? Or is this option set to YES ???

-> I'm using innodb-file-per-table=YES.

I think my environment resources are
 1GB for shared space
 upto 5TB for each table space.
[1 Mar 2017 14:35] MySQL Verification Team

It is quite possible that you created that table with FTS before you have set innodb-file-per-table=YES ???

In any case, do you see that table as a separate file. If yes, send us a listing of that directory, together with your my.cnf
[2 Apr 2017 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".