--source include/galera_cluster.inc
|
--source include/have_partition.inc
|
|
SET SESSION wsrep_osu_method=RSU;
|
SET autocommit=0;
|
CREATE TABLE t (c INT) PARTITION BY KEY(c) PARTITIONS 2;
|
INSERT INTO t VALUES (1);
|
INSERT INTO t SELECT 1 ;
|
Leads to
10.6.18 a8a75ba2d0dd639b2b14337a6c4f495fcaaff7e4 (Debug)
|
mysqld: /test/10.6_dbg/sql/sql_class.cc:7225: int THD::binlog_write_row(TABLE*, bool, const uchar*): Assertion `((WSREP_PROVIDER_EXISTS_ && this->variables.wsrep_on) && wsrep_emulate_bin_log) || mysql_bin_log.is_open()' failed.
|
10.6.18 a8a75ba2d0dd639b2b14337a6c4f495fcaaff7e4 (Debug)
|
Core was generated by `/test/GAL_MD170424-mariadb-10.6.18-linux-x86_64-dbg/bin/mysqld --defaults-file='.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
[Current thread is 1 (Thread 0x14633c476700 (LWP 748606))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
#1 0x0000558510061e65 in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
|
#2 0x000055850f902b26 in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:357
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#5 0x00001463762d2859 in __GI_abort () at abort.c:79
|
#6 0x00001463762d2729 in __assert_fail_base (fmt=0x146376468588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x558510253f30 "((WSREP_PROVIDER_EXISTS_ && this->variables.wsrep_on) && wsrep_emulate_bin_log) || mysql_bin_log.is_open()", file=0x558510252808 "/test/10.6_dbg/sql/sql_class.cc", line=7225, function=<optimized out>) at assert.c:92
|
#7 0x00001463762e3fd6 in __GI___assert_fail (assertion=assertion@entry=0x558510253f30 "((WSREP_PROVIDER_EXISTS_ && this->variables.wsrep_on) && wsrep_emulate_bin_log) || mysql_bin_log.is_open()", file=file@entry=0x558510252808 "/test/10.6_dbg/sql/sql_class.cc", line=line@entry=7225, function=function@entry=0x5585102540b8 "int THD::binlog_write_row(TABLE*, bool, const uchar*)") at assert.c:101
|
#8 0x000055850f5e47f5 in THD::binlog_write_row (this=this@entry=0x146304000d48, table=table@entry=0x1463040317f8, is_trans=is_trans@entry=true, record=record@entry=0x146304022030 "\375\001") at /test/10.6_dbg/sql/log.h:323
|
#9 0x000055850f91a3de in Write_rows_log_event::binlog_row_logging_function (thd=0x146304000d48, table=0x1463040317f8, is_transactional=<optimized out>, before_record=<optimized out>, after_record=0x146304022030 "\375\001") at /test/10.6_dbg/sql/log_event.h:5390
|
#10 0x000055850f91459b in handler::binlog_log_row (this=this@entry=0x146304032930, table=0x1463040317f8, before_record=before_record@entry=0x0, after_record=after_record@entry=0x146304022030 "\375\001", log_func=log_func@entry=0x55850f91a3a7 <Write_rows_log_event::binlog_row_logging_function(THD*, TABLE*, bool, unsigned char const*, unsigned char const*)>) at /test/10.6_dbg/sql/handler.cc:7152
|
#11 0x000055850f916342 in handler::ha_write_row (this=0x146304032930, buf=0x146304022030 "\375\001") at /test/10.6_dbg/sql/handler.cc:7731
|
#12 0x000055850f5f8831 in write_record (thd=0x146304000d48, table=0x1463040317f8, info=info@entry=0x146304014768, sink=0x0) at /test/10.6_dbg/sql/sql_insert.cc:2187
|
#13 0x000055850f5f8b7f in select_insert::send_data (this=0x146304014718, values=<optimized out>) at /test/10.6_dbg/sql/sql_insert.cc:4159
|
#14 0x000055850f6b9b5d in select_result_sink::send_data_with_check (sent=0, u=<optimized out>, items=<optimized out>, this=<optimized out>) at /test/10.6_dbg/sql/sql_class.h:5888
|
#15 JOIN::exec_inner (this=this@entry=0x1463040147d8) at /test/10.6_dbg/sql/sql_select.cc:4750
|
#16 0x000055850f6baa59 in JOIN::exec (this=this@entry=0x1463040147d8) at /test/10.6_dbg/sql/sql_select.cc:4662
|
#17 0x000055850f6b8aaa in mysql_select (thd=thd@entry=0x146304000d48, tables=0x0, fields=@0x146304013bf8: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x146304013e88, last = 0x146304013e88, elements = 1}, <No data fields>}, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2202245270016, result=0x146304014718, unit=0x146304004f18, select_lex=0x146304013940) at /test/10.6_dbg/sql/sql_select.cc:5141
|
#18 0x000055850f6b921b in handle_select (thd=thd@entry=0x146304000d48, lex=lex@entry=0x146304004e50, result=result@entry=0x146304014718, setup_tables_done_option=setup_tables_done_option@entry=1073741824) at /test/10.6_dbg/sql/sql_select.cc:559
|
#19 0x000055850f643e8e in mysql_execute_command (thd=thd@entry=0x146304000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.6_dbg/sql/sql_parse.cc:4776
|
#20 0x000055850f62f948 in mysql_parse (thd=thd@entry=0x146304000d48, rawbuf=rawbuf@entry=0x146304013160 "INSERT INTO t SELECT 1", length=length@entry=22, parser_state=parser_state@entry=0x14633c4752d0) at /test/10.6_dbg/sql/sql_parse.cc:8139
|
#21 0x000055850f62f24e in wsrep_mysql_parse (thd=thd@entry=0x146304000d48, rawbuf=0x146304013160 "INSERT INTO t SELECT 1", length=22, parser_state=parser_state@entry=0x14633c4752d0) at /test/10.6_dbg/sql/sql_parse.cc:7950
|
#22 0x000055850f63d2a9 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x146304000d48, packet=packet@entry=0x14630400adb9 "INSERT INTO t SELECT 1", packet_length=packet_length@entry=22, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1417
|
#23 0x000055850f63f903 in do_command (thd=0x146304000d48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1409
|
#24 0x000055850f78fce6 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5585123dc5f8, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1415
|
#25 0x000055850f7901b8 in handle_one_connection (arg=0x5585123dc5f8) at /test/10.6_dbg/sql/sql_connect.cc:1317
|
#26 0x00001463767e3609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#27 0x00001463763cf133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.5.25 (dbg), 10.6.18 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.4.34 (dbg), 10.4.34 (opt), 10.5.25 (opt), 10.6.18 (opt), 10.11.8 (dbg), 10.11.8 (opt), 11.0.6 (dbg), 11.0.6 (opt), 11.1.5 (dbg), 11.1.5 (opt), 11.2.4 (dbg), 11.2.4 (opt), 11.3.3 (dbg), 11.3.3 (opt), 11.4.2 (dbg), 11.4.2 (opt), 11.5.0 (dbg), 11.5.0 (opt)
{"report":{"fcp":828.1999998092651,"ttfb":277.69999980926514,"pageVisibility":"visible","entityId":128914,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"e5824396-8ba7-46f1-89ba-c9db7d5e6917","navigationType":0,"readyForUser":939.5999999046326,"redirectCount":0,"resourceLoadedEnd":708.5999999046326,"resourceLoadedStart":286.5,"resourceTiming":[{"duration":29,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":286.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":286.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":315.5,"responseStart":0,"secureConnectionStart":0},{"duration":28.799999713897705,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":287,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":287,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":315.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":77.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":287.2999997138977,"connectEnd":287.2999997138977,"connectStart":287.2999997138977,"domainLookupEnd":287.2999997138977,"domainLookupStart":287.2999997138977,"fetchStart":287.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":321.69999980926514,"responseEnd":365,"responseStart":337.59999990463257,"secureConnectionStart":287.2999997138977},{"duration":94,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":287.3999996185303,"connectEnd":287.3999996185303,"connectStart":287.3999996185303,"domainLookupEnd":287.3999996185303,"domainLookupStart":287.3999996185303,"fetchStart":287.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":321.8999996185303,"responseEnd":381.3999996185303,"responseStart":339,"secureConnectionStart":287.3999996185303},{"duration":49.799999713897705,"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":287.59999990463257,"connectEnd":287.59999990463257,"connectStart":287.59999990463257,"domainLookupEnd":287.59999990463257,"domainLookupStart":287.59999990463257,"fetchStart":287.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":322.3999996185303,"responseEnd":337.3999996185303,"responseStart":336.69999980926514,"secureConnectionStart":287.59999990463257},{"duration":67.09999990463257,"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":287.7999997138977,"connectEnd":287.7999997138977,"connectStart":287.7999997138977,"domainLookupEnd":287.7999997138977,"domainLookupStart":287.7999997138977,"fetchStart":287.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":328.19999980926514,"responseEnd":354.8999996185303,"responseStart":354.09999990463257,"secureConnectionStart":287.7999997138977},{"duration":64.2999997138977,"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":288,"connectEnd":288,"connectStart":288,"domainLookupEnd":288,"domainLookupStart":288,"fetchStart":288,"redirectEnd":0,"redirectStart":0,"requestStart":328.7999997138977,"responseEnd":352.2999997138977,"responseStart":351.3999996185303,"secureConnectionStart":288},{"duration":38.09999990463257,"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":288.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":288.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":326.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":67.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":288.3999996185303,"connectEnd":288.3999996185303,"connectStart":288.3999996185303,"domainLookupEnd":288.3999996185303,"domainLookupStart":288.3999996185303,"fetchStart":288.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":329.3999996185303,"responseEnd":356,"responseStart":355,"secureConnectionStart":288.3999996185303},{"duration":38.39999961853027,"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":288.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":288.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":326.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":88.59999990463257,"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":288.69999980926514,"connectEnd":361.59999990463257,"connectStart":361.59999990463257,"domainLookupEnd":361.59999990463257,"domainLookupStart":361.59999990463257,"fetchStart":288.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":363.09999990463257,"responseEnd":377.2999997138977,"responseStart":374.69999980926514,"secureConnectionStart":361.59999990463257},{"duration":385.7000002861023,"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":302.2999997138977,"connectEnd":302.2999997138977,"connectStart":302.2999997138977,"domainLookupEnd":302.2999997138977,"domainLookupStart":302.2999997138977,"fetchStart":302.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":412.69999980926514,"responseEnd":688,"responseStart":682,"secureConnectionStart":302.2999997138977},{"duration":405.59999990463257,"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":303,"connectEnd":303,"connectStart":303,"domainLookupEnd":303,"domainLookupStart":303,"fetchStart":303,"redirectEnd":0,"redirectStart":0,"requestStart":646.2999997138977,"responseEnd":708.5999999046326,"responseStart":704.2999997138977,"secureConnectionStart":303},{"duration":194.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":586.2999997138977,"connectEnd":586.2999997138977,"connectStart":586.2999997138977,"domainLookupEnd":586.2999997138977,"domainLookupStart":586.2999997138977,"fetchStart":586.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":745.5,"responseEnd":781.1999998092651,"responseStart":780.2999997138977,"secureConnectionStart":586.2999997138977},{"duration":245.2000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":837.8999996185303,"connectEnd":837.8999996185303,"connectStart":837.8999996185303,"domainLookupEnd":837.8999996185303,"domainLookupStart":837.8999996185303,"fetchStart":837.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":1050.5,"responseEnd":1083.0999999046326,"responseStart":1081.5999999046326,"secureConnectionStart":837.8999996185303}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":105,"responseStart":278,"responseEnd":303,"domLoading":283,"domInteractive":1012,"domContentLoadedEventStart":1012,"domContentLoadedEventEnd":1069,"domComplete":1675,"loadEventStart":1675,"loadEventEnd":1675,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":984.6999998092651},{"name":"bigPipe.sidebar-id.end","time":985.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":985.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":987.8999996185303},{"name":"activityTabFullyLoaded","time":1085.8999996185303}],"measures":[],"correlationId":"ee08919f0fb67f","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
New stack trace from 10.5 CS:
Thread pointer: 0x7f1a98000dc8
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x7f1afc478bb8 thread_stack 0x49000
mysys/stacktrace.c:212(my_print_stacktrace)[0x559a76437f53]
sql/signal_handler.cc:238(handle_fatal_signal)[0x559a75a1166b]
libc_sigaction.c:0(__restore_rt)[0x7f1b0b6bc520]
nptl/pthread_kill.c:44(__pthread_kill_implementation)[0x7f1b0b7109fc]
posix/raise.c:27(__GI_raise)[0x7f1b0b6bc476]
stdlib/abort.c:81(__GI_abort)[0x7f1b0b6a27f3]
intl/loadmsgcat.c:1177(_nl_load_domain)[0x7f1b0b6a271b]
/lib/x86_64-linux-gnu/libc.so.6(+0x39e96)[0x7f1b0b6b3e96]
sql/sql_class.cc:7187(THD::binlog_write_row(TABLE*, bool, unsigned char const*))[0x559a755fab6f]
sql/log_event.h:5296(Write_rows_log_event::binlog_row_logging_function(THD*, TABLE*, bool, unsigned char const*, unsigned char const*))[0x559a75a32956]
sql/handler.cc:6769(handler::binlog_log_row(TABLE*, unsigned char const*, unsigned char const*, bool (*)(THD*, TABLE*, bool, unsigned char const*, unsigned char const*)))[0x559a75a28f3f]
sql/handler.cc:7348(handler::ha_write_row(unsigned char const*))[0x559a75a2ba5c]
sql/sql_insert.cc:2180(write_record(THD*, TABLE*, st_copy_info*, select_result*))[0x559a756203d5]
sql/sql_insert.cc:4145(select_insert::send_data(List<Item>&))[0x559a75626150]
sql/sql_class.h:5564(select_result_sink::send_data_with_check(List<Item>&, st_select_lex_unit*, unsigned long long))[0x559a7571d0f7]
sql/sql_select.cc:4491(JOIN::exec_inner())[0x559a756cd832]
sql/sql_select.cc:4406(JOIN::exec())[0x559a756cd089]
sql/sql_select.cc:4884(mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x559a756ce98c]
sql/sql_select.cc:449(handle_select(THD*, LEX*, select_result*, unsigned long))[0x559a756bd4a4]
sql/sql_parse.cc:4825(mysql_execute_command(THD*))[0x559a75675596]
sql/sql_parse.cc:8203(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x559a75680ba1]
sql/sql_parse.cc:8014(wsrep_mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x559a75680202]
sql/sql_parse.cc:1877(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x559a7566bae3]
sql/sql_parse.cc:1375(do_command(THD*))[0x559a7566a383]
sql/sql_connect.cc:1415(do_handle_one_connection(CONNECT*, bool))[0x559a75836afb]
sql/sql_connect.cc:1319(handle_one_connection)[0x559a75836870]
perfschema/pfs.cc:2203(pfs_spawn_thread)[0x559a75d959e4]
nptl/pthread_create.c:442(start_thread)[0x7f1b0b70eac3]
x86_64/clone3.S:83(__clone3)[0x7f1b0b7a0850]