[MDEV-21047] Crash on UTF-8 Full text search Created: 2019-11-14 Updated: 2020-12-08 Resolved: 2019-11-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.4.10 |
| Fix Version/s: | 10.4.11 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Mohammad Tanhaei | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | crash | ||
| Environment: |
Centos os 7 |
||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Description |
|
You can reproduce the problem by creating an table that have a Full-text index and then search with charset other than latin1. For example: SELECT t.* FROM threads t WHERE [some other search based on indexes] MATCH (t.subject) AGAINST ('Some Arabic/Persian Text') >= '3' ORDER BY t.tid DESC LIMIT 0, 10; |
| Comments |
| Comment by Marko Mäkelä [ 2019-11-14 ] | ||||||||||||||||
|
I would appreciate a full SQL test case. This could be similar to | ||||||||||||||||
| Comment by Marko Mäkelä [ 2019-11-15 ] | ||||||||||||||||
|
uisoftware, can you please try to resolve these symbols from mysql.err
To do that, please ensure that you have the debugging symbols installed and then do:
That would help us determine whether this bug is a duplicate of | ||||||||||||||||
| Comment by Mohammad Tanhaei [ 2019-11-15 ] | ||||||||||||||||
|
Removing an index that contains three columns in the problematic table resolved my problem. It seems that Full-Text index has some conflicts with other indexes that have several columns. The problem only occurs on none latin character selections (UTF-8 chars). | ||||||||||||||||
| Comment by Marko Mäkelä [ 2019-11-15 ] | ||||||||||||||||
|
uisoftware, unfortunately it is not clear in which part of the code the crash occurred. We would need either a complete set of SQL statements for reproducing the problem, or at the very least, a resolved stack trace of the crash. As far as I understand, the internal structure of the inverted index for the InnoDB fulltext index is independent on the number of columns that are part of the index. However, if this indeed is the same issue as in | ||||||||||||||||
| Comment by Elena Stepanova [ 2019-11-18 ] | ||||||||||||||||
|
uisoftware, if you know the way to reproduce the failure, please provide the actual server options, CREATE TABLE statement and further queries which lead to the problem rather than a verbal description of them. | ||||||||||||||||
| Comment by Igor Babaev [ 2019-11-27 ] | ||||||||||||||||
|
Most probably this this a duplicate of |