Your message dated Mon, 31 Aug 2026 10:34:22 +0000
with message-id <[email protected]>
and subject line Bug#1146047: fixed in elogind 255.17-1debian7
has caused the Debian Bug report #1146047,
regarding Xorg fails to get its own session
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1146047: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1146047
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: elogind
Version: 255.17-1debian2
Severity: important

Dear maintainers,

I hope this bug report finds you well!

Elogind stopped working with Xorg since trixie.
The relevant line in Xorg.0.log says:

[...] (EE) systemd-logind: failed to get session: PID ... does not
belong to any known session

I managed to track the issue down to your patch
for using systemd-compatible cgroups.

The issue is due to missing logic in elogind
compared to what systemd's logind does.
In particular, when the function
"manager_get_session_by_pidref"
calls the function "cg_pidref_get_unit",
the returned hashtable is always empty.

I can confirm that Xorg works as expected
both with systemd's logind
and with elogind after removing this patch.

The problem is triggered only because Xorg
calls the dbus interface method "GetSessionByPID"
passing its own PID as argument.
If it were to call "GetSession"
or, even, call "GetSessionByPID" with an argument of zero
instead of its own PID,
the code path in elogind that calls
"manager_get_session_by_pidref" is not traversed.

After testing, I can confirm that,
if one change the source code of Xorg to pass zero as argument,
all works as expected.

Now, I can suggest to you three solutions:

(i)     Stop using the patch
        "Use-libsystemd0-compatible-cgroups-layout.patch"
(ii)    File a bug against Xorg 
        to use "GetSession" instead of "GetSessionByPID"
(iii)   Implement, in elogind, the missing bits that systemd has.

The easiest solution is (i),
but I guess you want to link against
libsystemd0 in Debian,
so this may not be an option.

Meanwhile, I doubt anyone could convince upstream Xorg
to make this change,
since it is not really a bug in Xorg.
So (ii) is probably only an option
if one were to add a patch to the Debian xserver-xorg package.

And (iii) seems like quite a bit of work,
though I might be able to help if you choose this option.

Yours faithfully,
B.R.S. Roso,
Abasileuton Ltd.

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
Source: elogind
Source-Version: 255.17-1debian7
Done: Mark Hindley <[email protected]>

We believe that the bug you reported is fixed in the latest version of
elogind, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mark Hindley <[email protected]> (supplier of updated elogind package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 31 Aug 2026 10:57:50 +0100
Source: elogind
Architecture: source
Version: 255.17-1debian7
Distribution: unstable
Urgency: medium
Maintainer: Debian Ecosystem Init Diversity Team 
<[email protected]>
Changed-By: Mark Hindley <[email protected]>
Closes: 1146047
Changes:
 elogind (255.17-1debian7) unstable; urgency=medium
 .
   * d/p/Use-libsystemd0-compatible-cgroups-layout.patch: elogind doesn't
     support session_units so:-
     - drop changes in logind-core.c manager_get_session_by_pidref():
       (Closes: #1146047)
     - drop changes in logind.h.
     - cleanup metainformation.
Checksums-Sha1:
 29640f3e93b91ea4ccf4e6091a2e919d2c5311c0 2503 elogind_255.17-1debian7.dsc
 d4bb3e87b93e5ce8b5cd039c758ae8499e50d65d 14292 
elogind_255.17-1debian7.debian.tar.xz
 e303f4f6168fc3f94f71adc10a26662c4a3574d8 8502 
elogind_255.17-1debian7_amd64.buildinfo
Checksums-Sha256:
 fd82293ca1394694cab851213f9b643c658c97b88674e1dba4e45d2ea972dd9b 2503 
elogind_255.17-1debian7.dsc
 3c7a45849ad78b4933b6d2cf83c14c938ab2405cbf3f34c0bd2cd4dae52d46ad 14292 
elogind_255.17-1debian7.debian.tar.xz
 b34f75904c321f55e40a147890bdfc61b09d1e6b844acf26db04cc915f1fbe58 8502 
elogind_255.17-1debian7_amd64.buildinfo
Files:
 48f2d927d4c50c4b453d3a3373c9a614 2503 admin optional 
elogind_255.17-1debian7.dsc
 fb2c041a123a787b7a340e28f56e62f4 14292 admin optional 
elogind_255.17-1debian7.debian.tar.xz
 6617266f0307fd4fb1e07806aae5b46c 8502 admin optional 
elogind_255.17-1debian7_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEUGwVpCsK9aCoVCPu0opFvzKH1kkFAmqVVO4ACgkQ0opFvzKH
1kmrPA/+Ims/D4s4vDmfz6ivnzfmkspni6g3DdhMTcdaQdjUiysCxnzDcs742f/Z
JiqlvI6zN/2viKu75QuYSPWISxbP2PPiTUrImIGqpX5rdjmUFecPmcL5kqgQIHWF
/0AcQw/MEopH5lJsKjXN8Wsv75YEJW90rE+SrcWJeddQ9hABbbm8KjUu2S9DE2Ef
GDEx+wIhwJU5KQjUXskYfLebhm/q+i1jxSeijvYOBtb9w0a3Fgo9kZFUOhYgjyTi
64vlF4RsFnFm1yItPWM/RdFBe99kjFdiknmNcHXdobid4e161bvPcmzNxaAhEQS6
jiSV4ZFHk19ZzHoHlCfbzpm5UHZCXnlZnsI8kfNzzPLMroaV6e5NkaA7OpXlrD1X
9PPyzd+5E3R6//4q0I5iXsI9MPvDXF/x90eCoTVZ9hgezM9RlGZgOYsN1fXilMCX
lXUyTxYkrR5RwyGazeQkZ/CR1+LsauSkNXYhO696+hUtX49Dwas74Jgs0l1od5PM
58uFOY/4lvOQRPsCzgTjEGbCl03elBhPRKCFN/hcBTR5sckDpuGq6TO7gqKvkVQh
3BXOj5CHy5SESiaRvs7EDd7UzSF8Cch6STIZcLOHOWiX5/JPpTUnzss65brLNw+a
MJ3V6vhTYmX522QA2O6/k9TEkyoRPFmGxN5USR3zGH3E+mRegYg=
=YvPt
-----END PGP SIGNATURE-----

Attachment: pgpVetwB9vWEs.pgp
Description: PGP signature


--- End Message ---

Reply via email to