Bug #109917 | server crash when execute create table with check constraint in ps mode | ||
---|---|---|---|
Submitted: | 3 Feb 11:38 | Modified: | 4 Feb 8:15 |
Reporter: | dongsheng zhao | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Prepared statements | Severity: | S6 (Debug Builds) |
Version: | 8.0, 8.0.32 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | check constraint, crash, prepare statement |
[3 Feb 11:38]
dongsheng zhao
[3 Feb 12:11]
MySQL Verification Team
Hello zhao, Thank you for the report and test case. I confirmed that 8.0.32 debug build is affected where as release build complains "ERROR 3815 (HY000): An expression of a check constraint 't1_chk_1' contains disallowed function.". Could you please confirm whether you are seeing this in debug build or release build? Thank you. - 8.0.32 release build ./mtr bug109917 Logging: ./mtr bug109917 MySQL Version 8.0.32 Checking supported features Using 'all' suites Collecting tests Checking leftover processes Removing old var directory Creating var directory '/export/home/tmp/ushastry/mysql-8.0.32/mysql-test/var' Installing system database Using parallel: 1 ============================================================================== TEST NAME RESULT TIME (ms) COMMENT ------------------------------------------------------------------------------ [ 50%] main.bug109917 [ fail ] Test ended at 2023-02-03 13:03:23 CURRENT_TEST: main.bug109917 mysqltest: At line 5: Query 'EXECUTE stmt using @v' failed. ERROR 3815 (HY000): An expression of a check constraint 't1_chk_1' contains disallowed function. -- debug build ./mtr bug109917 --debug-server Logging: ./mtr bug109917 --debug-server MySQL Version 8.0.32 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/mysql-8.0.32/mysql-test/var' Installing system database Using parallel: 1 ============================================================================== TEST NAME RESULT TIME (ms) COMMENT ------------------------------------------------------------------------------ [ 50%] main.bug109917 [ fail ] . Thread 1 (Thread 0x7ff7002f8700 (LWP 6595)): #0 0x00007ff7217bbaa1 in pthread_kill () from /lib64/libpthread.so.0 #1 0x0000000003fce8c8 in my_write_core(int) () #2 0x00000000032810c2 in handle_fatal_signal () #3 <signal handler called> #4 0x00007ff71fc7c387 in raise () from /lib64/libc.so.6 #5 0x00007ff71fc7da78 in abort () from /lib64/libc.so.6 #6 0x00007ff71fc751a6 in __assert_fail_base () from /lib64/libc.so.6 #7 0x00007ff71fc75252 in __assert_fail () from /lib64/libc.so.6 #8 0x000000000314065b in Prepared_statement::check_parameter_types() () #9 0x0000000003140b4e in Prepared_statement::execute_loop(THD*, String*, bool) () #10 0x00000000031410f2 in mysql_sql_stmt_execute(THD*) () #11 0x000000000310e49e in mysql_execute_command(THD*, bool) () #12 0x00000000031128c6 in dispatch_sql_command(THD*, Parser_state*) () #13 0x0000000003113dd9 in dispatch_command(THD*, COM_DATA const*, enum_server_command) () #14 0x000000000311596d in do_command(THD*) () #15 0x000000000327312c in handle_connection () #16 0x00000000047fb036 in pfs_spawn_thread () #17 0x00007ff7217b6ea5 in start_thread () from /lib64/libpthread.so.0 #18 0x00007ff71fd44b0d in clone () from /lib64/libc.so.6 regards, Umesh
[4 Feb 8:15]
dongsheng zhao
I see this in debug build. And i try it in release build, which report "ERROR 3815 (HY000): An expression of a check constraint 't1_chk_1' contains disallowed function.", as you say.
[6 Feb 5:08]
MySQL Verification Team
Thank you for confirming. I'm changing severity to debug only issue for now. Sincerely, Umesh