Bug #111374 | Assertion `m_return_field_def.auto_flags == Field::NONE' failed | ||
---|---|---|---|
Submitted: | 13 Jun 2023 2:30 | Modified: | 13 Jun 2023 7:27 |
Reporter: | Yu Liang | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Stored Routines | 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) |
[13 Jun 2023 2:30]
Yu Liang
[13 Jun 2023 7:27]
MySQL Verification Team
Hello Yu Liang, Thank you for the report and test case. Observed that 8.0.33 only debug build is affected. regards, Umesh
[13 Jun 2023 7:28]
MySQL Verification Team
-- release build ./mtr bug111374 --nocheck-testcases Logging: ./mtr bug111374 --nocheck-testcases MySQL Version 8.0.33 Checking supported features Using 'all' suites Collecting tests Checking leftover processes Removing old var directory Creating var directory '/export/home/tmp/ushastry/binaries/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 FUNCTION v0 ( ) RETURNS SERIAL READS SQL DATA DETERMINISTIC RETURN PARAM_MARKER ; [ 50%] main.bug111374 [ pass ] 13 [100%] shutdown_report [ pass ] -- debug build - affected ./mtr bug111374 --nocheck-testcases --debug-server Logging: ./mtr bug111374 --nocheck-testcases --debug-server MySQL Version 8.0.33 Checking supported features - Binaries are debug compiled Using 'all' suites Collecting tests Checking leftover processes Removing old var directory Creating var directory '/export/home/tmp/ushastry/binaries/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 FUNCTION v0 ( ) RETURNS SERIAL READS SQL DATA DETERMINISTIC RETURN PARAM_MARKER ; [ 50%] main.bug111374 [ fail ] Test ended at 2023-06-13 09:26:29 CURRENT_TEST: main.bug111374 mysqltest: At line 4: Query 'CREATE FUNCTION v0 ( ) RETURNS SERIAL READS SQL DATA DETERMINISTIC RETURN PARAM_MARKER ' failed. ERROR 2013 (HY000): Lost connection to MySQL server during query -bt #0 0x00007fd80c191aa1 in pthread_kill () from /lib64/libpthread.so.0 #1 0x0000000004005426 in my_write_core(int) () #2 0x00000000032b0166 in handle_fatal_signal () #3 <signal handler called> #4 0x00007fd80a652387 in raise () from /lib64/libc.so.6 #5 0x00007fd80a653a78 in abort () from /lib64/libc.so.6 #6 0x00007fd80a64b1a6 in __assert_fail_base () from /lib64/libc.so.6 #7 0x00007fd80a64b252 in __assert_fail () from /lib64/libc.so.6 #8 0x0000000003073f06 in sp_head::returns_type(THD*, String*) const () #9 0x00000000035c0f83 in sp_binlog_create_routine_stmt(THD*, sp_head*, LEX_USER const*, bool, bool) () #10 0x00000000035c3529 in sp_create_routine(THD*, sp_head*, LEX_USER const*, bool, bool&) () #11 0x000000000313eee4 in mysql_execute_command(THD*, bool) () #12 0x0000000003140bc8 in dispatch_sql_command(THD*, Parser_state*) () #13 0x00000000031421fb in dispatch_command(THD*, COM_DATA const*, enum_server_command) () #14 0x0000000003143e97 in do_command(THD*) () #15 0x00000000032a219e in handle_connection () #16 0x00000000047b1601 in pfs_spawn_thread () #17 0x00007fd80c18cea5 in start_thread () from /lib64/libpthread.so.0 #18 0x00007fd80a71ab2d in clone () from /lib64/libc.so.6