10.2 at commit ce8ee7d90b4f7dd784e1d7587093e671b35303f0
When compiled on Power with CMAKE_BUILD_TYPE=Debug, this fails on all test instigations.
cmake ../mariadb-10.2 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/opt/at10.0/bin/gcc -DCMAKE_CXX_COMPILER=/opt/at10.0/bin/g++ '-DCMAKE_C_FLAGS_RELWITHDEBINFO=-m64 -O3 -g -mtune=native' '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-m64 -O3 -g -mtune=native' '-DCMAKE_C_FLAGS=-m64 -O3 -g -mtune=native' '-DCMAKE_CXX_FLAGS=-m64 -O3 -g -mtune=native' -DWITH_SSL=system -DCMAKE_INSTALL_PREFIX=/mysql/mariadb-upstream-Debug-10.0-at10.0-rc1 -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 -DWITHOUT_FEDERATEDX_STORAGE_ENGINE=1 -DWITHOUT_TOKUDB_STORAGE_ENGINE=1
|
Same assertion fail with gcc-5 and gcc-6
$ gcc-5 --version
|
gcc-5 (Ubuntu/IBM 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
|
$ gcc-6 --version
|
gcc-6 (Ubuntu 6.3.0-12ubuntu1.1) 6.3.0 20170406
|
(cd mysql-test/; ./mtr )
|
|
2017-05-04 12:44:40 70367348770832 [Note] Plugin 'INNODB_SYS_VIRTUAL' is disabled.
|
2017-05-04 12:44:40 70367348770832 [Note] Plugin 'INNODB_TABLESPACES_SCRUBBING' is disabled.
|
mysqld: /home/danielgb/mariadb-10.2/storage/innobase/trx/trx0purge.cc:235: purge_sys_t::~purge_sys_t(): Assertion `latch.magic_n == 0' failed.
|
170504 12:44:42 [ERROR] mysqld got signal 6 ;
|
This could be because you hit a bug. It is also possible that this binary
|
or one of the libraries it was linked against is corrupt, improperly built,
|
or misconfigured. This error can also be caused by malfunctioning hardware.
|
|
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
|
|
We will try our best to scrape up some info that will hopefully help
|
diagnose the problem, but since we have already crashed,
|
something is definitely wrong and this may fail.
|
|
Server version: 10.2.6-MariaDB-debug
|
key_buffer_size=134217728
|
read_buffer_size=131072
|
max_used_connections=0
|
max_threads=153
|
thread_count=0
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467287 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x0
|
Attempting backtrace. You can use the following information to find out
|
where mysqld died. If you see no messages after this, something went
|
terribly wrong...
|
stack_bottom = 0x0 thread_stack 0x49000
|
/home/danielgb/build-mariadb-10.2-gcc/sql/mysqld(my_print_stacktrace+0x60)[0x457f4f60]
|
/home/danielgb/build-mariadb-10.2-gcc/sql/mysqld(handle_fatal_signal+0x440)[0x44fc76e0]
|
[0x3fffaccc04d8]
|
/lib/powerpc64le-linux-gnu/libc.so.6(gsignal+0x40)[0x3fffac19edb0]
|
/lib/powerpc64le-linux-gnu/libc.so.6(abort+0x2b4)[0x3fffac1a1314]
|
/lib/powerpc64le-linux-gnu/libc.so.6(+0x34290)[0x3fffac194290]
|
/lib/powerpc64le-linux-gnu/libc.so.6(__assert_fail+0x64)[0x3fffac194384]
|
/home/danielgb/build-mariadb-10.2-gcc/sql/mysqld(+0xbb9d64)[0x453f9d64]
|
/home/danielgb/build-mariadb-10.2-gcc/sql/mysqld(+0xb90318)[0x453d0318]
|
/home/danielgb/build-mariadb-10.2-gcc/sql/mysqld(+0x9cb8ec)[0x4520b8ec]
|
/home/danielgb/build-mariadb-10.2-gcc/sql/mysqld(_Z22ha_finalize_handlertonP13st_plugin_int+0x8c)[0x44fcb61c]
|
/home/danielgb/build-mariadb-10.2-gcc/sql/mysqld(+0x54c4cc)[0x44d8c4cc]
|
mysys/stacktrace.c:267(my_print_stacktrace)[0x44d94728]
|
/home/danielgb/build-mariadb-10.2-gcc/sql/mysqld(_Z15plugin_shutdownv+0x5b4)[0x44d95de4]
|
/home/danielgb/build-mariadb-10.2-gcc/sql/mysqld(+0x45fb60)[0x44c9fb60]
|
trx/trx0purge.cc:235(purge_sys_t::~purge_sys_t())[0x44ca3890]
|
/home/danielgb/build-mariadb-10.2-gcc/sql/mysqld(_Z11mysqld_mainiPPc+0x10b8)[0x44cadb58]
|
srv/srv0start.cc:2834(innodb_shutdown())[0x44c827e8]
|
/lib/powerpc64le-linux-gnu/libc.so.6(+0x2309c)[0x3fffac18309c]
|
/lib/powerpc64le-linux-gnu/libc.so.6(__libc_start_main+0xb8)[0x3fffac183298]
|
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
|
information that should help you find out what is causing the crash.
|
Writing a core file
|
mysqld: /home/danielgb/mariadb-10.2/storage/innobase/trx/trx0purge.cc:235: purge_sys_t::~purge_sys_t(): Assertion `latch.magic_n == 0' failed.
|
|
Thread 1 "mysqld" received signal SIGABRT, Aborted.
|
0x00003fffb745edb0 in __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:54
|
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
|
(gdb) bt
|
#0 0x00003fffb745edb0 in __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:54
|
#1 0x00003fffb7461270 in __GI_abort () at abort.c:89
|
#2 0x00003fffb7454290 in __assert_fail_base (fmt=<optimized out>, assertion=0x211bb570 "latch.magic_n == 0",
|
file=0x211bb500 "/home/danielgb/mariadb-10.2/storage/innobase/trx/trx0purge.cc", line=<optimized out>, function=<optimized out>) at assert.c:92
|
#3 0x00003fffb7454384 in __GI___assert_fail (assertion=0x211bb570 "latch.magic_n == 0", file=0x211bb500 "/home/danielgb/mariadb-10.2/storage/innobase/trx/trx0purge.cc",
|
line=<optimized out>, function=0x211bab40 <purge_sys_t::~purge_sys_t()::__PRETTY_FUNCTION__> "purge_sys_t::~purge_sys_t()") at assert.c:101
|
#4 0x0000000020bb9d64 in purge_sys_t::~purge_sys_t (this=<optimized out>, __in_chrg=<optimized out>) at /home/danielgb/mariadb-10.2/storage/innobase/trx/trx0purge.cc:235
|
#5 0x0000000020b90318 in innodb_shutdown () at /home/danielgb/mariadb-10.2/storage/innobase/srv/srv0start.cc:2834
|
#6 0x00000000209cb8ec in innobase_end (hton=<optimized out>, type=<optimized out>) at /home/danielgb/mariadb-10.2/storage/innobase/handler/ha_innodb.cc:4593
|
#7 0x000000002078b61c in ha_finalize_handlerton (plugin=0x22103328) at /home/danielgb/mariadb-10.2/sql/handler.cc:451
|
#8 0x000000002054c4cc in plugin_deinitialize (plugin=0x22103328, ref_check=true) at /home/danielgb/mariadb-10.2/sql/sql_plugin.cc:1209
|
#9 0x0000000020554728 in reap_plugins () at /home/danielgb/mariadb-10.2/sql/sql_plugin.cc:1286
|
#10 0x0000000020555de4 in plugin_shutdown () at /home/danielgb/mariadb-10.2/sql/sql_plugin.cc:1938
|
#11 0x000000002045fb60 in clean_up (print_message=<optimized out>) at /home/danielgb/mariadb-10.2/sql/mysqld.cc:2201
|
#12 0x0000000020463890 in unireg_abort (exit_code=<optimized out>) at /home/danielgb/mariadb-10.2/sql/mysqld.cc:2120
|
#13 0x000000002046db58 in mysqld_main (argc=<optimized out>, argv=<optimized out>) at /home/danielgb/mariadb-10.2/sql/mysqld.cc:5947
|
#14 0x00000000204427e8 in main (argc=<optimized out>, argv=<optimized out>) at /home/danielgb/mariadb-10.2/sql/main.cc:25
|
{"report":{"fcp":1924.6999998092651,"ttfb":647.1999998092651,"pageVisibility":"visible","entityId":61182,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"615d3d57-f8ff-4b53-9c9e-be0d09d38467","navigationType":0,"readyForUser":2069.199999809265,"redirectCount":0,"resourceLoadedEnd":2086,"resourceLoadedStart":659.8000001907349,"resourceTiming":[{"duration":431.8999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":659.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":659.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1091.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":432,"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":660,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":660,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1092,"responseStart":0,"secureConnectionStart":0},{"duration":441.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":660.1999998092651,"connectEnd":660.1999998092651,"connectStart":660.1999998092651,"domainLookupEnd":660.1999998092651,"domainLookupStart":660.1999998092651,"fetchStart":660.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":660.1999998092651,"responseEnd":1102,"responseStart":1102,"secureConnectionStart":660.1999998092651},{"duration":693.7999997138977,"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":660.4000000953674,"connectEnd":660.4000000953674,"connectStart":660.4000000953674,"domainLookupEnd":660.4000000953674,"domainLookupStart":660.4000000953674,"fetchStart":660.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":660.4000000953674,"responseEnd":1354.1999998092651,"responseStart":1354.1999998092651,"secureConnectionStart":660.4000000953674},{"duration":697.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":660.5999999046326,"connectEnd":660.5999999046326,"connectStart":660.5999999046326,"domainLookupEnd":660.5999999046326,"domainLookupStart":660.5999999046326,"fetchStart":660.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":660.5999999046326,"responseEnd":1358.1999998092651,"responseStart":1358.1999998092651,"secureConnectionStart":660.5999999046326},{"duration":697.6999998092651,"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":660.9000000953674,"connectEnd":660.9000000953674,"connectStart":660.9000000953674,"domainLookupEnd":660.9000000953674,"domainLookupStart":660.9000000953674,"fetchStart":660.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":660.9000000953674,"responseEnd":1358.5999999046326,"responseStart":1358.5999999046326,"secureConnectionStart":660.9000000953674},{"duration":698,"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":661,"connectEnd":661,"connectStart":661,"domainLookupEnd":661,"domainLookupStart":661,"fetchStart":661,"redirectEnd":0,"redirectStart":0,"requestStart":661,"responseEnd":1359,"responseStart":1359,"secureConnectionStart":661},{"duration":709.4000000953674,"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":661.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":661.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1370.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":698.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":661.3000001907349,"connectEnd":661.3000001907349,"connectStart":661.3000001907349,"domainLookupEnd":661.3000001907349,"domainLookupStart":661.3000001907349,"fetchStart":661.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":661.3000001907349,"responseEnd":1359.5999999046326,"responseStart":1359.5999999046326,"secureConnectionStart":661.3000001907349},{"duration":709.1999998092651,"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":661.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":661.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1370.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":698.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":661.5999999046326,"connectEnd":661.5999999046326,"connectStart":661.5999999046326,"domainLookupEnd":661.5999999046326,"domainLookupStart":661.5999999046326,"fetchStart":661.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":661.5999999046326,"responseEnd":1360.0999999046326,"responseStart":1360.0999999046326,"secureConnectionStart":661.5999999046326},{"duration":1291.1999998092651,"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":662.4000000953674,"connectEnd":662.4000000953674,"connectStart":662.4000000953674,"domainLookupEnd":662.4000000953674,"domainLookupStart":662.4000000953674,"fetchStart":662.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":662.4000000953674,"responseEnd":1953.5999999046326,"responseStart":1953.5999999046326,"secureConnectionStart":662.4000000953674},{"duration":1416.1999998092651,"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":669.8000001907349,"connectEnd":669.8000001907349,"connectStart":669.8000001907349,"domainLookupEnd":669.8000001907349,"domainLookupStart":669.8000001907349,"fetchStart":669.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":669.8000001907349,"responseEnd":2086,"responseStart":2086,"secureConnectionStart":669.8000001907349},{"duration":452.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1279,"connectEnd":1279,"connectStart":1279,"domainLookupEnd":1279,"domainLookupStart":1279,"fetchStart":1279,"redirectEnd":0,"redirectStart":0,"requestStart":1279,"responseEnd":1731.5,"responseStart":1731.5,"secureConnectionStart":1279}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":77,"responseStart":648,"responseEnd":669,"domLoading":658,"domInteractive":2166,"domContentLoadedEventStart":2166,"domContentLoadedEventEnd":2225,"domComplete":2992,"loadEventStart":2992,"loadEventEnd":2993,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2144.5},{"name":"bigPipe.sidebar-id.end","time":2145.199999809265},{"name":"bigPipe.activity-panel-pipe-id.start","time":2145.300000190735},{"name":"bigPipe.activity-panel-pipe-id.end","time":2147.5999999046326},{"name":"activityTabFullyLoaded","time":2272.300000190735}],"measures":[],"correlationId":"3cbbc4d72881d3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":464,"dbReadsTimeInMs":12,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thanks, danblack!
Is it possible that your build is defining neither UNIV_DEBUG nor DBUG_OFF? In that case, the ut_d() would have no effect, but ut_ad() would map to assert(). In that case, this should fail every time. The problem would appear to be that rw_lock_free_func() is not calling the destructor (in the dump, magic_n is at RW_LOCK_MAGIC_N, which rw_lock_t::rw_lock_t() assigned it to) but the ut_ad() assertion in purge_sys_t::~purge_sys_t() expected that to happen.
If the above guess is correct, then this should be a regression caused by
MDEV-12269(making UNIV_DEBUG depend on DBUG_OFF).