I can reproduce really easely now :
terminate called after throwing an instance of 'std::bad_alloc'
|
what(): std::bad_alloc
|
250324 17:41:46 [ERROR] /usr/sbin/mariadbd got signal 6 ;
|
Sorry, we probably made a mistake, and this is a bug.
|
|
Your assistance in bug reporting will enable us to fix this for the next release.
|
To report this bug, see https://mariadb.com/kb/en/reporting-bugs about how to report
|
a bug on https://jira.mariadb.org/.
|
|
Please include the information from the server start above, to the end of the
|
information below.
|
|
Server version: 10.11.11-MariaDB-deb12-log source revision: e69f8cae1a15e15b9e4f5e0f8497e1f17bdc81a4
|
|
The information page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mariadbd/
|
contains instructions to obtain a better version of the backtrace below.
|
Following these instructions will help MariaDB developers provide a fix quicker.
|
|
Attempting backtrace. Include this in the bug report.
|
(note: Retrieving this information may fail)
|
|
Thread pointer: 0x0
|
stack_bottom = 0x0 thread_stack 0x49000
|
Can't start addr2line
|
/usr/sbin/mariadbd(my_print_stacktrace+0x2e)[0x55e77f50200e]
|
/usr/sbin/mariadbd(handle_fatal_signal+0x229)[0x55e77efe0e89]
|
/lib/x86_64-linux-gnu/libc.so.6(+0x3c050)[0x7fd928e5b050]
|
/lib/x86_64-linux-gnu/libc.so.6(+0x8aebc)[0x7fd928ea9ebc]
|
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x12)[0x7fd928e5afb2]
|
/lib/x86_64-linux-gnu/libc.so.6(abort+0xd3)[0x7fd928e45472]
|
/lib/x86_64-linux-gnu/libstdc++.so.6(+0x9d919)[0x7fd92909d919]
|
/lib/x86_64-linux-gnu/libstdc++.so.6(+0xa8e1a)[0x7fd9290a8e1a]
|
/lib/x86_64-linux-gnu/libstdc++.so.6(+0xa8e85)[0x7fd9290a8e85]
|
/lib/x86_64-linux-gnu/libstdc++.so.6(+0xa90d8)[0x7fd9290a90d8]
|
/lib/x86_64-linux-gnu/libstdc++.so.6(+0x9d524)[0x7fd92909d524]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZN7rocksdb18FilePrefetchBuffer8PrefetchEPNS_22RandomAccessFileReaderEmmb+0x1e7)[0x7fd8bcef7db7]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZN7rocksdb18FilePrefetchBuffer16TryReadFromCacheEmmPNS_5SliceEb+0x94)[0x7fd8bcef7f34]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZN7rocksdb12BlockFetcher17ReadBlockContentsEv+0x8a)[0x7fd8bce090aa]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(+0x3d86e6)[0x7fd8bcdd86e6]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZNK7rocksdb15BlockBasedTable13RetrieveBlockINS_5BlockEEENS_6StatusEPNS_18FilePrefetchBufferERKNS_11ReadOptionsERKNS_11BlockHandleERKNS_17UncompressionDictEPNS_13CachableEntryIT_EENS_9BlockTypeEPNS_10GetContextEPNS_23BlockCacheLookupContextEbb+0x1bc)[0x7fd8bcdf13ac]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZNK7rocksdb15BlockBasedTable20NewDataBlockIteratorINS_13DataBlockIterEEEPT_RKNS_11ReadOptionsERKNS_11BlockHandleES4_NS_9BlockTypeEPNS_10GetContextEPNS_23BlockCacheLookupContextENS_6StatusEPNS_18FilePrefetchBufferEb+0x490)[0x7fd8bcdf3970]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZN7rocksdb23BlockBasedTableIteratorINS_13DataBlockIterENS_5SliceEE13InitDataBlockEv+0xc9)[0x7fd8bcdfbf59]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZN7rocksdb23BlockBasedTableIteratorINS_13DataBlockIterENS_5SliceEE11SeekToFirstEv+0x1c8)[0x7fd8bcdff348]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(+0x33c5e7)[0x7fd8bcd3c5e7]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZN7rocksdb13CompactionJob25ProcessKeyValueCompactionEPNS0_18SubcompactionStateE+0x396)[0x7fd8bcedcc06]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZN7rocksdb13CompactionJob3RunEv+0xaa5)[0x7fd8bcedeb85]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZN7rocksdb6DBImpl20BackgroundCompactionEPbPNS_10JobContextEPNS_9LogBufferEPNS0_19PrepickedCompactionENS_3Env8PriorityE+0xeb9)[0x7fd8bcc8e2c9]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZN7rocksdb6DBImpl24BackgroundCallCompactionEPNS0_19PrepickedCompactionENS_3Env8PriorityE+0xf3)[0x7fd8bcc92f23]
|
2025-03-24 17:41:46 0 [Note] /usr/sbin/mariadbd (initiated by: unknown): Normal shutdown
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZN7rocksdb6DBImpl16BGWorkCompactionEPv+0x3a)[0x7fd8bcc9398a]
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZN7rocksdb14ThreadPoolImpl4Impl8BGThreadEm+0x260)[0x7fd8bce4e5f0]
|
2025-03-24 17:41:46 0 [Note] Event Scheduler: Killing the scheduler thread, thread id 2
|
2025-03-24 17:41:46 0 [Note] Event Scheduler: Waiting for the scheduler thread to reply
|
/usr/lib/mysql/plugin/ha_rocksdb.so(_ZN7rocksdb14ThreadPoolImpl4Impl15BGThreadWrapperEPv+0x5f)[0x7fd8bce4e7af]
|
2025-03-24 17:41:46 0 [Note] Event Scheduler: Stopped
|
/lib/x86_64-linux-gnu/libstdc++.so.6(+0xd44a3)[0x7fd9290d44a3]
|
/lib/x86_64-linux-gnu/libc.so.6(+0x891c4)[0x7fd928ea81c4]
|
/lib/x86_64-linux-gnu/libc.so.6(+0x10985c)[0x7fd928f2885c]
|
Writing a core file...
|
Working directory at /srv/mysql/data
|
Resource Limits (excludes unlimited resources):
|
Limit Soft Limit Hard Limit Units
|
Max stack size 8388608 unlimited bytes
|
Max core file size 0 unlimited bytes
|
Max processes 63785 63785 processes
|
Max open files 32768 32768 files
|
Max locked memory 524288 524288 bytes
|
Max pending signals 63785 63785 signals
|
Max msgqueue size 819200 819200 bytes
|
Max nice priority 0 0
|
Max realtime priority 0 0
|
Core pattern: core
|
|
Kernel version: Linux version 6.1.0-31-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07)
|
my.cnf for RocksDB options
rocksdb_flush_log_at_trx-commit=2
|
rocksdb_allow_concurrent_memtable_write=1
|
rocksdb_allow_to_start_after_corruption=1
|
rocksdb_db_write_buffer_size=256M
|
rocksdb_block_cache_size=1G
|
rocksdb_deadlock_detect=1
|
rocksdb_delayed_write_rate=167772160
|
rocksdb_table_cache_numshardbits=6
|
rocksdb_print_snapshot_conflict_queries=ON
|
rocksdb_two_write_queues=ON
|
rocksdb_use_direct_io_for_flush_and_compaction=ON
|
rocksdb_wal_recovery_mode=2
|
rocksdb_max_total_wal_size = 1G
|
rocksdb_compaction_readahead_size=1G
|
rocksdb_max_background_jobs=4
|
rocksdb_compaction_readahead_size=16M # Optimisation pour éviter des lectures trop petites
|
rocksdb_use_direct_reads=ON
|
rocksdb_use_direct_io_for_flush_and_compaction=ON
|
rocksdb_skip_fill_cache=ON
|
it's complain about lack of memory : (the server got RAM 10Go free)
[ERROR] mariadbd: Out of memory (Needed 33554400 bytes)
|
...
|
But more than 10Go available on server, when swap is activated RocksDB can took memory as defined if not complain about lack of memory.
read : https://jira.mariadb.org/browse/MDEV-36252?filter=-2 for more informations
- is part of
-
MDEV-36252
RocksDB => MariaDB Blocked (100% of cases)
-
-
Open
{"report":{"fcp":1496.1000003814697,"ttfb":368.5,"pageVisibility":"visible","entityId":133470,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a0c1e8a1-4837-45a3-a5c3-6b585014ee73","navigationType":0,"readyForUser":1655,"redirectCount":0,"resourceLoadedEnd":1994.7000007629395,"resourceLoadedStart":375,"resourceTiming":[{"duration":494.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":375,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":375,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":869.5,"responseStart":0,"secureConnectionStart":0},{"duration":494.5,"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":375.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":375.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":869.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":505,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":375.6000003814697,"connectEnd":375.6000003814697,"connectStart":375.6000003814697,"domainLookupEnd":375.6000003814697,"domainLookupStart":375.6000003814697,"fetchStart":375.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":375.6000003814697,"responseEnd":880.6000003814697,"responseStart":880.6000003814697,"secureConnectionStart":375.6000003814697},{"duration":657.6000003814697,"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":375.80000019073486,"connectEnd":375.80000019073486,"connectStart":375.80000019073486,"domainLookupEnd":375.80000019073486,"domainLookupStart":375.80000019073486,"fetchStart":375.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":375.80000019073486,"responseEnd":1033.4000005722046,"responseStart":1033.4000005722046,"secureConnectionStart":375.80000019073486},{"duration":665.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":375.9000005722046,"connectEnd":375.9000005722046,"connectStart":375.9000005722046,"domainLookupEnd":375.9000005722046,"domainLookupStart":375.9000005722046,"fetchStart":375.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":375.9000005722046,"responseEnd":1041.6000003814697,"responseStart":1041.6000003814697,"secureConnectionStart":375.9000005722046},{"duration":665.9000005722046,"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":376.30000019073486,"connectEnd":376.30000019073486,"connectStart":376.30000019073486,"domainLookupEnd":376.30000019073486,"domainLookupStart":376.30000019073486,"fetchStart":376.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":376.30000019073486,"responseEnd":1042.2000007629395,"responseStart":1042.2000007629395,"secureConnectionStart":376.30000019073486},{"duration":666.2000007629395,"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":376.5,"connectEnd":376.5,"connectStart":376.5,"domainLookupEnd":376.5,"domainLookupStart":376.5,"fetchStart":376.5,"redirectEnd":0,"redirectStart":0,"requestStart":376.5,"responseEnd":1042.7000007629395,"responseStart":1042.7000007629395,"secureConnectionStart":376.5},{"duration":686.1000003814697,"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":376.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":376.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1062.7000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":670.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":376.9000005722046,"connectEnd":376.9000005722046,"connectStart":376.9000005722046,"domainLookupEnd":376.9000005722046,"domainLookupStart":376.9000005722046,"fetchStart":376.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":376.9000005722046,"responseEnd":1047.2000007629395,"responseStart":1047.2000007629395,"secureConnectionStart":376.9000005722046},{"duration":685.9000005722046,"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":377,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":377,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1062.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":670.6999998092651,"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":377.1000003814697,"connectEnd":377.1000003814697,"connectStart":377.1000003814697,"domainLookupEnd":377.1000003814697,"domainLookupStart":377.1000003814697,"fetchStart":377.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":377.1000003814697,"responseEnd":1047.8000001907349,"responseStart":1047.8000001907349,"secureConnectionStart":377.1000003814697},{"duration":1571.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":384.70000076293945,"connectEnd":384.70000076293945,"connectStart":384.70000076293945,"domainLookupEnd":384.70000076293945,"domainLookupStart":384.70000076293945,"fetchStart":384.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":384.70000076293945,"responseEnd":1955.9000005722046,"responseStart":1955.9000005722046,"secureConnectionStart":384.70000076293945},{"duration":1572.8000001907349,"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":384.9000005722046,"connectEnd":384.9000005722046,"connectStart":384.9000005722046,"domainLookupEnd":384.9000005722046,"domainLookupStart":384.9000005722046,"fetchStart":384.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":384.9000005722046,"responseEnd":1957.7000007629395,"responseStart":1957.7000007629395,"secureConnectionStart":384.9000005722046},{"duration":264.19999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1082.9000005722046,"connectEnd":1082.9000005722046,"connectStart":1082.9000005722046,"domainLookupEnd":1082.9000005722046,"domainLookupStart":1082.9000005722046,"fetchStart":1082.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1082.9000005722046,"responseEnd":1347.1000003814697,"responseStart":1347.1000003814697,"secureConnectionStart":1082.9000005722046},{"duration":571,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&slack-enabled=true&whisper-enabled=true","startTime":1423.7000007629395,"connectEnd":1423.7000007629395,"connectStart":1423.7000007629395,"domainLookupEnd":1423.7000007629395,"domainLookupStart":1423.7000007629395,"fetchStart":1423.7000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":1423.7000007629395,"responseEnd":1994.7000007629395,"responseStart":1994.7000007629395,"secureConnectionStart":1423.7000007629395}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":181,"responseStart":368,"responseEnd":380,"domLoading":372,"domInteractive":2005,"domContentLoadedEventStart":2005,"domContentLoadedEventEnd":2062,"domComplete":3149,"loadEventStart":3149,"loadEventEnd":3150,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1985.3000001907349},{"name":"bigPipe.sidebar-id.end","time":1986.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":1986.2000007629395},{"name":"bigPipe.activity-panel-pipe-id.end","time":1987.1000003814697},{"name":"activityTabFullyLoaded","time":2079.2000007629395}],"measures":[],"correlationId":"9b2211cf914499","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":104,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
What is funny when removed swap, I was waiting totally an other behavior.