Bug #74500 | Assertion `src' failed in my_strnxfrm_unicode (sig 6 -strings/ctype-utf8.c:5151) | ||
---|---|---|---|
Submitted: | 22 Oct 2014 9:56 | Modified: | 17 Nov 2014 15:18 |
Reporter: | Ramesh Sivaraman | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 5.6.20-debug | OS: | Linux (CentOS 7) |
Assigned to: | Tor Didriksen | CPU Architecture: | Any |
[22 Oct 2014 9:56]
Ramesh Sivaraman
[22 Oct 2014 10:59]
MySQL Verification Team
same or similar to: Bug 13358486 - WEIGHT_STRING = MY_STRNXFRM_UNICODE: ASSERTION `SRC' FAILED.
[22 Oct 2014 12:58]
MySQL Verification Team
[miguel@cuzcatlan 5.6]$ bin/mysql -uroot --socket=/tmp/mysql.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.6.22-debug Source distribution Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> create database l; Query OK, 1 row affected (0.00 sec) mysql> use l Database changed mysql> CREATE TABLE t1(c1 SET('','')CHARACTER SET ucs2); Query OK, 0 rows affected, 1 warning (0.65 sec) mysql> INSERT INTO t1 VALUES(990101.102); Query OK, 1 row affected, 1 warning (0.09 sec) mysql> SELECT COALESCE(c1)FROM t1 ORDER BY 1; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql>
[22 Oct 2014 13:04]
MySQL Verification Team
Thank you for the bug report.
[23 Oct 2014 6:13]
Tor Didriksen
Verified for 5.5 and 5.7 as well. Only debug versions are affected. The string has length zero, so code without the assert works fine. The string pointer should point to a "" string rather than be zero though.
[17 Nov 2014 15:18]
Paul DuBois
Noted in 5.7.6 changelog. For debug builds, certain queries could raise an assertion when a internal string operation produces a NULL pointer rather than an empty string.
[13 Aug 2017 23:36]
Roel Van de Paar
A 5.5. and 5.6 backport would be appreciated, and may improve QA quality because currently this bug is filtered with a broad filter in post-crash filtering runs. Thank you!