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":1510.6999999284744,"ttfb":353.89999997615814,"pageVisibility":"visible","entityId":130669,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"ecc9026e-16ca-41eb-8c3a-fcb0c621c66d","navigationType":0,"readyForUser":1641,"redirectCount":0,"resourceLoadedEnd":1229.3999999761581,"resourceLoadedStart":366.6999999284744,"resourceTiming":[{"duration":103,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":366.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":366.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":469.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":113.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":366.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":366.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":480.1999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":544.1000000238419,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":367.1999999284744,"connectEnd":367.1999999284744,"connectStart":367.1999999284744,"domainLookupEnd":367.1999999284744,"domainLookupStart":367.1999999284744,"fetchStart":367.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":480.89999997615814,"responseEnd":911.2999999523163,"responseStart":520.7999999523163,"secureConnectionStart":367.1999999284744},{"duration":843.6000000238419,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":367.2999999523163,"connectEnd":367.2999999523163,"connectStart":367.2999999523163,"domainLookupEnd":367.2999999523163,"domainLookupStart":367.2999999523163,"fetchStart":367.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":481.60000002384186,"responseEnd":1210.8999999761581,"responseStart":546.6000000238419,"secureConnectionStart":367.2999999523163},{"duration":169.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":367.5,"connectEnd":367.5,"connectStart":367.5,"domainLookupEnd":367.5,"domainLookupStart":367.5,"fetchStart":367.5,"redirectEnd":0,"redirectStart":0,"requestStart":482.10000002384186,"responseEnd":537,"responseStart":534.1999999284744,"secureConnectionStart":367.5},{"duration":169.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":367.60000002384186,"connectEnd":367.60000002384186,"connectStart":367.60000002384186,"domainLookupEnd":367.60000002384186,"domainLookupStart":367.60000002384186,"fetchStart":367.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":482.1999999284744,"responseEnd":537,"responseStart":534.7999999523163,"secureConnectionStart":367.60000002384186},{"duration":169.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":367.89999997615814,"connectEnd":367.89999997615814,"connectStart":367.89999997615814,"domainLookupEnd":367.89999997615814,"domainLookupStart":367.89999997615814,"fetchStart":367.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":482.2999999523163,"responseEnd":537.1000000238419,"responseStart":535.5,"secureConnectionStart":367.89999997615814},{"duration":114.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":368,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":368,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":482.5,"responseStart":0,"secureConnectionStart":0},{"duration":182,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":368.1999999284744,"connectEnd":368.1999999284744,"connectStart":368.1999999284744,"domainLookupEnd":368.1999999284744,"domainLookupStart":368.1999999284744,"fetchStart":368.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":496.6999999284744,"responseEnd":550.1999999284744,"responseStart":548.3999999761581,"secureConnectionStart":368.1999999284744},{"duration":126.10000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":368.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":368.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":494.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":181.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":368.60000002384186,"connectEnd":368.60000002384186,"connectStart":368.60000002384186,"domainLookupEnd":368.60000002384186,"domainLookupStart":368.60000002384186,"fetchStart":368.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":497,"responseEnd":550.3999999761581,"responseStart":549,"secureConnectionStart":368.60000002384186},{"duration":859.8000000715256,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":369.2999999523163,"connectEnd":369.2999999523163,"connectStart":369.2999999523163,"domainLookupEnd":369.2999999523163,"domainLookupStart":369.2999999523163,"fetchStart":369.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":658,"responseEnd":1229.1000000238419,"responseStart":1217.2999999523163,"secureConnectionStart":369.2999999523163},{"duration":860.1000000238419,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":369.2999999523163,"connectEnd":369.2999999523163,"connectStart":369.2999999523163,"domainLookupEnd":369.2999999523163,"domainLookupStart":369.2999999523163,"fetchStart":369.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":658.3999999761581,"responseEnd":1229.3999999761581,"responseStart":1218.2999999523163,"secureConnectionStart":369.2999999523163},{"duration":333.3000000715256,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1107.7999999523163,"connectEnd":1107.7999999523163,"connectStart":1107.7999999523163,"domainLookupEnd":1107.7999999523163,"domainLookupStart":1107.7999999523163,"fetchStart":1107.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1408.5,"responseEnd":1441.1000000238419,"responseStart":1440.6000000238419,"secureConnectionStart":1107.7999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":117,"responseStart":354,"responseEnd":356,"domLoading":364,"domInteractive":1753,"domContentLoadedEventStart":1753,"domContentLoadedEventEnd":1801,"domComplete":2806,"loadEventStart":2806,"loadEventEnd":2807,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1723.8999999761581},{"name":"bigPipe.sidebar-id.end","time":1724.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1724.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.end","time":1726.1999999284744},{"name":"activityTabFullyLoaded","time":1823}],"measures":[],"correlationId":"686c40b3753b74","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":123,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
It seems that the bb-10.6-mdev-31788 is many (256) commits behind 10.6:
https://github.com/MariaDB/server/compare/bb-10.6-mdev-31788...10.6
It is possible that one of those commits resolved this bug.