On centos7-bintar in buildbot, the test case binlog_encryption.rpl_special_charset crashes during server exit inside the stack unwinding in pthread_exit():
Thread 1 (Thread 0x7ff1fa7fc700 (LWP 72336)):
|
#0 0x00007ff21f00caa1 in pthread_kill () from /lib64/libpthread.so.0
|
#1 0x000055eb81142eae in handle_fatal_signal (sig=6) at /home/buildbot/knielsen/mariadb-10.4.32/sql/signal_handler.cc:372
|
#2 <signal handler called>
|
#3 0x00007ff21e436387 in raise () from /lib64/libc.so.6
|
#4 0x00007ff21e437a78 in abort () from /lib64/libc.so.6
|
#5 0x000055eb818d03de in _Unwind_SetGR ()
|
#6 0x000055eb81874628 in __gxx_personality_v0 ()
|
#7 0x00007ff21bc0f9f4 in ?? () from /lib64/libgcc_s.so.1
|
#8 0x00007ff21bc0fd44 in _Unwind_ForcedUnwind () from /lib64/libgcc_s.so.1
|
#9 0x00007ff21f00e362 in __pthread_unwind () from /lib64/libpthread.so.0
|
#10 0x00007ff21f008ef7 in pthread_exit () from /lib64/libpthread.so.0
|
#11 0x000055eb80e39d05 in os_thread_exit (detach=detach@entry=true) at /home/buildbot/knielsen/mariadb-10.4.32/storage/innobase/os/os0thread.cc:199
|
#12 0x000055eb815ad871 in btr_defragment_thread () at /home/buildbot/knielsen/mariadb-10.4.32/storage/innobase/btr/btr0defragment.cc:801
|
#13 0x00007ff21f007ea5 in start_thread () from /lib64/libpthread.so.0
|
#14 0x00007ff21e4feb0d in clone () from /lib64/libc.so.6
|
The problem is that the unwind code gets an invalid register number and asserts.
The build is made with static linking of some system libraries:
cmake . -DWITH_READLINE=1 -DBUILD_CONFIG=mysql_release -DCMAKE_C_FLAGS="-static-libgcc -static-libstdc++ -DGNUTLS_NO_SIGNAL=0" -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -DGNUTLS_NO_SIGNAL=0" -DWITH_SSL=bundled -DPLATFORM=linux-systemd && make -j10 package
|
Removing the two flags -static-libgcc and -static-libstdc++ makes the problem go away.
It seems problematic to link a few system libraries static like this. I suggest to remove those options.
Exact commands to reproduce:
ssh bb-amd64.mariadb.org
|
|
docker run -it --user root quay.io/mariadb-foundation/bb-worker:centos7-bintar bash
|
su - buildbot
|
wget https://ci.mariadb.org/38760/mariadb-10.4.32.tar.gz
|
tar xf mariadb-10.4.32.tar.gz
|
cd mariadb-10.4.32
|
cmake . -DWITH_READLINE=1 -DBUILD_CONFIG=mysql_release -DCMAKE_C_FLAGS="-static-libgcc -static-libstdc++ -DGNUTLS_NO_SIGNAL=0" -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -DGNUTLS_NO_SIGNAL=0" -DWITH_SSL=bundled -DPLATFORM=linux-systemd && make -j10
|
(cd mysql-test/ && perl mysql-test-run.pl --mysqld=--binlog-format=mixed binlog_encryption.rpl_special_charset)
|
- relates to
-
MDEV-25633
MariaDB crashes when compiled with link time optimizations
-
-
Closed
{"report":{"fcp":1495.9000000953674,"ttfb":237.19999980926514,"pageVisibility":"visible","entityId":125328,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"436d6b7a-4c07-48e4-a44b-f3ce50e368c9","navigationType":0,"readyForUser":1588.1999998092651,"redirectCount":0,"resourceLoadedEnd":2788.2999997138977,"resourceLoadedStart":245.19999980926514,"resourceTiming":[{"duration":704.9000000953674,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":245.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":245.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":950.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":704.9000000953674,"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":245.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":245.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":950.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":713.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":245.69999980926514,"connectEnd":245.69999980926514,"connectStart":245.69999980926514,"domainLookupEnd":245.69999980926514,"domainLookupStart":245.69999980926514,"fetchStart":245.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":245.69999980926514,"responseEnd":959.5,"responseStart":959.5,"secureConnectionStart":245.69999980926514},{"duration":768.6999998092651,"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":245.90000009536743,"connectEnd":245.90000009536743,"connectStart":245.90000009536743,"domainLookupEnd":245.90000009536743,"domainLookupStart":245.90000009536743,"fetchStart":245.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":245.90000009536743,"responseEnd":1014.5999999046326,"responseStart":1014.5999999046326,"secureConnectionStart":245.90000009536743},{"duration":773.4000000953674,"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":246.09999990463257,"connectEnd":246.09999990463257,"connectStart":246.09999990463257,"domainLookupEnd":246.09999990463257,"domainLookupStart":246.09999990463257,"fetchStart":246.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":246.09999990463257,"responseEnd":1019.5,"responseStart":1019.5,"secureConnectionStart":246.09999990463257},{"duration":774.2000002861023,"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":246.2999997138977,"connectEnd":246.2999997138977,"connectStart":246.2999997138977,"domainLookupEnd":246.2999997138977,"domainLookupStart":246.2999997138977,"fetchStart":246.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":246.2999997138977,"responseEnd":1020.5,"responseStart":1020.5,"secureConnectionStart":246.2999997138977},{"duration":774.9000000953674,"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":246.5,"connectEnd":246.5,"connectStart":246.5,"domainLookupEnd":246.5,"domainLookupStart":246.5,"fetchStart":246.5,"redirectEnd":0,"redirectStart":0,"requestStart":246.5,"responseEnd":1021.4000000953674,"responseStart":1021.4000000953674,"secureConnectionStart":246.5},{"duration":883.8000001907349,"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":246.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":246.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1130.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":776.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":246.69999980926514,"connectEnd":246.69999980926514,"connectStart":246.69999980926514,"domainLookupEnd":246.69999980926514,"domainLookupStart":246.69999980926514,"fetchStart":246.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":246.69999980926514,"responseEnd":1023.0999999046326,"responseStart":1023.0999999046326,"secureConnectionStart":246.69999980926514},{"duration":884,"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":246.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":246.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1130.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":777,"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":247.09999990463257,"connectEnd":247.09999990463257,"connectStart":247.09999990463257,"domainLookupEnd":247.09999990463257,"domainLookupStart":247.09999990463257,"fetchStart":247.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":247.09999990463257,"responseEnd":1024.0999999046326,"responseStart":1024.0999999046326,"secureConnectionStart":247.09999990463257},{"duration":2132.8999996185303,"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":252.90000009536743,"connectEnd":252.90000009536743,"connectStart":252.90000009536743,"domainLookupEnd":252.90000009536743,"domainLookupStart":252.90000009536743,"fetchStart":252.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":252.90000009536743,"responseEnd":2385.7999997138977,"responseStart":2385.7999997138977,"secureConnectionStart":252.90000009536743},{"duration":2516.7999997138977,"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":271.5,"connectEnd":271.5,"connectStart":271.5,"domainLookupEnd":271.5,"domainLookupStart":271.5,"fetchStart":271.5,"redirectEnd":0,"redirectStart":0,"requestStart":271.5,"responseEnd":2788.2999997138977,"responseStart":2788.2999997138977,"secureConnectionStart":271.5},{"duration":1221.6000003814697,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1164.7999997138977,"connectEnd":1164.7999997138977,"connectStart":1164.7999997138977,"domainLookupEnd":1164.7999997138977,"domainLookupStart":1164.7999997138977,"fetchStart":1164.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1164.7999997138977,"responseEnd":2386.4000000953674,"responseStart":2386.2999997138977,"secureConnectionStart":1164.7999997138977}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":84,"responseStart":237,"responseEnd":265,"domLoading":243,"domInteractive":2814,"domContentLoadedEventStart":2814,"domContentLoadedEventEnd":2861,"domComplete":3786,"loadEventStart":3786,"loadEventEnd":3787,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2790.2999997138977},{"name":"bigPipe.sidebar-id.end","time":2791.199999809265},{"name":"bigPipe.activity-panel-pipe-id.start","time":2791.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":2793.199999809265},{"name":"activityTabFullyLoaded","time":2876.4000000953674}],"measures":[],"correlationId":"44985cba368d5e","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":91,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
As it looks like we aren't doing anything particularly wrong, if its reproducible on the RHEL7 we can put in a support ticket for Red Hat to fix.