I am seeing this stack with some regularity during MDEV-31788 testing:
CS 10.5.26 13ca1ce565c38ab41a6979a5d331efe78d840db1 (Optimized)
|
Core was generated by `/test/MDEV31788_MD020724-mariadb-10.5.26-linux-x86_64-opt/bin/mariadbd --no-def'.
|
Program terminated with signal SIGSEGV, Segmentation fault.
|
#0 my_scan_weight_utf8mb3_bin (end=0x17 <error: Cannot access memory at address 0x17>, str=0xf <error: Cannot access memory at address 0xf>, weight=<synthetic pointer>)at /test/bb-10.5-mdev-31788_opt/strings/strcoll.inl:99
|
|
[Current thread is 1 (LWP 2301109)]
|
(gdb) bt
|
#0 my_scan_weight_utf8mb3_bin (end=0x17 <error: Cannot access memory at address 0x17>, str=0xf <error: Cannot access memory at address 0xf>, weight=<synthetic pointer>)at /test/bb-10.5-mdev-31788_opt/strings/strcoll.inl:99
|
#1 my_scan_weight_utf8mb3_bin (end=0x17 <error: Cannot access memory at address 0x17>, str=0xf <error: Cannot access memory at address 0xf>, weight=<synthetic pointer>)at /test/bb-10.5-mdev-31788_opt/strings/strcoll.inl:90
|
#2 my_strnncoll_utf8mb3_bin (cs=<optimized out>, a=0x1542a82da678 "./test/t", a_length=<optimized out>, b=0xf <error: Cannot access memory at address 0xf>, b_length=<optimized out>, b_is_prefix=0 '\000')at /test/bb-10.5-mdev-31788_opt/strings/strcoll.inl:185
|
#3 0x00005628f702f730 in hashcmp (pos=0x1542a8304a98, pos=0x1542a8304a98, length=0, key=0xf <error: Cannot access memory at address 0xf>, hash=0x1542a8292f28) at /test/bb-10.5-mdev-31788_opt/mysys/hash.c:374
|
#4 my_hash_first_from_hash_value (hash=0x1542a8292f28, hash_value=<optimized out>, key=0xf <error: Cannot access memory at address 0xf>, length=0, current_record=current_record@entry=0x1543481204ac)at /test/bb-10.5-mdev-31788_opt/mysys/hash.c:289
|
#5 0x00005628f702f795 in my_hash_search_using_hash_value (hash=<optimized out>, hash_value=<optimized out>, key=<optimized out>, length=<optimized out>) at /test/bb-10.5-mdev-31788_opt/mysys/hash.c:245
|
#6 0x0000154334877f89 in spider_conn_queue_and_merge_loop_check (conn=conn@entry=0x1542a82927a8, lcptr=lcptr@entry=0x1542a8275598)at /test/bb-10.5-mdev-31788_opt/storage/spider/spd_conn.cc:1073
|
#7 0x00001543348784dd in spider_conn_reset_queue_loop_check (conn=conn@entry=0x1542a82927a8)at /test/bb-10.5-mdev-31788_opt/storage/spider/spd_conn.cc:1194
|
#8 0x000015433487876d in spider_reset_conn_setted_parameter (conn=conn@entry=0x1542a82927a8, thd=thd@entry=0x1542a8000c68)at /test/bb-10.5-mdev-31788_opt/storage/spider/spd_conn.cc:262
|
#9 0x00001543348642eb in spider_db_connect (share=share@entry=0x1542a83e4af8, conn=conn@entry=0x1542a82927a8, link_idx=link_idx@entry=0)at /test/bb-10.5-mdev-31788_opt/storage/spider/spd_db_conn.cc:118
|
#10 0x000015433486456a in spider_db_ping_internal (share=0x1542a83e4af8, conn=conn@entry=0x1542a82927a8, all_link_idx=0, need_mon=<optimized out>)at /test/bb-10.5-mdev-31788_opt/storage/spider/spd_db_conn.cc:172
|
#11 0x0000154334864638 in spider_db_ping (spider=<optimized out>, conn=conn@entry=0x1542a82927a8, link_idx=link_idx@entry=0)at /test/bb-10.5-mdev-31788_opt/storage/spider/spd_db_conn.cc:215
|
#12 0x00001543348cf13f in spider_mbase_handler::show_table_status (this=0x1542a824a730, link_idx=<optimized out>, sts_mode=1, flag=<optimized out>)at /test/bb-10.5-mdev-31788_opt/storage/spider/spd_db_mysql.cc:12782
|
#13 0x0000154334890826 in spider_get_sts (share=share@entry=0x1542a83e4af8, link_idx=0, tmp_time=1720032891, spider=spider@entry=0x1542a8009530, sts_interval=sts_interval@entry=10, sts_mode=1, sts_sync=0, sts_sync_level=1, flag=88)at /test/bb-10.5-mdev-31788_opt/storage/spider/spd_table.cc:6813
|
#14 0x000015433489b1b2 in spider_get_share (table_name=table_name@entry=0x1542a808a2f0 "./test/articles", table=<optimized out>, thd=thd@entry=0x1542a8000c68, spider=spider@entry=0x1542a8009530, error_num=error_num@entry=0x154348120a50)at /test/bb-10.5-mdev-31788_opt/storage/spider/spd_table.cc:4726
|
#15 0x00001543348bbb86 in ha_spider::open (this=0x1542a8009530, name=0x1542a808a2f0 "./test/articles", mode=<optimized out>, test_if_locked=<optimized out>)at /test/bb-10.5-mdev-31788_opt/storage/spider/ha_spider.cc:358
|
#16 0x00005628f6a64a16 in handler::ha_open (this=0x1542a8009530, table_arg=table_arg@entry=0x1542a827b368, name=0x1542a808a2f0 "./test/articles", mode=mode@entry=2, test_if_locked=test_if_locked@entry=18, mem_root=mem_root@entry=0x0, partitions_to_open=0x0) at /test/bb-10.5-mdev-31788_opt/sql/handler.cc:3087
|
#17 0x00005628f69042d3 in open_table_from_share (thd=thd@entry=0x1542a8000c68, share=share@entry=0x1542a8089e50, alias=alias@entry=0x1542a8010d00, db_stat=db_stat@entry=33, prgflag=prgflag@entry=8, ha_open_flags=18, outparam=0x1542a827b368, is_create_table=false, partitions_to_open=0x0)at /test/bb-10.5-mdev-31788_opt/sql/table.cc:4319
|
#18 0x00005628f67b196c in open_table (thd=thd@entry=0x1542a8000c68, table_list=table_list@entry=0x1542a8010cb8, ot_ctx=ot_ctx@entry=0x1543481212f0)at /test/bb-10.5-mdev-31788_opt/sql/sql_base.cc:2024
|
#19 0x00005628f67b4f52 in open_and_process_table (ot_ctx=0x1543481212f0, has_prelocking_list=false, prelocking_strategy=0x1543481213e0, flags=0, counter=0x15434812138c, tables=0x1542a8010cb8, thd=0x1542a8000c68)at /test/bb-10.5-mdev-31788_opt/sql/sql_base.cc:3819
|
#20 open_tables (thd=thd@entry=0x1542a8000c68, options=@0x1542a80061b8: {m_options = DDL_options_st::OPT_NONE}, start=start@entry=0x154348121378, counter=counter@entry=0x15434812138c, flags=flags@entry=0, prelocking_strategy=prelocking_strategy@entry=0x1543481213e0)at /test/bb-10.5-mdev-31788_opt/sql/sql_base.cc:4303
|
#21 0x00005628f67b5c1a in open_and_lock_tables (thd=thd@entry=0x1542a8000c68, options=<optimized out>, tables=<optimized out>, tables@entry=0x1542a8010cb8, derived=derived@entry=true, flags=flags@entry=0, prelocking_strategy=prelocking_strategy@entry=0x1543481213e0)at /test/bb-10.5-mdev-31788_opt/sql/sql_base.cc:5250
|
#22 0x00005628f6814461 in open_and_lock_tables (flags=0, derived=true, tables=0x1542a8010cb8, thd=0x1542a8000c68)at /test/bb-10.5-mdev-31788_opt/sql/sql_base.h:509
|
#23 execute_sqlcom_select (thd=thd@entry=0x1542a8000c68, all_tables=0x1542a8010cb8)at /test/bb-10.5-mdev-31788_opt/sql/sql_parse.cc:6346
|
#24 0x00005628f6823f4d in mysql_execute_command (thd=thd@entry=0x1542a8000c68)at /test/bb-10.5-mdev-31788_opt/sql/sql_parse.cc:4030
|
#25 0x00005628f6825993 in mysql_parse (thd=0x1542a8000c68, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>, is_com_multi=<optimized out>, is_next_command=<optimized out>)at /test/bb-10.5-mdev-31788_opt/sql/sql_parse.cc:8221
|
#26 0x00005628f6828635 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x1542a8000c68, packet=packet@entry=0x1542a846faf9 "SELECT * FROM articles WHERE MATCH(title,body) AGAINST(\"+where +(show what)\" IN BOOLEAN MODE);", packet_length=packet_length@entry=142, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false)at /test/bb-10.5-mdev-31788_opt/sql/sql_parse.cc:1993
|
#27 0x00005628f682a800 in do_command (thd=0x1542a8000c68)at /test/bb-10.5-mdev-31788_opt/sql/sql_parse.cc:1376
|
#28 0x00005628f69350b1 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5628f977bea8, put_in_cache=put_in_cache@entry=true)at /test/bb-10.5-mdev-31788_opt/sql/sql_connect.cc:1417
|
#29 0x00005628f693553d in handle_one_connection (arg=arg@entry=0x5628f977bea8)at /test/bb-10.5-mdev-31788_opt/sql/sql_connect.cc:1319
|
#30 0x00005628f6cead82 in pfs_spawn_thread (arg=0x5628f96e8c08)at /test/bb-10.5-mdev-31788_opt/storage/perfschema/pfs.cc:2201
|
#31 0x000015434a897ada in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:492
|
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
|
While seen with some regularity, as the issue is highly sporadic it is challeging to reduce.
The issue at first glance does not look to be MDEV-31788 related. And though it has not reproduced in base 10.5/10.6 even once (despite many attempts), it has reproduced in the bb-10.6-mdev-31788 branch at revision 5b26a07698b92f58e5d1f55c7929b0e25d1a586b, which is the last commit just before the various mdev-31788 patches, and thus any connection with MDEV-31788 is excluded.
{"report":{"fcp":1543.9000000953674,"ttfb":461.1000003814697,"pageVisibility":"visible","entityId":130669,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"e21c3149-ebe6-4dc4-8791-9e34a4896961","navigationType":0,"readyForUser":1656.7000002861023,"redirectCount":0,"resourceLoadedEnd":1891.2000002861023,"resourceLoadedStart":466.40000009536743,"resourceTiming":[{"duration":489.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":466.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":466.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":956.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":491.09999990463257,"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":466.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":466.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":957.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":533.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":466.90000009536743,"connectEnd":466.90000009536743,"connectStart":466.90000009536743,"domainLookupEnd":466.90000009536743,"domainLookupStart":466.90000009536743,"fetchStart":466.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":466.90000009536743,"responseEnd":1000.1000003814697,"responseStart":1000.1000003814697,"secureConnectionStart":466.90000009536743},{"duration":615,"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":467.1000003814697,"connectEnd":467.1000003814697,"connectStart":467.1000003814697,"domainLookupEnd":467.1000003814697,"domainLookupStart":467.1000003814697,"fetchStart":467.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":467.1000003814697,"responseEnd":1082.1000003814697,"responseStart":1082.1000003814697,"secureConnectionStart":467.1000003814697},{"duration":618.6999998092651,"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":467.30000019073486,"connectEnd":467.30000019073486,"connectStart":467.30000019073486,"domainLookupEnd":467.30000019073486,"domainLookupStart":467.30000019073486,"fetchStart":467.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":467.30000019073486,"responseEnd":1086,"responseStart":1086,"secureConnectionStart":467.30000019073486},{"duration":618.9000000953674,"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":467.5,"connectEnd":467.5,"connectStart":467.5,"domainLookupEnd":467.5,"domainLookupStart":467.5,"fetchStart":467.5,"redirectEnd":0,"redirectStart":0,"requestStart":467.5,"responseEnd":1086.4000000953674,"responseStart":1086.4000000953674,"secureConnectionStart":467.5},{"duration":619.0999999046326,"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":467.7000002861023,"connectEnd":467.7000002861023,"connectStart":467.7000002861023,"domainLookupEnd":467.7000002861023,"domainLookupStart":467.7000002861023,"fetchStart":467.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":467.7000002861023,"responseEnd":1086.8000001907349,"responseStart":1086.8000001907349,"secureConnectionStart":467.7000002861023},{"duration":708,"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":467.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":467.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1175.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":619.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","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":1087.3000001907349,"responseStart":1087.3000001907349,"secureConnectionStart":468.1000003814697},{"duration":708,"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":468.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":468.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1176.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":619.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":468.30000019073486,"connectEnd":468.30000019073486,"connectStart":468.30000019073486,"domainLookupEnd":468.30000019073486,"domainLookupStart":468.30000019073486,"fetchStart":468.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":468.30000019073486,"responseEnd":1087.8000001907349,"responseStart":1087.8000001907349,"secureConnectionStart":468.30000019073486},{"duration":1416.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":473.5,"connectEnd":473.5,"connectStart":473.5,"domainLookupEnd":473.5,"domainLookupStart":473.5,"fetchStart":473.5,"redirectEnd":0,"redirectStart":0,"requestStart":473.5,"responseEnd":1890,"responseStart":1890,"secureConnectionStart":473.5},{"duration":1417.5999999046326,"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":473.6000003814697,"connectEnd":473.6000003814697,"connectStart":473.6000003814697,"domainLookupEnd":473.6000003814697,"domainLookupStart":473.6000003814697,"fetchStart":473.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":473.6000003814697,"responseEnd":1891.2000002861023,"responseStart":1891.2000002861023,"secureConnectionStart":473.6000003814697},{"duration":527,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1201.4000000953674,"connectEnd":1201.4000000953674,"connectStart":1201.4000000953674,"domainLookupEnd":1201.4000000953674,"domainLookupStart":1201.4000000953674,"fetchStart":1201.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1201.4000000953674,"responseEnd":1728.4000000953674,"responseStart":1728.4000000953674,"secureConnectionStart":1201.4000000953674},{"duration":468.40000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1527.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1527.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1995.7000002861023,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":304,"responseStart":461,"responseEnd":468,"domLoading":464,"domInteractive":1931,"domContentLoadedEventStart":1931,"domContentLoadedEventEnd":1992,"domComplete":4032,"loadEventStart":4032,"loadEventEnd":4034,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1895.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1896.7000002861023},{"name":"bigPipe.activity-panel-pipe-id.start","time":1896.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1899.6000003814697},{"name":"activityTabFullyLoaded","time":2000.5}],"measures":[],"correlationId":"d2a806f1ef3ed1","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}