[QGIS-Developer] QGIS and Fedora: My tips

Sandro Mani manisandro at gmail.com
Wed Feb 9 23:36:38 PST 2022


> Debug sessions of QGIS just "hang"
> ----
>
> I noticed this one after upgrading to Fedora 35. Trying to run any
> session of QGIS under a debug environment (eg. gdb) just resulted in a
> hang at startup.
>
> I tracked this one down to this change:
> https://fedoraproject.org/wiki/Changes/DebuginfodByDefault, where
> Fedora 35 enables "debuginfod" by default.
>
> debuginfod is supposed to be a helpful thing which downloads debug
> info on demand. The "hang" during startup of QGIS debug is actually
> just debuginfod trying to download all the debug info for libraries
> used by QGIS. BUT... it's an INSANE amount of data it's trying to
> download. debuginfod is trying to download debug info for every single
> library used by QGIS recursively. Which results in it trying to even
> download debug info for webkit, which is so large that I could never
> get the download to ever complete!!! Even worse, debuginfod defaults
> to auto-deleting all downloaded debug info on a weekly basis.... so if
> you were super-patient and waited for this to download then you'll
> just have to go through the same thing again in a week.
>
> Solution: disable debuginfod, by unsetting the DEBUGINFOD_URLS
> environment variable. Debug sessions of QGIS will start just like they
> always used to.

This one is https://bugzilla.redhat.com/show_bug.cgi?id=2035283 an 
recently solved - gdb will now only download debuginfos if input came 
from a terminal (unless debuginfod is globally disabled obviously, 
either through clearing DEBUGINFOD_URLS or echo "set debuginfod enabled 
off" > ~/.gdbinit).

Sandro




More information about the QGIS-Developer mailing list