Bugzilla – Bug 1196535
general protection fault in swarst_dri.so
Last modified: 2022-03-22 09:10:10 UTC
When using Anki 2.1.49 (https://github.com/ankitects/anki/releases/tag/2.1.49), trying to use a plugin results in a segfault and coredump in swrast_dri.so. Sadly the Anki binaries do not come with debuginfo (and I'm not using the openSUSE package because it's very out of date) so the corefile is probably not that useful.
This problem has been happening for the past few days. In particular this problem exists in both Mesa-dri-21.3.6-301.3 and Mesa-dri-21.3.7-302.1. The only hint this is caused by Mesa-dri is the dmesg line:
[776164.804163] traps: Anki general protection fault ip:7f39446c56be sp:7fff618496e8 error:0 in swrast_dri.so[7f3944640000+10b7000]
Let me know if you need the corefile.
Which ANKI plugin? Can you at least start anki in gdb and then do a 'bt' and post the backtrace when it crashes?
(In reply to Stefan Dirsch from comment #1)
> Which ANKI plugin? Can you at least start anki in gdb and then do a 'bt' and
> post the backtrace when it crashes?
It's the Japanese Support plugin, and it crashes when you try to open the Kanji Stats panel. The backtrace is completely useless due to a lack of debugging symbols.
However, upstream has managed to debug and fix the issue (https://github.com/ankitects/anki-addons/commit/14a1e07f0ed7d79534891c4c0586021caa17fa45) so this can be closed. It seems the issue had to do with changing how saveGeom and restoreGeom were called as well as a few other ordering tweaks, but I haven't done much Qt programming so I'm not sure.
Thanks. So if I understand this correctly this is fixed in
- Fix crash on some systems when showing kanji stats.