nixpkgs/pkgs
Matthew Bauer f0db4de598 kwallet-pam: unset QT_PLUGIN_PATH
kwallet sets a limit of 1000 for a single characters for environment
variables read from the socket[1]. wrapQtApps gives us a huge value
for QT_PLUGIN_PATH (up to 13000 bytes on my system!) Since this was
overflowing, the Qt plugin loading mechanism was hitting a segfault
when it was trying to parse the truncated QT_PLUGIN_PATH.

So for now, we can just unset QT_PLUGIN_PATH in the pam_kwallet_init
script. kwalletd5 has its own QT_PLUGIN_PATH which it can use.

This problem occured on 20.03, but not 19.09. It’s unclear what
changes were made in that time, but likely that previously we weren’t
getting a QT_PLUGIN_PATH set in the plasma5 startup at all. This means
that in 19.09 our QT_PLUGIN_PATH value must have been small enough to
fit into the 1000 char limit.

Fixes #77290

[1]: bc9713e272/src/runtime/kwalletd/main.cpp (L44)

/cc @ttuegel
2020-04-09 10:48:14 -04:00
..
applications Merge pull request #84383 from r-ryantm/auto-update/gmsh 2020-04-05 20:03:05 -05:00
build-support Merge pull request #83896 from etu/slim-down-default-php-v3 2020-04-05 20:00:03 +02:00
common-updater
data Merge pull request #84130 from OmnipotentEntity/rfc45-part2 2020-04-05 11:15:20 -04:00
desktops kwallet-pam: unset QT_PLUGIN_PATH 2020-04-09 10:48:14 -04:00
development Merge pull request #84333 from r-ryantm/auto-update/closure-compiler 2020-04-05 20:13:19 -05:00
games Merge master into staging-next 2020-04-05 08:33:39 +02:00
misc Merge pull request #84130 from OmnipotentEntity/rfc45-part2 2020-04-05 11:15:20 -04:00
os-specific Merge pull request #84387 from kraem/fix/facetimehd-linux-5.6 2020-04-05 16:28:50 -04:00
servers Merge pull request #84344 from r-ryantm/auto-update/dictd 2020-04-05 20:13:49 -05:00
shells nushell: 0.11.0 -> 0.12.0 2020-03-31 18:18:18 -05:00
stdenv stdenv/linux: remove powerpc64le bootstrap tools 2020-03-31 15:03:26 -04:00
test
tools Merge pull request #84375 from r-ryantm/auto-update/facter 2020-04-05 20:09:40 -05:00
top-level Merge pull request #83896 from etu/slim-down-default-php-v3 2020-04-05 20:00:03 +02:00