Bug #111443 | Assertion `has_error == thd->get_stmt_da()->is_error()' failed | ||
---|---|---|---|
Submitted: | 15 Jun 2023 19:08 | Modified: | 21 Jul 2023 20:24 |
Reporter: | Yu Liang | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S6 (Debug Builds) |
Version: | 8.0.33 | OS: | Ubuntu (20.04 LTS) |
Assigned to: | CPU Architecture: | x86 (Intel(R) Core(TM) i7-10700 CPU) |
[15 Jun 2023 19:08]
Yu Liang
[16 Jun 2023 4:32]
MySQL Verification Team
Hello Yu Liang, Thank you for the report and test case. Observed that 8.0.33 debug build is affected. regards, Umesh
[16 Jun 2023 4:33]
MySQL Verification Team
-- release build - not affected ./mtr bug111443 --nocheck-testcases Logging: ./mtr bug111443 --nocheck-testcases MySQL Version 8.0.33 Checking supported features Using 'all' suites Collecting tests Checking leftover processes Removing old var directory - WARNING: Using the 'mysql-test/var' symlink Creating var directory '/export/home/tmp/ushastry/mysql-8.0.33/mysql-test/var' Installing system database Using parallel: 1 ============================================================================== TEST NAME RESULT TIME (ms) COMMENT ------------------------------------------------------------------------------ drop database if exists test123; Warnings: Note 1008 Can't drop database 'test123'; database doesn't exist create database test123; use test123; CREATE TABLE v0 ( c1 SERIAL ) PARTITION BY RANGE ( c1 ) SUBPARTITION BY LINEAR HASH ( c1 DIV - c1 ) ( PARTITION p2 VALUES LESS THAN MAXVALUE ) ; INSERT v0 SET c1 = CONVERT ( 0.0 , CHAR UNICODE BINARY ) ; Warnings: Warning 1287 'UNICODE' is deprecated and will be removed in a future release. Please use CHARACTER SET charset_name instead Warning 1287 'BINARY as attribute of a type' is deprecated and will be removed in a future release. Please use a CHARACTER SET clause with _bin collation instead Error 1690 BIGINT UNSIGNED value is out of range in '(`c1` DIV -(`c1`))' [ 50%] main.bug111443 [ pass ] 7 [100%] shutdown_report [ pass ] -- debug build - affected Checking leftover processes Removing old var directory - WARNING: Using the 'mysql-test/var' symlink Creating var directory '/export/home/tmp/ushastry/mysql-8.0.33/mysql-test/var' Installing system database Using parallel: 1 ============================================================================== TEST NAME RESULT TIME (ms) COMMENT ------------------------------------------------------------------------------ drop database if exists test123; Warnings: Note 1008 Can't drop database 'test123'; database doesn't exist create database test123; use test123; CREATE TABLE v0 ( c1 SERIAL ) PARTITION BY RANGE ( c1 ) SUBPARTITION BY LINEAR HASH ( c1 DIV - c1 ) ( PARTITION p2 VALUES LESS THAN MAXVALUE ) ; INSERT v0 SET c1 = CONVERT ( 0.0 , CHAR UNICODE BINARY ) ; [ 50%] main.bug111443 [ fail ] Test ended at 2023-06-16 06:31:51 CURRENT_TEST: main.bug111443 mysqltest: At line 5: Query 'INSERT v0 SET c1 = CONVERT ( 0.0 , CHAR UNICODE BINARY ) ' failed. ERROR 2013 (HY000): Lost connection to MySQL server during query #0 0x00007f7b9d6d0aa1 in pthread_kill () from /lib64/libpthread.so.0 #1 0x0000000003f9296e in my_write_core(int) () #2 0x00000000032365f5 in handle_fatal_signal () #3 <signal handler called> #4 0x00007f7b9b90a387 in raise () from /lib64/libc.so.6 #5 0x00007f7b9b90ba78 in abort () from /lib64/libc.so.6 #6 0x00007f7b9b9031a6 in __assert_fail_base () from /lib64/libc.so.6 #7 0x00007f7b9b903252 in __assert_fail () from /lib64/libc.so.6 #8 0x000000000358ebb4 in Sql_cmd_insert_values::execute_inner(THD*) () #9 0x0000000003123873 in Sql_cmd_dml::execute(THD*) () #10 0x00000000030c24af in mysql_execute_command(THD*, bool) () #11 0x00000000030c5dc9 in dispatch_sql_command(THD*, Parser_state*) () #12 0x00000000030c752b in dispatch_command(THD*, COM_DATA const*, enum_server_command) () #13 0x00000000030c926e in do_command(THD*) () #14 0x0000000003227bb7 in handle_connection () #15 0x0000000004743af9 in pfs_spawn_thread () #16 0x00007f7b9d6cbea5 in start_thread () from /lib64/libpthread.so.0 #17 0x00007f7b9b9d2b2d in clone () from /lib64/libc.so.6
[21 Jul 2023 19:45]
Christine Cole
Posted by developer: Fixed as of the upcoming MySQL 8.2.0 release, and here's the proposed changelog entry from the documentation team: In some cases, an unexpected server exit followed a partitioning function error. Thank you for the bug report.
[21 Jul 2023 20:24]
Yu Liang
Thank you for the patch and the changelog information. We will keep track of the bug fix when the new version of the MySQL release.