[MDEV-21315] Server 10.4 sporadically crashes when issuing simple INSERT commands Created: 2019-12-13 Updated: 2019-12-19 Resolved: 2019-12-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.4.10 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Christophe Migliorini | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1 (2019-04-12) x86_64 GNU/Linux AMD Epyc, 256Go RAM, 3xNVMe disks, software RAID |
||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
Since we upgraded to 10.4.10 less than a week ago, we encountered 6 crashes, all occurred during a simple INSERT statement, all seemingly crashing in _ZN4JOIN7destroyEv (we don't have debug symbols so this is all we have). The problem NEVER occurred on our preproduction server, which has Intel Xeon processor and SSD SATA hard drives, but the load on that one is several orders of magnitude smaller. Stack traces attached. 5 crashed during an INSERT, 1 during an INSERT IGNORE Also we had a dozen records inserted in the course of last week, and we were able to execute some more without crashing the server, and as we got only 6 crashes we are rather confident that not all queries crash. On the other hand that's about 50% of them ! |
| Comments |
| Comment by Christophe Migliorini [ 2019-12-14 ] | ||||||||||||||||||||||||||||||||
|
this is a production server, hence our evaluation that this is "critical". It takes the application down for 5 minutes until Binlog is replayed. | ||||||||||||||||||||||||||||||||
| Comment by Christophe Migliorini [ 2019-12-16 ] | ||||||||||||||||||||||||||||||||
|
After the first crashes, we found out that libc/libpthread had been upgraded as well as the kernel but the new kernel was not installed (no reboot since upgrade), so we restarted the server. Also perhaps worth noting: after 6th crash, we changed SET GLOBAL thread_pool_max_threads=16384, only live, not in the my.cnf file. Original value was 65536, whereas crash dump says max_threads=65340. Then, after 2019-12-15 crash, we upgraded to 10.4.11 hoping for the best, and this time set thread_pool_max_threads=16384 both dynamically and in my.cnf. Here we stand for now... | ||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2019-12-16 ] | ||||||||||||||||||||||||||||||||
|
It seems to be the same problem as | ||||||||||||||||||||||||||||||||
| Comment by Christophe Migliorini [ 2019-12-16 ] | ||||||||||||||||||||||||||||||||
|
OK, thank you. Let's hope you're right! | ||||||||||||||||||||||||||||||||
| Comment by Christophe Migliorini [ 2019-12-18 ] | ||||||||||||||||||||||||||||||||
|
@alice, I appreciate that my knowledge of MariaDB's internals is nil, still I'm wondering, looking at issues that were marked as related to this one: others fail on rather complex queries and our case only fails on a simple INSERT, without any JOIN or anything. | ||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2019-12-18 ] | ||||||||||||||||||||||||||||||||
|
c_migliorini, I compared stacktraces, e.g. from 191212-13-31-05 :
and the one from the first comment in | ||||||||||||||||||||||||||||||||
| Comment by Christophe Migliorini [ 2019-12-18 ] | ||||||||||||||||||||||||||||||||
|
You're right for this one, although this is the only INSERT IGNORE of the set. Others are simple INSERT and there is no trigger on this table, only foreign keys.
| ||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2019-12-18 ] | ||||||||||||||||||||||||||||||||
|
could you please add the output of "show triggers like 'user_lnk_contact';" | ||||||||||||||||||||||||||||||||
| Comment by Christophe Migliorini [ 2019-12-18 ] | ||||||||||||||||||||||||||||||||
|
sure
| ||||||||||||||||||||||||||||||||
| Comment by Christophe Migliorini [ 2019-12-19 ] | ||||||||||||||||||||||||||||||||
|
@Alice Sherepa, I'm sorry there is a trigger AFTER INSERT, I was not connected as root so I could not see it – n00b Is there a non-public server I can upload it to? I would rather not publish this piece of code. |