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":1311.7000000476837,"ttfb":304.40000009536743,"pageVisibility":"visible","entityId":125328,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"e8632656-637e-439f-bf4b-e7be2815925a","navigationType":0,"readyForUser":1399.6000001430511,"redirectCount":0,"resourceLoadedEnd":1540.8000001907349,"resourceLoadedStart":314.60000014305115,"resourceTiming":[{"duration":462.7999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":314.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":314.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":777.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":462.80000019073486,"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":315,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":315,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":777.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":477.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":315.10000014305115,"connectEnd":315.10000014305115,"connectStart":315.10000014305115,"domainLookupEnd":315.10000014305115,"domainLookupStart":315.10000014305115,"fetchStart":315.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":315.10000014305115,"responseEnd":792.4000000953674,"responseStart":792.4000000953674,"secureConnectionStart":315.10000014305115},{"duration":579.0999999046326,"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":315.40000009536743,"connectEnd":315.40000009536743,"connectStart":315.40000009536743,"domainLookupEnd":315.40000009536743,"domainLookupStart":315.40000009536743,"fetchStart":315.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":315.40000009536743,"responseEnd":894.5,"responseStart":894.5,"secureConnectionStart":315.40000009536743},{"duration":605.5999999046326,"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":315.60000014305115,"connectEnd":315.60000014305115,"connectStart":315.60000014305115,"domainLookupEnd":315.60000014305115,"domainLookupStart":315.60000014305115,"fetchStart":315.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":315.60000014305115,"responseEnd":921.2000000476837,"responseStart":921.2000000476837,"secureConnectionStart":315.60000014305115},{"duration":615.5,"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":315.80000019073486,"connectEnd":315.80000019073486,"connectStart":315.80000019073486,"domainLookupEnd":315.80000019073486,"domainLookupStart":315.80000019073486,"fetchStart":315.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":315.80000019073486,"responseEnd":931.3000001907349,"responseStart":931.3000001907349,"secureConnectionStart":315.80000019073486},{"duration":643.3000001907349,"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":316,"connectEnd":316,"connectStart":316,"domainLookupEnd":316,"domainLookupStart":316,"fetchStart":316,"redirectEnd":0,"redirectStart":0,"requestStart":316,"responseEnd":959.3000001907349,"responseStart":959.3000001907349,"secureConnectionStart":316},{"duration":666.9000000953674,"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":316.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":316.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":983.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":666.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":316.40000009536743,"connectEnd":316.40000009536743,"connectStart":316.40000009536743,"domainLookupEnd":316.40000009536743,"domainLookupStart":316.40000009536743,"fetchStart":316.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":316.40000009536743,"responseEnd":982.8000001907349,"responseStart":982.8000001907349,"secureConnectionStart":316.40000009536743},{"duration":675.0999999046326,"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":316.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":316.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":991.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":674,"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":316.7000000476837,"connectEnd":316.7000000476837,"connectStart":316.7000000476837,"domainLookupEnd":316.7000000476837,"domainLookupStart":316.7000000476837,"fetchStart":316.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":316.7000000476837,"responseEnd":990.7000000476837,"responseStart":990.7000000476837,"secureConnectionStart":316.7000000476837},{"duration":1007.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":318.5,"connectEnd":318.5,"connectStart":318.5,"domainLookupEnd":318.5,"domainLookupStart":318.5,"fetchStart":318.5,"redirectEnd":0,"redirectStart":0,"requestStart":318.5,"responseEnd":1326,"responseStart":1326,"secureConnectionStart":318.5},{"duration":1222.3000001907349,"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":318.5,"connectEnd":318.5,"connectStart":318.5,"domainLookupEnd":318.5,"domainLookupStart":318.5,"fetchStart":318.5,"redirectEnd":0,"redirectStart":0,"requestStart":318.5,"responseEnd":1540.8000001907349,"responseStart":1540.8000001907349,"secureConnectionStart":318.5},{"duration":352,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":973.6000001430511,"connectEnd":973.6000001430511,"connectStart":973.6000001430511,"domainLookupEnd":973.6000001430511,"domainLookupStart":973.6000001430511,"fetchStart":973.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":973.6000001430511,"responseEnd":1325.6000001430511,"responseStart":1325.6000001430511,"secureConnectionStart":973.6000001430511},{"duration":257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1303.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1303.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1560.3000001907349,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":153,"responseStart":305,"responseEnd":308,"domLoading":312,"domInteractive":1567,"domContentLoadedEventStart":1567,"domContentLoadedEventEnd":1621,"domComplete":1866,"loadEventStart":1866,"loadEventEnd":1866,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1542.7000000476837},{"name":"bigPipe.sidebar-id.end","time":1543.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":1543.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1546.3000001907349},{"name":"activityTabFullyLoaded","time":1636}],"measures":[],"correlationId":"d47fd1493f74f1","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":93,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"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.