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
{"report":{"fcp":798.3000001907349,"ttfb":195.4000005722046,"pageVisibility":"visible","entityId":86630,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"d0a1140f-feb7-46c0-940c-58b3af4c6677","navigationType":0,"readyForUser":881.8000001907349,"redirectCount":0,"resourceLoadedEnd":795.4000005722046,"resourceLoadedStart":201.4000005722046,"resourceTiming":[{"duration":43.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":201.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":201.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":244.60000038146973,"responseStart":0,"secureConnectionStart":0},{"duration":43.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":201.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":201.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":245,"responseStart":0,"secureConnectionStart":0},{"duration":93.09999942779541,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":201.9000005722046,"connectEnd":201.9000005722046,"connectStart":201.9000005722046,"domainLookupEnd":201.9000005722046,"domainLookupStart":201.9000005722046,"fetchStart":201.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":201.9000005722046,"responseEnd":295,"responseStart":295,"secureConnectionStart":201.9000005722046},{"duration":164.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":202.10000038146973,"connectEnd":202.10000038146973,"connectStart":202.10000038146973,"domainLookupEnd":202.10000038146973,"domainLookupStart":202.10000038146973,"fetchStart":202.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":202.10000038146973,"responseEnd":366.6000003814697,"responseStart":366.6000003814697,"secureConnectionStart":202.10000038146973},{"duration":168.70000076293945,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":202.19999980926514,"connectEnd":202.19999980926514,"connectStart":202.19999980926514,"domainLookupEnd":202.19999980926514,"domainLookupStart":202.19999980926514,"fetchStart":202.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":202.19999980926514,"responseEnd":370.9000005722046,"responseStart":370.9000005722046,"secureConnectionStart":202.19999980926514},{"duration":169,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":202.4000005722046,"connectEnd":202.4000005722046,"connectStart":202.4000005722046,"domainLookupEnd":202.4000005722046,"domainLookupStart":202.4000005722046,"fetchStart":202.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":202.4000005722046,"responseEnd":371.4000005722046,"responseStart":371.4000005722046,"secureConnectionStart":202.4000005722046},{"duration":169.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":202.60000038146973,"connectEnd":202.60000038146973,"connectStart":202.60000038146973,"domainLookupEnd":202.60000038146973,"domainLookupStart":202.60000038146973,"fetchStart":202.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":202.60000038146973,"responseEnd":371.80000019073486,"responseStart":371.80000019073486,"secureConnectionStart":202.60000038146973},{"duration":236.89999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":202.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":202.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":439.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":169.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":202.9000005722046,"connectEnd":202.9000005722046,"connectStart":202.9000005722046,"domainLookupEnd":202.9000005722046,"domainLookupStart":202.9000005722046,"fetchStart":202.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":202.9000005722046,"responseEnd":372.30000019073486,"responseStart":372.30000019073486,"secureConnectionStart":202.9000005722046},{"duration":236.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":203.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":203.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":439.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":169.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":203.19999980926514,"connectEnd":203.19999980926514,"connectStart":203.19999980926514,"domainLookupEnd":203.19999980926514,"domainLookupStart":203.19999980926514,"fetchStart":203.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":203.19999980926514,"responseEnd":372.80000019073486,"responseStart":372.80000019073486,"secureConnectionStart":203.19999980926514},{"duration":244.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":204.10000038146973,"connectEnd":204.10000038146973,"connectStart":204.10000038146973,"domainLookupEnd":204.10000038146973,"domainLookupStart":204.10000038146973,"fetchStart":204.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":204.10000038146973,"responseEnd":448.80000019073486,"responseStart":448.80000019073486,"secureConnectionStart":204.10000038146973},{"duration":278.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":208.60000038146973,"connectEnd":208.60000038146973,"connectStart":208.60000038146973,"domainLookupEnd":208.60000038146973,"domainLookupStart":208.60000038146973,"fetchStart":208.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":208.60000038146973,"responseEnd":487.19999980926514,"responseStart":487.19999980926514,"secureConnectionStart":208.60000038146973},{"duration":19.59999942779541,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":468.1000003814697,"connectEnd":468.1000003814697,"connectStart":468.1000003814697,"domainLookupEnd":468.1000003814697,"domainLookupStart":468.1000003814697,"fetchStart":468.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":468.1000003814697,"responseEnd":487.69999980926514,"responseStart":487.69999980926514,"secureConnectionStart":468.1000003814697},{"duration":304.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":491.1000003814697,"connectEnd":491.1000003814697,"connectStart":491.1000003814697,"domainLookupEnd":491.1000003814697,"domainLookupStart":491.1000003814697,"fetchStart":491.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":491.1000003814697,"responseEnd":795.4000005722046,"responseStart":795.4000005722046,"secureConnectionStart":491.1000003814697},{"duration":131.29999923706055,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":789.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":789.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":921.1999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":23,"responseStart":196,"responseEnd":200,"domLoading":199,"domInteractive":945,"domContentLoadedEventStart":945,"domContentLoadedEventEnd":989,"domComplete":1589,"loadEventStart":1589,"loadEventEnd":1589,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":923.1999998092651},{"name":"bigPipe.sidebar-id.end","time":923.9000005722046},{"name":"bigPipe.activity-panel-pipe-id.start","time":924.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":926.6999998092651},{"name":"activityTabFullyLoaded","time":996.1999998092651}],"measures":[],"correlationId":"2ec1d115305a0a","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}