USE test;
SET @@SESSION.collation_connection=utf32_estonian_ci;
CREATE TABLE t1(c1 SET('a') COLLATE 'Binary',c2 JSON);
Leads to:
10.5.3 64488a6f2dd6aa43462292b757e783cfba11a8c6
mysqld: /test/10.5_dbg/sql/table.cc:3131: int TABLE_SHARE::init_from_binary_frm_image(THD*, bool, const uchar*, size_t, const uchar*, size_t): Assertion `(uint) (table_check_constraints - share->check_constraints) == (uint) (share->table_check_constraints - share->field_check_constraints)' failed.
10.5.3 64488a6f2dd6aa43462292b757e783cfba11a8c6
Core was generated by `/test/MD050520-mariadb-10.5.3-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
[Current thread is 1 (Thread 0x154a5bcf7700 (LWP 71945))]
(gdb) bt
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
#1 0x000055869954ce9a in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
#2 0x0000558698cf1289 in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:329
#3 <signal handler called>
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#5 0x0000154a5a43b801 in __GI_abort () at abort.c:79
#6 0x0000154a5a42b39a in __assert_fail_base (fmt=0x154a5a5b27d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5586996e8910 "(uint) (table_check_constraints - share->check_constraints) == (uint) (share->table_check_constraints - share->field_check_constraints)", file=file@entry=0x5586996e5f49 "/test/10.5_dbg/sql/table.cc", line=line@entry=3131, function=function@entry=0x5586996ea2a0 <TABLE_SHARE::init_from_binary_frm_image(THD*, bool, unsigned char const*, unsigned long, unsigned char const*, unsigned long)::__PRETTY_FUNCTION__> "int TABLE_SHARE::init_from_binary_frm_image(THD*, bool, const uchar*, size_t, const uchar*, size_t)") at assert.c:92
#7 0x0000154a5a42b412 in __GI___assert_fail (assertion=assertion@entry=0x5586996e8910 "(uint) (table_check_constraints - share->check_constraints) == (uint) (share->table_check_constraints - share->field_check_constraints)", file=file@entry=0x5586996e5f49 "/test/10.5_dbg/sql/table.cc", line=line@entry=3131, function=function@entry=0x5586996ea2a0 <TABLE_SHARE::init_from_binary_frm_image(THD*, bool, unsigned char const*, unsigned long, unsigned char const*, unsigned long)::__PRETTY_FUNCTION__> "int TABLE_SHARE::init_from_binary_frm_image(THD*, bool, const uchar*, size_t, const uchar*, size_t)") at assert.c:101
#8 0x0000558698b5eece in TABLE_SHARE::init_from_binary_frm_image (this=this@entry=0x154a5bcf47a0, thd=thd@entry=0x154a37c15088, write=<optimized out>, frm_image=<optimized out>, frm_length=<optimized out>, par_image=par_image@entry=0x0, par_length=0) at /test/10.5_dbg/sql/table.cc:3129
#9 0x0000558698d00793 in ha_create_table (thd=thd@entry=0x154a37c15088, path=path@entry=0x154a5bcf55a0 "./test/t1", db=0x154a37c748a0 "test", table_name=0x154a37c74198 "t1", create_info=create_info@entry=0x154a5bcf59f0, frm=frm@entry=0x154a5bcf5590) at /test/10.5_dbg/sql/handler.cc:5343
#10 0x0000558698b17c42 in create_table_impl (thd=thd@entry=0x154a37c15088, orig_db=..., orig_table_name=..., db=..., table_name=..., path=path@entry=0x154a5bcf55a0 "./test/t1", options=..., create_info=0x154a5bcf59f0, alter_info=0x154a5bcf5920, create_table_mode=0, is_trans=0x154a5bcf5827, key_info=0x154a5bcf5588, key_count=0x154a5bcf5584, frm=0x154a5bcf5590) at /test/10.5_dbg/sql/sql_table.cc:5177
#11 0x0000558698b18127 in mysql_create_table_no_lock (thd=thd@entry=0x154a37c15088, db=db@entry=0x154a37c741e8, table_name=table_name@entry=0x154a37c741f8, create_info=create_info@entry=0x154a5bcf59f0, alter_info=alter_info@entry=0x154a5bcf5920, is_trans=is_trans@entry=0x154a5bcf5827, create_table_mode=0, table_list=0x154a37c741d0) at /test/10.5_dbg/sql/sql_table.cc:5261
#12 0x0000558698b1846e in mysql_create_table (thd=thd@entry=0x154a37c15088, create_table=create_table@entry=0x154a37c741d0, create_info=create_info@entry=0x154a5bcf59f0, alter_info=alter_info@entry=0x154a5bcf5920) at /test/10.5_dbg/sql/sql_table.cc:5353
#13 0x0000558698b19d87 in Sql_cmd_create_table_like::execute (this=0x154a37c74170, thd=0x154a37c15088) at /test/10.5_dbg/sql/sql_table.cc:11876
#14 0x0000558698a4d206 in mysql_execute_command (thd=thd@entry=0x154a37c15088) at /test/10.5_dbg/sql/sql_parse.cc:5912
#15 0x0000558698a54b3a in mysql_parse (thd=thd@entry=0x154a37c15088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x154a5bcf6450, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:7957
#16 0x0000558698a4130f in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x154a37c15088, packet=packet@entry=0x154a37c67089 "CREATE TABLE t1(c1 SET('a') COLLATE 'Binary',c2 JSON)", packet_length=packet_length@entry=53, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:1839
#17 0x0000558698a3fbde in do_command (thd=0x154a37c15088) at /test/10.5_dbg/sql/sql_parse.cc:1358
#18 0x0000558698b99d0d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x154a3a8433a8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1422
#19 0x0000558698b9a03c in handle_one_connection (arg=arg@entry=0x154a3a8433a8) at /test/10.5_dbg/sql/sql_connect.cc:1319
#20 0x0000558698ff9f1a in pfs_spawn_thread (arg=0x154a59845888) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
#21 0x0000154a5b11e6db in start_thread (arg=0x154a5bcf7700) at pthread_create.c:463
#22 0x0000154a5a51c88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Bug confirmed present in:
MariaDB: 10.4.13 (dbg), 10.5.2 (dbg), 10.5.3 (dbg)
Bug confirmed not present in:
MariaDB: 10.1.45 (dbg), 10.1.45 (opt), 10.2.32 (dbg), 10.2.32 (opt), 10.3.23 (dbg), 10.3.23 (opt), 10.4.13 (opt), 10.5.2 (opt), 10.5.3 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.47 (dbg), 5.6.47 (opt), 5.7.29 (dbg), 5.7.29 (opt), 8.0.19 (dbg), 8.0.19 (opt)
MariaDB 10.3.23 (dbg):
10.3.23>USE test;
Database changed
10.3.23>SET @@SESSION.collation_connection=utf32_estonian_ci;
Query OK, 0 rows affected (0.000 sec)
10.3.23>CREATE TABLE t1(c1 SET('a') COLLATE 'Binary',c2 JSON);
Query OK, 0 rows affected (0.014 sec)
duplicates
MDEV-22111
ERROR 1064 & 1033 and SIGSEGV on CREATE TABLE w/ various charsets on 10.4/5 optimized builds | Assertion `(uint) (table_check_constraints - share->check_constraints) == (uint) (share->table_check_constraints - share->field_check_constraints)' failed
Closed
Roel Van de Paar
made changes -
2020-05-08 03:11
Field
Original Value
New Value
Component/s
JSON
[ 13908
]
Alexander Barkov
made changes -
2020-06-12 05:56
Fix Version/s
N/A
[ 14700
]
Fix Version/s
10.4
[ 22408
]
Fix Version/s
10.5
[ 23123
]
Resolution
Duplicate
[ 3
]
Status
Open
[ 1
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:51
Workflow
MariaDB v3
[ 108367
]
MariaDB v4
[ 157736
]
{"report":{"fcp":1398.8999996185303,"ttfb":726.1999998092651,"pageVisibility":"visible","entityId":86630,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"e6a17bc3-136d-4aa6-86aa-dc2ebeb6bcc2","navigationType":0,"readyForUser":1482.3000001907349,"redirectCount":0,"resourceLoadedEnd":1054.6999998092651,"resourceLoadedStart":733.6000003814697,"resourceTiming":[{"duration":17.799999237060547,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":733.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":733.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":751.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":18.399999618530273,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":733.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":733.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":752.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":201.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":733.8999996185303,"connectEnd":733.8999996185303,"connectStart":733.8999996185303,"domainLookupEnd":733.8999996185303,"domainLookupStart":733.8999996185303,"fetchStart":733.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":756.3000001907349,"responseEnd":935.3999996185303,"responseStart":777.3000001907349,"secureConnectionStart":733.8999996185303},{"duration":309.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":734,"connectEnd":734,"connectStart":734,"domainLookupEnd":734,"domainLookupStart":734,"fetchStart":734,"redirectEnd":0,"redirectStart":0,"requestStart":756.8000001907349,"responseEnd":1043.8000001907349,"responseStart":785.5,"secureConnectionStart":734},{"duration":47.09999942779541,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":734.1000003814697,"connectEnd":734.1000003814697,"connectStart":734.1000003814697,"domainLookupEnd":734.1000003814697,"domainLookupStart":734.1000003814697,"fetchStart":734.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":756.8999996185303,"responseEnd":781.1999998092651,"responseStart":780.3000001907349,"secureConnectionStart":734.1000003814697},{"duration":51.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":734.1999998092651,"connectEnd":734.1999998092651,"connectStart":734.1999998092651,"domainLookupEnd":734.1999998092651,"domainLookupStart":734.1999998092651,"fetchStart":734.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":758,"responseEnd":785.3999996185303,"responseStart":783.1000003814697,"secureConnectionStart":734.1999998092651},{"duration":23.59999942779541,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":734.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":734.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":757.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":53.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":734.3000001907349,"connectEnd":734.3000001907349,"connectStart":734.3000001907349,"domainLookupEnd":734.3000001907349,"domainLookupStart":734.3000001907349,"fetchStart":734.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":758.6000003814697,"responseEnd":788,"responseStart":786.1000003814697,"secureConnectionStart":734.3000001907349},{"duration":58.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":734.5,"connectEnd":734.5,"connectStart":734.5,"domainLookupEnd":734.5,"domainLookupStart":734.5,"fetchStart":734.5,"redirectEnd":0,"redirectStart":0,"requestStart":761.1999998092651,"responseEnd":792.8999996185303,"responseStart":790.8000001907349,"secureConnectionStart":734.5},{"duration":24.600000381469727,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":734.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":734.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":759.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":57.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":734.6999998092651,"connectEnd":734.6999998092651,"connectStart":734.6999998092651,"domainLookupEnd":734.6999998092651,"domainLookupStart":734.6999998092651,"fetchStart":734.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":762.8000001907349,"responseEnd":792.3000001907349,"responseStart":789.3000001907349,"secureConnectionStart":734.6999998092651},{"duration":299.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":754.5,"connectEnd":754.5,"connectStart":754.5,"domainLookupEnd":754.5,"domainLookupStart":754.5,"fetchStart":754.5,"redirectEnd":0,"redirectStart":0,"requestStart":780,"responseEnd":1054.3999996185303,"responseStart":1048.5,"secureConnectionStart":754.5},{"duration":290.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":763.8999996185303,"connectEnd":763.8999996185303,"connectStart":763.8999996185303,"domainLookupEnd":763.8999996185303,"domainLookupStart":763.8999996185303,"fetchStart":763.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":787.8000001907349,"responseEnd":1054.6999998092651,"responseStart":1049.1000003814697,"secureConnectionStart":763.8999996185303},{"duration":227.29999923706055,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1139.1000003814697,"connectEnd":1139.1000003814697,"connectStart":1139.1000003814697,"domainLookupEnd":1139.1000003814697,"domainLookupStart":1139.1000003814697,"fetchStart":1139.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1332.1000003814697,"responseEnd":1366.3999996185303,"responseStart":1365.3999996185303,"secureConnectionStart":1139.1000003814697}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":134,"responseStart":726,"responseEnd":763,"domLoading":729,"domInteractive":1544,"domContentLoadedEventStart":1544,"domContentLoadedEventEnd":1592,"domComplete":3417,"loadEventStart":3417,"loadEventEnd":3418,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1522.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1523.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1523.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1525.8000001907349},{"name":"activityTabFullyLoaded","time":1606.6999998092651}],"measures":[],"correlationId":"d44710ed1b4b9a","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":500,"dbReadsTimeInMs":16,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}