--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":872.4000000953674,"ttfb":275.5,"pageVisibility":"visible","entityId":128914,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"7b06b91f-5e36-46d6-a514-d8a536a0faca","navigationType":0,"readyForUser":965.7000000476837,"redirectCount":0,"resourceLoadedEnd":565.4000000953674,"resourceLoadedStart":282.5,"resourceTiming":[{"duration":18.100000023841858,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":282.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":282.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":300.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":19.699999928474426,"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":282.8000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":282.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":302.5,"responseStart":0,"secureConnectionStart":0},{"duration":148,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":282.90000009536743,"connectEnd":282.90000009536743,"connectStart":282.90000009536743,"domainLookupEnd":282.90000009536743,"domainLookupStart":282.90000009536743,"fetchStart":282.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":305,"responseEnd":430.90000009536743,"responseStart":320.90000009536743,"secureConnectionStart":282.90000009536743},{"duration":282.3000000715256,"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":283.10000002384186,"connectEnd":283.10000002384186,"connectStart":283.10000002384186,"domainLookupEnd":283.10000002384186,"domainLookupStart":283.10000002384186,"fetchStart":283.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":307.10000002384186,"responseEnd":565.4000000953674,"responseStart":326.8000000715256,"secureConnectionStart":283.10000002384186},{"duration":22.299999952316284,"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":283.3000000715256,"connectEnd":283.3000000715256,"connectStart":283.3000000715256,"domainLookupEnd":283.3000000715256,"domainLookupStart":283.3000000715256,"fetchStart":283.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":283.3000000715256,"responseEnd":305.60000002384186,"responseStart":305.60000002384186,"secureConnectionStart":283.3000000715256},{"duration":24,"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":283.40000009536743,"connectEnd":283.40000009536743,"connectStart":283.40000009536743,"domainLookupEnd":283.40000009536743,"domainLookupStart":283.40000009536743,"fetchStart":283.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":283.40000009536743,"responseEnd":307.40000009536743,"responseStart":307.40000009536743,"secureConnectionStart":283.40000009536743},{"duration":24.399999976158142,"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":283.60000002384186,"connectEnd":283.60000002384186,"connectStart":283.60000002384186,"domainLookupEnd":283.60000002384186,"domainLookupStart":283.60000002384186,"fetchStart":283.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":283.60000002384186,"responseEnd":308,"responseStart":308,"secureConnectionStart":283.60000002384186},{"duration":25.299999952316284,"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":283.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":283.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":309,"responseStart":0,"secureConnectionStart":0},{"duration":58.800000071525574,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":284,"connectEnd":284,"connectStart":284,"domainLookupEnd":284,"domainLookupStart":284,"fetchStart":284,"redirectEnd":0,"redirectStart":0,"requestStart":313.40000009536743,"responseEnd":342.8000000715256,"responseStart":340.8000000715256,"secureConnectionStart":284},{"duration":26.200000047683716,"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":284.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":284.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":310.3000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":58.5,"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":284.2000000476837,"connectEnd":284.2000000476837,"connectStart":284.2000000476837,"domainLookupEnd":284.2000000476837,"domainLookupStart":284.2000000476837,"fetchStart":284.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":314,"responseEnd":342.7000000476837,"responseStart":339.90000009536743,"secureConnectionStart":284.2000000476837},{"duration":60.699999928474426,"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":291.40000009536743,"connectEnd":291.40000009536743,"connectStart":291.40000009536743,"domainLookupEnd":291.40000009536743,"domainLookupStart":291.40000009536743,"fetchStart":291.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":291.40000009536743,"responseEnd":352.10000002384186,"responseStart":352.10000002384186,"secureConnectionStart":291.40000009536743},{"duration":110,"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":297.10000002384186,"connectEnd":297.10000002384186,"connectStart":297.10000002384186,"domainLookupEnd":297.10000002384186,"domainLookupStart":297.10000002384186,"fetchStart":297.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":297.10000002384186,"responseEnd":407.10000002384186,"responseStart":407.10000002384186,"secureConnectionStart":297.10000002384186},{"duration":181.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":614,"connectEnd":614,"connectStart":614,"domainLookupEnd":614,"domainLookupStart":614,"fetchStart":614,"redirectEnd":0,"redirectStart":0,"requestStart":758.9000000953674,"responseEnd":795.9000000953674,"responseStart":795,"secureConnectionStart":614}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":64,"responseStart":275,"responseEnd":297,"domLoading":280,"domInteractive":1085,"domContentLoadedEventStart":1085,"domContentLoadedEventEnd":1136,"domComplete":1968,"loadEventStart":1968,"loadEventEnd":1968,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1055.8000000715256},{"name":"bigPipe.sidebar-id.end","time":1056.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1056.8000000715256},{"name":"bigPipe.activity-panel-pipe-id.end","time":1058.9000000953674},{"name":"activityTabFullyLoaded","time":1157.9000000953674}],"measures":[],"correlationId":"80ce02618f65a3","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":119,"dbReadsTimeInMs":15,"dbConnsTimeInMs":25,"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]