Bug #59648 | my_strtoll10_mb2: Assertion `(*endptr - s) % 2 == 0' failed. | ||
---|---|---|---|
Submitted: | 21 Jan 2011 7:52 | Modified: | 6 Apr 2011 17:55 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Charsets | Severity: | S1 (Critical) |
Version: | mysql-trunk-debug | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[21 Jan 2011 7:52]
Shane Bester
[21 Jan 2011 16:08]
Valeriy Kravchuk
Thank you for the bug report. Verified with current mysql-trunk on Mac OS X: macbook-pro:trunk openxs$ bin/mysql -uroot test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.6.2-m5-debug Source distribution Copyright (c) 2000, 2010, 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> select convert(des_encrypt(0,char('1' using ucs2)),unsigned); ERROR 2013 (HY000): Lost connection to MySQL server during query mysql> 110121 18:06:52 mysqld_safe mysqld restarted mysql> exit Bye macbook-pro:trunk openxs$ tail -80 data/macbook-pro.err ... ysqld: ready for connections. Version: '5.6.2-m5-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution Assertion failed: ((*endptr - s) % 2 == 0), function my_strtoll10_mb2, file /Users/openxs/bzr2/mysql-trunk-work/strings/ctype-ucs2.c, line 733. ...
[31 Jan 2011 6:06]
MySQL Verification Team
please add another testcase to the sweet: select convert(quote(char(0xf5 using ucs2)),signed);
[31 Jan 2011 8:33]
MySQL Verification Team
another testcase to test the fix when available: select char(coalesce(null,char(count('%s') using ucs2),1,@@global.license,null) using cp850);
[6 Apr 2011 17:55]
Paul DuBois
Noted in 5.1.57, 5.5.11, 5.6.2 changelogs. An incorrect character set pointer passed to my_strtoll10_mb2() caused an assertion to be raised. CHANGESET - http://lists.mysql.com/commits/132371