<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>59230</bug_id>
          
          <creation_ts>2026-05-17 22:27:56 +0300</creation_ts>
          <short_desc>plasma-login-kwin_wayland.service падает с SIGSEGV после успешного входа пользователя</short_desc>
          <delta_ts>2026-10-28 13:26:14 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>plasma-login-manager</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Baleevskih">catsemaofficial</reporter>
          <assigned_to name="Sergey V Turchin">zerg</assigned_to>
          <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>287628</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Baleevskih">catsemaofficial</who>
    <bug_when>2026-05-17 22:27:56 +0300</bug_when>
    <thetext>После успешной аутентификации пользователя через plasmalogin запускается пользовательская Plasma Wayland-сессия, но затем greeter-сессия plasmalogin завершает plasma-login-kwin_wayland.service с падением kwin_wayland по SIGSEGV.

Фактический результат:
В журнале видно, что PAM-аутентификация проходит успешно:

pam_tcb(plasmalogin:auth): Authentication passed for catsema from (uid=0)
pam_tcb(plasmalogin:session): Session opened for catsema by (uid=0)

Далее запускается Wayland-сессия пользователя:

Starting Wayland user session: &quot;/etc/plasmalogin/wayland-session&quot; &quot;/usr/libexec/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland&quot;

Пользовательская сессия фактически стартует:

Reached target graphical-session.target - Current graphical user session.
Starting Plasma Session Restore...
Finished KDE Session Restoration.

После этого greeter KWin падает:

Stopping plasma-login-kwin_wayland.service - KDE Window Manager (Login Manager Version)...
kwin_wayland: KCrash: Application &apos;kwin_wayland&apos; crashing... crashRecursionCounter = 2
ANOM_ABEND auid=969 uid=969 gid=936 ses=2 pid=1530 comm=&quot;kwin_wayland&quot; exe=&quot;/usr/bin/kwin_wayland&quot; sig=11
Process 1530 (kwin_wayland) of user 969 terminated abnormally with signal 11/SEGV
plasma-login-kwin_wayland.service: Main process exited, code=dumped, status=11/SEGV
plasma-login-kwin_wayland.service: Failed with result &apos;core-dump&apos;

Также plasmalogin сообщает:

plasmalogin[1401]: Auth: plasmalogin-helper exited with 255

Ожидаемый результат:
После успешного входа пользовательская сессия должна стартовать без аварийного завершения kwin_wayland в greeter-сессии.

Если greeter-сессия должна завершаться после входа пользователя, она должна завершаться штатно, без SIGSEGV/core-dump.

Дополнительная информация:
display-manager.service указывает на plasmalogin.service:

/usr/lib/systemd/system/plasmalogin.service

Сервис активен:

plasmalogin.service - Plasma Login Manager
Loaded: loaded (/usr/lib/systemd/system/plasmalogin.service; enabled; preset: enabled)
Active: active (running)

Скрипт Wayland-сессии существует и исполняемый:

/etc/plasmalogin/wayland-session

Содержимое desktop-файла Plasma Wayland:

/usr/share/wayland-sessions/plasma.desktop:
Exec=/usr/libexec/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland
TryExec=/usr/bin/startplasma-wayland
Name=Plasma (Wayland)

Также есть X11-сессия:

/usr/share/xsessions/plasmax11.desktop:
Exec=/usr/bin/startplasma-x11
TryExec=/usr/bin/startplasma-x11
Name=Plasma (X11)

Шаги воспроизведения:
1. Установить plasma-login-manager.
2. Включить plasmalogin.service как display-manager.service.
3. Загрузиться до экрана входа.
4. Войти в Plasma Wayland-сессию.
5. Проверить журнал:

journalctl -b -u plasmalogin.service --no-pager -l

И общий журнал:

journalctl -b --no-pager -l | grep -Ei &apos;plasmalogin|plasma-login|kwin_wayland|KCrash|SIGSEGV|ANOM_ABEND|coredump|startplasma|wayland-session&apos;

Фактический результат:
После успешного входа greeter KWin падает с SIGSEGV:

plasma-login-kwin_wayland.service: Main process exited, code=dumped, status=11/SEGV
plasma-login-kwin_wayland.service: Failed with result &apos;core-dump&apos;

Операционная система: ALT 20260316
Версия KDE Plasma: 6.6.5
Версия KDE Frameworks: 6.26.0
Версия Qt: 6.10.3
Версия ядра: 6.18.31-6.18-alt1 (64-бита)
Графическая платформа: Wayland
Процессоры: 16 × AMD Ryzen 7 5700X 8-Core Processor
Память: 16 ГиБ ОЗУ (15,5 ГиБ доступно)
Графический процессор: AMD Radeon RX 6600 XT
Название продукта: B450M Steel Legend</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>