CREATE TEMPORARY TABLE tmp (i INT);
|
SELECT NEXT VALUE FOR tmp;
|
10.3 debug 016c35a7f2f4a28
|
mysqld: /data/src/10.3/sql/item_func.cc:6784: virtual longlong Item_func_nextval::val_int(): Assertion `table && table->s->sequence' failed.
|
170903 16:59:57 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f241163bee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x00005576eb7cc132 in Item_func_nextval::val_int (this=0x7f23f0015100) at /data/src/10.3/sql/item_func.cc:6784
|
#9 0x00005576eb652a63 in Type_handler::Item_send_longlong (this=0x5576ecb546b0 <type_handler_longlong>, item=0x7f23f0015100, protocol=0x7f23f0001098, buf=0x7f240c0d1a50) at /data/src/10.3/sql/sql_type.cc:5121
|
#10 0x00005576eb6565c0 in Type_handler_longlong::Item_send (this=0x5576ecb546b0 <type_handler_longlong>, item=0x7f23f0015100, protocol=0x7f23f0001098, buf=0x7f240c0d1a50) at /data/src/10.3/sql/sql_type.h:1851
|
#11 0x00005576eb3a9b88 in Item::send (this=0x7f23f0015100, protocol=0x7f23f0001098, buffer=0x7f240c0d1a50) at /data/src/10.3/sql/item.h:724
|
#12 0x00005576eb3a54ca in Protocol::send_result_set_row (this=0x7f23f0001098, row_items=0x7f23f0005028) at /data/src/10.3/sql/protocol.cc:985
|
#13 0x00005576eb42bbe6 in select_send::send_data (this=0x7f23f00152c0, items=...) at /data/src/10.3/sql/sql_class.cc:2847
|
#14 0x00005576eb4c8bf2 in JOIN::exec_inner (this=0x7f23f00152e0) at /data/src/10.3/sql/sql_select.cc:3418
|
#15 0x00005576eb4c863e in JOIN::exec (this=0x7f23f00152e0) at /data/src/10.3/sql/sql_select.cc:3337
|
#16 0x00005576eb4c9831 in mysql_select (thd=0x7f23f0000b00, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f23f00152c0, unit=0x7f23f00047c0, select_lex=0x7f23f0004f00) at /data/src/10.3/sql/sql_select.cc:3737
|
#17 0x00005576eb4bddbc in handle_select (thd=0x7f23f0000b00, lex=0x7f23f00046f8, result=0x7f23f00152c0, setup_tables_done_option=0) at /data/src/10.3/sql/sql_select.cc:378
|
#18 0x00005576eb48926e in execute_sqlcom_select (thd=0x7f23f0000b00, all_tables=0x7f23f0014ae8) at /data/src/10.3/sql/sql_parse.cc:6466
|
#19 0x00005576eb47f7ef in mysql_execute_command (thd=0x7f23f0000b00) at /data/src/10.3/sql/sql_parse.cc:3731
|
#20 0x00005576eb48cbd4 in mysql_parse (thd=0x7f23f0000b00, rawbuf=0x7f23f0014a08 "SELECT NEXT VALUE FOR tmp", length=25, parser_state=0x7f240c0d3610, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7921
|
#21 0x00005576eb47a32e in dispatch_command (command=COM_QUERY, thd=0x7f23f0000b00, packet=0x7f23f0149c51 "", packet_length=25, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1819
|
#22 0x00005576eb478d90 in do_command (thd=0x7f23f0000b00) at /data/src/10.3/sql/sql_parse.cc:1370
|
#23 0x00005576eb5cf646 in do_handle_one_connection (connect=0x5576edc78260) at /data/src/10.3/sql/sql_connect.cc:1418
|
#24 0x00005576eb5cf3d3 in handle_one_connection (arg=0x5576edc78260) at /data/src/10.3/sql/sql_connect.cc:1324
|
#25 0x00005576eba471dc in pfs_spawn_thread (arg=0x5576edd11240) at /data/src/10.3/storage/perfschema/pfs.cc:1862
|
#26 0x00007f2413580494 in start_thread (arg=0x7f240c0d4700) at pthread_create.c:333
|
#27 0x00007f24116f893f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
10.3 non-debug 016c35a7f2f4a28
|
#2 <signal handler called>
|
#3 inline_mysql_rwlock_wrlock (src_file=0x564a905cb560 "/data/src/10.3/sql/sql_sequence.cc", src_line=369, that=0x60) at /data/src/10.3/include/mysql/psi/mysql_thread.h:915
|
#4 SEQUENCE::write_lock (this=0x0, table=0x7f3d100937b8) at /data/src/10.3/sql/sql_sequence.cc:369
|
#5 0x0000564a8ffefa99 in SEQUENCE::next_value (this=0x0, table=0x7f3d100937b8, second_round=<optimized out>, error=0x7f3d2e2da494) at /data/src/10.3/sql/sql_sequence.cc:657
|
#6 0x0000564a900d28a6 in Item_func_nextval::val_int (this=0x7f3d10011a28) at /data/src/10.3/sql/item_func.cc:6820
|
#7 0x0000564a8ffe5b18 in Type_handler::Item_send_longlong (this=<optimized out>, item=0x7f3d10011a28, protocol=0x7f3d10000eb8, buf=<optimized out>) at /data/src/10.3/sql/sql_type.cc:5121
|
#8 0x0000564a8fe32996 in Protocol::send_result_set_row (this=this@entry=0x7f3d10000eb8, row_items=row_items@entry=0x7f3d10004d10) at /data/src/10.3/sql/protocol.cc:985
|
#9 0x0000564a8fe8806b in select_send::send_data (this=0x7f3d10011be8, items=...) at /data/src/10.3/sql/sql_class.cc:2847
|
#10 0x0000564a8ff12462 in JOIN::exec_inner (this=this@entry=0x7f3d10011c08) at /data/src/10.3/sql/sql_select.cc:3418
|
#11 0x0000564a8ff126b9 in JOIN::exec (this=this@entry=0x7f3d10011c08) at /data/src/10.3/sql/sql_select.cc:3337
|
#12 0x0000564a8ff127fb in mysql_select (thd=thd@entry=0x7f3d100009a8, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f3d10011be8, unit=0x7f3d100044a8, select_lex=0x7f3d10004be8) at /data/src/10.3/sql/sql_select.cc:3737
|
#13 0x0000564a8ff13210 in handle_select (thd=thd@entry=0x7f3d100009a8, lex=lex@entry=0x7f3d100043e0, result=result@entry=0x7f3d10011be8, setup_tables_done_option=setup_tables_done_option@entry=0) at /data/src/10.3/sql/sql_select.cc:378
|
#14 0x0000564a8fdfa2eb in execute_sqlcom_select (thd=0x7f3d100009a8, all_tables=0x7f3d10011410) at /data/src/10.3/sql/sql_parse.cc:6466
|
#15 0x0000564a8fec016c in mysql_execute_command (thd=0x7f3d100009a8) at /data/src/10.3/sql/sql_parse.cc:3731
|
#16 0x0000564a8fec2bca in mysql_parse (thd=0x7f3d100009a8, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>, is_com_multi=<optimized out>, is_next_command=<optimized out>) at /data/src/10.3/sql/sql_parse.cc:7921
|
#17 0x0000564a8fec6738 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7f3d100009a8, packet=packet@entry=0x7f3d10008fc9 "", packet_length=packet_length@entry=25, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /data/src/10.3/sql/sql_parse.cc:1819
|
#18 0x0000564a8fec6e3f in do_command (thd=0x7f3d100009a8) at /data/src/10.3/sql/sql_parse.cc:1370
|
#19 0x0000564a8ff90724 in do_handle_one_connection (connect=connect@entry=0x564a93747198) at /data/src/10.3/sql/sql_connect.cc:1418
|
#20 0x0000564a8ff908c4 in handle_one_connection (arg=arg@entry=0x564a93747198) at /data/src/10.3/sql/sql_connect.cc:1324
|
#21 0x0000564a90275134 in pfs_spawn_thread (arg=0x564a9376d428) at /data/src/10.3/storage/perfschema/pfs.cc:1862
|
#22 0x00007f3d35e8b494 in start_thread (arg=0x7f3d2e2dd700) at pthread_create.c:333
|
#23 0x00007f3d3400393f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
{"report":{"fcp":984,"ttfb":352.6000003814697,"pageVisibility":"visible","entityId":62970,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"749896c7-566e-41f4-9d0e-1833a5bd4688","navigationType":0,"readyForUser":1110.5,"redirectCount":0,"resourceLoadedEnd":710.9000005722046,"resourceLoadedStart":358.4000005722046,"resourceTiming":[{"duration":41.79999923706055,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":358.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":358.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":400.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":43,"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":358.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":358.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":401.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":208.29999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":358.9000005722046,"connectEnd":358.9000005722046,"connectStart":358.9000005722046,"domainLookupEnd":358.9000005722046,"domainLookupStart":358.9000005722046,"fetchStart":358.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":407.80000019073486,"responseEnd":567.1999998092651,"responseStart":421.19999980926514,"secureConnectionStart":358.9000005722046},{"duration":332.69999980926514,"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":359,"connectEnd":359,"connectStart":359,"domainLookupEnd":359,"domainLookupStart":359,"fetchStart":359,"redirectEnd":0,"redirectStart":0,"requestStart":408,"responseEnd":691.6999998092651,"responseStart":427.69999980926514,"secureConnectionStart":359},{"duration":66.40000057220459,"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":359.19999980926514,"connectEnd":359.19999980926514,"connectStart":359.19999980926514,"domainLookupEnd":359.19999980926514,"domainLookupStart":359.19999980926514,"fetchStart":359.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":408.30000019073486,"responseEnd":425.6000003814697,"responseStart":424.5,"secureConnectionStart":359.19999980926514},{"duration":69.69999980926514,"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":359.4000005722046,"connectEnd":359.4000005722046,"connectStart":359.4000005722046,"domainLookupEnd":359.4000005722046,"domainLookupStart":359.4000005722046,"fetchStart":359.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":408.5,"responseEnd":429.1000003814697,"responseStart":426.80000019073486,"secureConnectionStart":359.4000005722046},{"duration":72,"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":359.5,"connectEnd":359.5,"connectStart":359.5,"domainLookupEnd":359.5,"domainLookupStart":359.5,"fetchStart":359.5,"redirectEnd":0,"redirectStart":0,"requestStart":408.80000019073486,"responseEnd":431.5,"responseStart":430.1000003814697,"secureConnectionStart":359.5},{"duration":47.60000038146973,"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":359.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":359.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":407.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":68.89999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":359.9000005722046,"connectEnd":359.9000005722046,"connectStart":359.9000005722046,"domainLookupEnd":359.9000005722046,"domainLookupStart":359.9000005722046,"fetchStart":359.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":409.80000019073486,"responseEnd":428.80000019073486,"responseStart":426,"secureConnectionStart":359.9000005722046},{"duration":48.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":360.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":360.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":408.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":83,"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":360.30000019073486,"connectEnd":360.30000019073486,"connectStart":360.30000019073486,"domainLookupEnd":360.30000019073486,"domainLookupStart":360.30000019073486,"fetchStart":360.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":414,"responseEnd":443.30000019073486,"responseStart":435.9000005722046,"secureConnectionStart":360.30000019073486},{"duration":344,"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":365.6000003814697,"connectEnd":365.6000003814697,"connectStart":365.6000003814697,"domainLookupEnd":365.6000003814697,"domainLookupStart":365.6000003814697,"fetchStart":365.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":502.4000005722046,"responseEnd":709.6000003814697,"responseStart":701.5,"secureConnectionStart":365.6000003814697},{"duration":345.20000076293945,"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":365.69999980926514,"connectEnd":365.69999980926514,"connectStart":365.69999980926514,"domainLookupEnd":365.69999980926514,"domainLookupStart":365.69999980926514,"fetchStart":365.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":548.3000001907349,"responseEnd":710.9000005722046,"responseStart":704.6999998092651,"secureConnectionStart":365.69999980926514},{"duration":78.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":724.1999998092651,"connectEnd":724.1999998092651,"connectStart":724.1999998092651,"domainLookupEnd":724.1999998092651,"domainLookupStart":724.1999998092651,"fetchStart":724.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":765.1000003814697,"responseEnd":803,"responseStart":802,"secureConnectionStart":724.1999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":158,"responseStart":352,"responseEnd":361,"domLoading":356,"domInteractive":1181,"domContentLoadedEventStart":1181,"domContentLoadedEventEnd":1229,"domComplete":1754,"loadEventStart":1754,"loadEventEnd":1754,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1162.5},{"name":"bigPipe.sidebar-id.end","time":1163.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1163.4000005722046},{"name":"bigPipe.activity-panel-pipe-id.end","time":1164.3000001907349},{"name":"activityTabFullyLoaded","time":1249.6000003814697}],"measures":[],"correlationId":"cbe1ddc940f576","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":122,"dbReadsTimeInMs":14,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
This happens when doing NEXT VALUE for a temporary table
Fixed by giving ER_NOT_SEQUENCE when trying to use normal temporary table with
sequence functions
Fix provided by Aleksey Midenkov