Hello,
You can see at this line:
That segfault is certainly a segment fault. It is some error that is happening to some users under linux (perhaps on Ubuntu-based distros?), which produces these apparently random and unrelated crashes.
You can see an ongoing discussion about it here:
Krita 5.0 is EXTREMELY unstable, constant crashes
On another note. Are you perhaps using an AMD CPU and AMD GPU with the Mesa drivers?
Cheers