[MDEV-31110] Mariadb 10.11.2 crashes sporadically with Fatal glibc error: malloc.c:3617 (_mid_memalign): assertion failed: !p || chunk_is_mmapped (mem2chunk (p)) || ar_ptr == arena_for_chunk (mem2chunk (p)) Created: 2023-04-21 Updated: 2023-11-13 Resolved: 2023-11-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Platform SUSE |
| Affects Version/s: | 10.11.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Artem Russakovskii | Assignee: | Sergei Golubchik |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | crash | ||
| Environment: |
OpenSUSE 15.4 |
||
| Description |
|
Hi there, After successfully using Mariadb for years, sometime after the last round of updates from 10.9 to 10.10 and 10.11, we're now experiencing almost daily crashes. I'm including the details below. It's possible this is related to glibc and nor Mariadb, but I don't have enough expertise to determine that. Also, we updated glibc to the latest version, but the crashes still keep happening. https://forums.factorio.com/viewtopic.php?f=7&p=583557 is suspiciously familiar, and one of the comments says a glibc fix was released, but I am not sure in which version, or if that's true at all.
|
| Comments |
| Comment by Artem Russakovskii [ 2023-05-18 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Any updates? All our servers continue to crash every few days. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2023-05-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
There's not enough information for us to fix it yet. Try to install debug symbols to get a proper stack trace and/or produce a core after a crash. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Artem Russakovskii [ 2023-06-01 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Sergei, thanks, got it. I installed debug symbols and observed another crash, but it oddly contained almost no stack trace. Here it is:
Any reason why you think the rest is missing compared to the original report? I'm in the process of enabling cores and hope that I'll be able to provide more info when the next core is dumped. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Artem Russakovskii [ 2023-06-02 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Another crash this morning on one of the slaves. Here's the output. I also got a core file which I will attempt to process next and post the output here.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Artem Russakovskii [ 2023-06-03 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I have a sneaking suspicion that the issue is with glibc or the way mariadb interacts with glibc. The issues started roughly when glibc was updated on the system, and I think the newest version may be buggy. You see, we're using OpenSUSE, and at some point I saw a new repo called gcc next https://download.opensuse.org/repositories/devel:/gcc:/next/ which installed a newer glibc and a bunch of other libs (2.31 -> currently 2.37.9000.286.ge275690332). At some point, the gcc next repo's maintainers removed the OpenSUSE 15.4 repo, and the updates stopped. Perhaps that glibc version is buggy and is no longer getting updated, so we're stuck with a bug. So, I just downgraded glibc and related libs back to 2.31, which is coming from https://download.opensuse.org/distribution/leap/15.4/repo/oss/. I'm really hoping I'm right and the crashes will stop. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Artem Russakovskii [ 2023-06-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Sergei: I generated a full all-threads gdb dump and shared it with your s***@mariadb.org email via Dropbox. Please let me know if you find anything good inside. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Artem Russakovskii [ 2023-06-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Well, ever since I downgraded glibc 2 weeks ago, the crashes stopped, so either the newer versions of glibc have a bug or Mariadb crashes because of some changes in glibc that aren't necessarily bugs, and if these changes go live widely in a stable release, these crashes may start popping up more and more for people. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2023-10-13 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The file appears to be already deleted. I have glibc 2.37 on my laptop and haven't seen those crashes. May be it takes some special kind of load to trigger them. |