community/pcmanfm-qt-1.4.0-r0 segfaults if JSON file is present in a directory
PCManFM-Qt will segfault and crash if there is a .json
file present in the directory.
Open PCManFM-Qt, create an empty file like zoinks.json
and it crashes.
For info, I use LXQt as my DE and Openbox as my WM.
Has anyone else experienced this?
NB: I've mentioned this on the LXQt GitHub Discussions page here https://github.com/lxqt/lxqt/discussions/2506
UPDATE 2023-12-08
from https://github.com/lxqt/lxqt/discussions/2506#discussioncomment-7798232
The crash isn't reproducible here: an empty
.json
file is like other empty files and doesn't cause a problem. I also checked our code and found nothing wrong in it.The segfault seems to happen in GLib (in
g_content_type_is_a
) due to some sort of mimetype issue. The root of the problem may be in GLib →gio/xdgmime/xdgmime.c
.