Bug #92591 | Assertion `uint4korr(kp1) >= 4' failed. | ||
---|---|---|---|
Submitted: | 28 Sep 2018 0:40 | Modified: | 28 Sep 2018 8:16 |
Reporter: | Roel Van de Paar | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S1 (Critical) |
Version: | 8.0.12 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[28 Sep 2018 0:40]
Roel Van de Paar
[28 Sep 2018 0:40]
Roel Van de Paar
MAY be a duplicate of bug 92448. Test on current source build to be sure.
[28 Sep 2018 8:16]
MySQL Verification Team
Not repeatable with current source server either with release or debug build server. miguel@luz:~/dbs $ 8.0/bin/mysql -uroot -p --socket=/tmp/mysql.sock Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 8.0.14 Source distribution BUILD: 2018-SET-27 Copyright (c) 2000, 2018, 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 test; CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); INSERT INTO t1 VALUES(CURRENT_USER()),(0); SELECT * FROM t1 ORDER BY c1 LIMIT 2;Query OK, 1 row affected (0,37 sec) mysql> USE test; Database changed mysql> CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); Query OK, 0 rows affected (1,36 sec) mysql> INSERT INTO t1 VALUES(CURRENT_USER()),(0); Query OK, 2 rows affected, 2 warnings (0,29 sec) Records: 2 Duplicates: 0 Warnings: 2 mysql> SELECT * FROM t1 ORDER BY c1 LIMIT 2; +----+ | c1 | +----+ | | | | +----+ 2 rows in set (0,00 sec) mysql> drop database test; Query OK, 1 row affected (1,06 sec) mysql> CREATE DATABASE test; CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); INSERT INTO t1 VALUES(CURRENT_USER()),(0); SELECT * FROM t1 ORDER BY c1 LIMIT 2;Query OK, 1 row affected (0,46 sec) mysql> USE test; Database changed mysql> CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); Query OK, 0 rows affected (1,68 sec) mysql> INSERT INTO t1 VALUES(CURRENT_USER()),(0); Query OK, 2 rows affected, 2 warnings (0,49 sec) Records: 2 Duplicates: 0 Warnings: 2 mysql> SELECT * FROM t1 ORDER BY c1 LIMIT 2; +----+ | c1 | +----+ | | | | +----+ 2 rows in set (0,00 sec) mysql> drop database test; Query OK, 1 row affected (0,98 sec) mysql> CREATE DATABASE test; CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); INSERT INTO t1 VALUES(CURRENT_USER()),(0); SELECT * FROM t1 ORDER BY c1 LIMIT 2;Query OK, 1 row affected (0,36 sec) mysql> USE test; Database changed mysql> CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); Query OK, 0 rows affected (1,96 sec) mysql> INSERT INTO t1 VALUES(CURRENT_USER()),(0); Query OK, 2 rows affected, 2 warnings (0,37 sec) Records: 2 Duplicates: 0 Warnings: 2 mysql> SELECT * FROM t1 ORDER BY c1 LIMIT 2; +----+ | c1 | +----+ | | | | +----+ 2 rows in set (0,00 sec) mysql> ------------------------------------------------------------------------------------- miguel@luz:~/dbsd $ 8.0/bin/mysql -uroot -p --socket=/tmp/mysql.sock Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 8.0.14-debug Source distribution BUILD: 2018-SET-27 Copyright (c) 2000, 2018, 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 test; CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); INSERT INTO t1 VALUES(CURRENT_USER()),(0); SELECT * FROM t1 ORDER BY c1 LIMIT 2;Query OK, 1 row affected (0,41 sec) mysql> USE test; Database changed mysql> CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); Query OK, 0 rows affected (2,00 sec) mysql> INSERT INTO t1 VALUES(CURRENT_USER()),(0); Query OK, 2 rows affected, 2 warnings (0,49 sec) Records: 2 Duplicates: 0 Warnings: 2 mysql> SELECT * FROM t1 ORDER BY c1 LIMIT 2; +----+ | c1 | +----+ | | | | +----+ 2 rows in set (0,00 sec) mysql> drop database test; Query OK, 1 row affected (1,40 sec) mysql> CREATE DATABASE test; CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); INSERT INTO t1 VALUES(CURRENT_USER()),(0); SELECT * FROM t1 ORDER BY c1 LIMIT 2;Query OK, 1 row affected (0,47 sec) mysql> USE test; Database changed mysql> CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); Query OK, 0 rows affected (1,78 sec) mysql> INSERT INTO t1 VALUES(CURRENT_USER()),(0); Query OK, 2 rows affected, 2 warnings (0,59 sec) Records: 2 Duplicates: 0 Warnings: 2 mysql> SELECT * FROM t1 ORDER BY c1 LIMIT 2; +----+ | c1 | +----+ | | | | +----+ 2 rows in set (0,01 sec) mysql> drop database test; Query OK, 1 row affected (1,54 sec) mysql> CREATE DATABASE test; CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); INSERT INTO t1 VALUES(CURRENT_USER()),(0); SELECT * FROM t1 ORDER BY c1 LIMIT 2;Query OK, 1 row affected (0,52 sec) mysql> USE test; Database changed mysql> CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); Query OK, 0 rows affected (1,91 sec) mysql> INSERT INTO t1 VALUES(CURRENT_USER()),(0); Query OK, 2 rows affected, 2 warnings (0,46 sec) Records: 2 Duplicates: 0 Warnings: 2 mysql> SELECT * FROM t1 ORDER BY c1 LIMIT 2; +----+ | c1 | +----+ | | | | +----+ 2 rows in set (0,00 sec) mysql> drop database test; Query OK, 1 row affected (1,27 sec) mysql> CREATE DATABASE test; CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); INSERT INTO t1 VALUES(CURRENT_USER()),(0); SELECT * FROM t1 ORDER BY c1 LIMIT 2;Query OK, 1 row affected (0,37 sec) mysql> USE test; Database changed mysql> CREATE TABLE t1(c1 VARCHAR(0)NOT NULL); Query OK, 0 rows affected (2,24 sec) mysql> INSERT INTO t1 VALUES(CURRENT_USER()),(0); Query OK, 2 rows affected, 2 warnings (0,30 sec) Records: 2 Duplicates: 0 Warnings: 2 mysql> SELECT * FROM t1 ORDER BY c1 LIMIT 2; +----+ | c1 | +----+ | | | | +----+ 2 rows in set (0,01 sec) mysql>