Type:
Bug
Priority:
Blocker
Resolution:
Fixed
Affects Version/s:
10.6
SET GLOBAL query_cache_size=18446744073709547520;
Leads to:
10.6.0 bfb4761ca04704d68dba51f76d7c9967f880a6ee (Debug)
Core was generated by `/test/MD110221-mariadb-10.6.0-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:56
[Current thread is 1 (Thread 0x1469308f1700 (LWP 2394488))]
(gdb) bt
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
#1 0x00005635523f455c in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
#2 0x0000563551b8c4de in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:330
#3 <signal handler called>
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#5 0x00001469334af859 in __GI_abort () at abort.c:79
#6 0x0000563552410a79 in DbugExit (why=why@entry=0x1469308ef920 "missing DBUG_RETURN or DBUG_VOID_RETURN macro in function \"my_malloc\"\n") at /test/10.6_dbg/dbug/dbug.c:2043
#7 0x0000563552412a2a in _db_return_ (_stack_frame_=_stack_frame_@entry=0x1469308efb80) at /test/10.6_dbg/dbug/dbug.c:1210
#8 0x00005635523ef759 in my_malloc (key=key@entry=0, size=size@entry=18446744073709530472, my_flags=my_flags@entry=0) at /test/10.6_dbg/mysys/my_malloc.c:116
#9 0x000056355183f259 in Query_cache::init_cache (this=this@entry=0x563552e8e520 <query_cache>) at /test/10.6_dbg/sql/sql_cache.cc:2655
#10 0x0000563551848670 in Query_cache::resize (this=0x563552e8e520 <query_cache>, query_cache_size_arg=18446744073709547520) at /test/10.6_dbg/sql/sql_cache.cc:1333
#11 0x0000563551a39805 in fix_query_cache_size (self=<optimized out>, thd=0x1468ec000db8, type=<optimized out>) at /test/10.6_dbg/sql/sys_vars.cc:3061
#12 0x00005635517c5ade in sys_var::update (this=0x563552eb65c0 <Sys_query_cache_size>, thd=0x1468ec000db8, var=0x1468ec0129b8) at /test/10.6_dbg/sql/set_var.cc:207
#13 0x00005635517c5ff5 in set_var::update (this=<optimized out>, thd=<optimized out>) at /test/10.6_dbg/sql/set_var.cc:859
#14 0x00005635517c7372 in sql_set_variables (thd=thd@entry=0x1468ec000db8, var_list=var_list@entry=0x1468ec005e90, free=free@entry=true) at /test/10.6_dbg/sql/set_var.cc:746
#15 0x00005635518cadbb in mysql_execute_command (thd=thd@entry=0x1468ec000db8) at /test/10.6_dbg/sql/sql_parse.cc:4924
#16 0x00005635518b421a in mysql_parse (thd=thd@entry=0x1468ec000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x1469308f03d0) at /test/10.6_dbg/sql/sql_parse.cc:7906
#17 0x00005635518c230b in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x1468ec000db8, packet=packet@entry=0x1468ec01aac9 "SET GLOBAL query_cache_size=18446744073709547520", packet_length=packet_length@entry=48) at /test/10.6_dbg/sql/sql_class.h:1295
#18 0x00005635518c563d in do_command (thd=0x1468ec000db8) at /test/10.6_dbg/sql/sql_parse.cc:1365
#19 0x0000563551a211ab in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5635554a0848, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1410
#20 0x0000563551a218af in handle_one_connection (arg=arg@entry=0x5635554a0848) at /test/10.6_dbg/sql/sql_connect.cc:1312
#21 0x0000563551ed527d in pfs_spawn_thread (arg=0x5635553d4ef8) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
#22 0x00001469339bd609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#23 0x00001469335ac293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Bug confirmed present in:
MariaDB: 10.6.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.37 (dbg), 10.2.37 (opt), 10.3.28 (dbg), 10.3.28 (opt), 10.4.18 (dbg), 10.4.18 (opt), 10.5.9 (dbg), 10.5.9 (opt), 10.6.0 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.33 (dbg), 5.7.33 (opt), 8.0.23 (dbg), 8.0.23 (opt)
10.5.9 Debug Gives:
10.5.9 927a882341eb1087e71d64de4e8cd89ab520de89 (Debug)
10.5.9>SET GLOBAL query_cache_size=18446744073709547520;
Query OK, 0 rows affected, 1 warning (0.001 sec)
10.5.9>SHOW WARNINGS;
+---------+------+--------------------------------------------------------------------------------+
| Level | Code | Message |
+---------+------+--------------------------------------------------------------------------------+
| Warning | 1282 | Query cache failed to set size 18446744073709547520; new query cache size is 0 |
+---------+------+--------------------------------------------------------------------------------+
1 row in set (0.000 sec)
relates to
MDEV-25027
SIGABRT in DbugExit from my_malloc in JOIN_CACHE::alloc_buffer
Closed
{"report":{"fcp":1223.4000000953674,"ttfb":208.90000009536743,"pageVisibility":"visible","entityId":96932,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"7204f783-0527-4874-b077-6da596739311","navigationType":0,"readyForUser":1491.0999999046326,"redirectCount":0,"resourceLoadedEnd":1137,"resourceLoadedStart":220.90000009536743,"resourceTiming":[{"duration":289.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":220.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":510,"responseStart":0,"secureConnectionStart":0},{"duration":291.7999999523163,"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":221.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":221.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":513,"responseStart":0,"secureConnectionStart":0},{"duration":348.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":221.40000009536743,"connectEnd":221.40000009536743,"connectStart":221.40000009536743,"domainLookupEnd":221.40000009536743,"domainLookupStart":221.40000009536743,"fetchStart":221.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":221.40000009536743,"responseEnd":569.7999999523163,"responseStart":569.7999999523163,"secureConnectionStart":221.40000009536743},{"duration":403.30000019073486,"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":221.59999990463257,"connectEnd":221.59999990463257,"connectStart":221.59999990463257,"domainLookupEnd":221.59999990463257,"domainLookupStart":221.59999990463257,"fetchStart":221.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":221.59999990463257,"responseEnd":624.9000000953674,"responseStart":624.9000000953674,"secureConnectionStart":221.59999990463257},{"duration":407.7999999523163,"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":221.79999995231628,"connectEnd":221.79999995231628,"connectStart":221.79999995231628,"domainLookupEnd":221.79999995231628,"domainLookupStart":221.79999995231628,"fetchStart":221.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":221.79999995231628,"responseEnd":629.5999999046326,"responseStart":629.5999999046326,"secureConnectionStart":221.79999995231628},{"duration":408,"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":222.09999990463257,"connectEnd":222.09999990463257,"connectStart":222.09999990463257,"domainLookupEnd":222.09999990463257,"domainLookupStart":222.09999990463257,"fetchStart":222.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":222.09999990463257,"responseEnd":630.0999999046326,"responseStart":630.0999999046326,"secureConnectionStart":222.09999990463257},{"duration":408.2999999523163,"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":222.20000004768372,"connectEnd":222.20000004768372,"connectStart":222.20000004768372,"domainLookupEnd":222.20000004768372,"domainLookupStart":222.20000004768372,"fetchStart":222.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":222.20000004768372,"responseEnd":630.5,"responseStart":630.5,"secureConnectionStart":222.20000004768372},{"duration":554,"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":222.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":222.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":776.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":408.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":222.5,"connectEnd":222.5,"connectStart":222.5,"domainLookupEnd":222.5,"domainLookupStart":222.5,"fetchStart":222.5,"redirectEnd":0,"redirectStart":0,"requestStart":222.5,"responseEnd":631,"responseStart":631,"secureConnectionStart":222.5},{"duration":553.7999999523163,"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":222.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":222.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":776.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":409.2999999523163,"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":222.79999995231628,"connectEnd":222.79999995231628,"connectStart":222.79999995231628,"domainLookupEnd":222.79999995231628,"domainLookupStart":222.79999995231628,"fetchStart":222.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":222.79999995231628,"responseEnd":632.0999999046326,"responseStart":632.0999999046326,"secureConnectionStart":222.79999995231628},{"duration":835.5,"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":234,"connectEnd":234,"connectStart":234,"domainLookupEnd":234,"domainLookupStart":234,"fetchStart":234,"redirectEnd":0,"redirectStart":0,"requestStart":234,"responseEnd":1069.5,"responseStart":1069.5,"secureConnectionStart":234},{"duration":895.7000000476837,"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":241.29999995231628,"connectEnd":241.29999995231628,"connectStart":241.29999995231628,"domainLookupEnd":241.29999995231628,"domainLookupStart":241.29999995231628,"fetchStart":241.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":241.29999995231628,"responseEnd":1137,"responseStart":1137,"secureConnectionStart":241.29999995231628},{"duration":275.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":795,"connectEnd":795,"connectStart":795,"domainLookupEnd":795,"domainLookupStart":795,"fetchStart":795,"redirectEnd":0,"redirectStart":0,"requestStart":795,"responseEnd":1070.9000000953674,"responseStart":1070.9000000953674,"secureConnectionStart":795}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":54,"responseStart":209,"responseEnd":243,"domLoading":219,"domInteractive":1557,"domContentLoadedEventStart":1557,"domContentLoadedEventEnd":1614,"domComplete":3070,"loadEventStart":3070,"loadEventEnd":3071,"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.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1523},{"name":"bigPipe.activity-panel-pipe-id.start","time":1523.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1526.0999999046326},{"name":"activityTabFullyLoaded","time":1620.2000000476837}],"measures":[],"correlationId":"b08821807f5026","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":90,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}