Bug#1085092: libglib2.0-0: segfault after installing shared-mime-info from Homebrew
Simon McVittie
smcv at debian.org
Fri Oct 18 18:44:53 BST 2024
Control: retitle -1 libglib2.0-0: segfault after installing shared-mime-info from Homebrew
Control: tags -1 + moreinfo
On Fri, 18 Oct 2024 at 18:50:46 +0200, Lennart Ackermans wrote:
> So full steps to reproduce are:
>
> - Install homebrew (https://brew.sh/)
> - brew install shared-mime-info
> - Ensure /home/linuxbrew/.linuxbrew/share is in $XDG_DATA_DIRS
> - Run a file manager like Thunar and navigate to a directory with a
> non-empty json file
Does this happen for literally any JSON file (for example
`echo "{}" > object.json`) or does the JSON file that is required to
reproduce the crash have non-trivial contents?
Is there a single file or combination of files that reproduce this without
installing arbitrary software from outside Debian?
For example as a starting point you could try excluding
/home/linuxbrew/.linuxbrew/share from XDG_DATA_DIRS, and copying
some file installed by Homebrew (possibly
/home/linuxbrew/.linuxbrew/share/mime/packages/freedesktop.org.xml?)
into ~/.local/share/mime/packages?
If that probably-multi-megabyte XML file reproduces the crash, it would
also be very useful if you're able to narrow it down to some smaller part
of the file as the trigger for this crash. Extracting the MIME type
definitions for formats that match the glob *.json, like application/json
and application/schema+json, might be a good first step.
smcv
More information about the pkg-gnome-maintainers
mailing list