I'm trying to pack MariaDB 10.4.10 to Fedora, but I'm stuck on the following issue(s) when I test the built packages.
When I run even most simple SQL commands that writes (e.g. "CREATE DATABASE A;", but "SHOW DATABASES;"), while the replication is ON ( "wsrep_on=1" ),
the server will recieve SIGABRT,
then it will consume all available memory AND get killed by oom (Linux out of memory killer).
Reproducible everytime on Fedora 31 with MariaDB 10.4.10 and Galera 26.4.3 packages.
Disabling Firewall nor SELinux helps.
So basically the server, client, server-galera and galera.
We don't need any more machines in the cluster. The issue is reproducible on the single machine started by "galera_new_cluster".
But when in cluster, all of the nodes will fail & die.
The issue is , when the MariaDB packages are built in debug mode without optimization. (-O0)
The issue is reproducible on every run, no matter how many times the server was restarted before or if it previously ran with different configuration.
I start the server, however, with:
So every time I run with the clean setup. There are no other data, than those created by the server during the first run.
After the server started, I can attach to it by e.g. gdb.
In the meantime, I start mysql client and run "CREATE DATABASE A;" sql command.
The last breakpoint I was able to find is "sql_parse.cc:5061".
I haven't much succes investigating past this line.
Uknown number of instructions later, the server will recieve SIGABRT.
As a part of SIGABRT handling, the server will try to get a stacktrace.
During it, it will consume all available memory and get killed by oom (Linux Out Of Memory killer)
The server has 2GB of RAM; <100M used when the DB is not running; ~500MB used when the DB is running, having ~1,4 GB free.
That 1,4 GB get consumed in a blink of an eye.
Last safe breakpoint I managed to find before that is "stacktrace.c:273".
After that I wasn't successful to find the exact place where the memore get consumed.
Let me know which additional information would you consider helpful and I'll try to get them to you.
Since it is a x86_64 arch and it is always reproducible, there shouldn't be problem for me getting you anything you'd like to know.