Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 886349 - x11-libs/libX11-1.8.3 makes app-editors/emacs-28.2-r2 print Xlib errors
Summary: x11-libs/libX11-1.8.3 makes app-editors/emacs-28.2-r2 print Xlib errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-16 16:09 UTC by Joakim Tjernlund
Modified: 2023-01-17 01:58 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Tjernlund 2022-12-16 16:09:48 UTC
~ # emacs
Xlib: sequence lost (0x10000 > 0x4cf) in reply type 0x16!
Xlib: sequence lost (0x10000 > 0x4f6) in reply type 0x13!
Xlib: sequence lost (0x10000 > 0xa3e) in reply type 0xf!
Xlib: sequence lost (0x10000 > 0xcc5) in reply type 0xc!
Xlib: sequence lost (0x10000 > 0xf41) in reply type 0xc!
Xlib: sequence lost (0x10000 > 0xf6a) in reply type 0xc!


app-editors/emacs-28.2-r2
Comment 1 Joakim Tjernlund 2022-12-17 17:51:32 UTC
There are a bunch of those msgs whenever I resize the emacs window
Comment 2 Xepher 2022-12-20 05:41:36 UTC
This is happening with Steam as well (not even with a game, just the UI itself open.) Arch linux had a similar issue and put out some patches in the past day. I didn't have time to track it all down, but this was the entry point: https://bugs.archlinux.org/task/76860

Found the same errors from this forum post over there. https://bbs.archlinux.org/viewtopic.php?pid=2074584

So looks like upstream bugs.
Comment 3 Joakim Tjernlund 2022-12-20 07:53:27 UTC
(In reply to Xepher from comment #2)
> This is happening with Steam as well (not even with a game, just the UI
> itself open.) Arch linux had a similar issue and put out some patches in the
> past day. I didn't have time to track it all down, but this was the entry
> point: https://bugs.archlinux.org/task/76860
> 
> Found the same errors from this forum post over there.
> https://bbs.archlinux.org/viewtopic.php?pid=2074584
> 
> So looks like upstream bugs.

Great, I tried the patch in https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/177/commits but that one did not help ...
Comment 4 Joakim Tjernlund 2022-12-20 08:33:08 UTC
(In reply to Joakim Tjernlund from comment #3)
> (In reply to Xepher from comment #2)
> > This is happening with Steam as well (not even with a game, just the UI
> > itself open.) Arch linux had a similar issue and put out some patches in the
> > past day. I didn't have time to track it all down, but this was the entry
> > point: https://bugs.archlinux.org/task/76860
> > 
> > Found the same errors from this forum post over there.
> > https://bbs.archlinux.org/viewtopic.php?pid=2074584
> > 
> > So looks like upstream bugs.
> 
> Great, I tried the patch in
> https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/177/commits
> but that one did not help ...

Added https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/176/commits but no joy :(

emacs does not crash tough
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-20 08:43:02 UTC
If you don't see a specifc issue at https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues which sounds like your Emacs problem, please file a new one.

Unfortunately, there's been a variety of issues w/ libX11 recently, and while some of them may be related, they may not be the same thing (there's definitely a few distinct ones).
Comment 6 Joakim Tjernlund 2022-12-20 10:06:19 UTC
(In reply to Sam James from comment #5)
> If you don't see a specifc issue at
> https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues which sounds like
> your Emacs problem, please file a new one.
> 
> Unfortunately, there's been a variety of issues w/ libX11 recently, and
> while some of them may be related, they may not be the same thing (there's
> definitely a few distinct ones).

Done see
https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/176
Comment 7 Tero Paloheimo 2023-01-07 16:36:56 UTC
I applied libX11 commit https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/88399e01be679bfcc9a5e8922ffe2c47f0e56dee as an user patch with emerge and the problem seems to have disappeared. Also upstream issue https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/176 has been closed with the same commit.

Maybe the commit above could be applied as a workaround until the next libX11 release is available?
Comment 8 Joakim Tjernlund 2023-01-07 17:44:25 UTC
So have I, reverted the problem commit and added MR 176, no issues so far.
Comment 9 Joakim Tjernlund 2023-01-13 13:04:10 UTC
(In reply to Joakim Tjernlund from comment #8)
> So have I, reverted the problem commit and added MR 176, no issues so far.

Could we have a libX11-1.8.3-r1 with the revert and MR 176 ?
Comment 10 Maciej S. Szmigiero 2023-01-16 15:05:13 UTC
+1 for revbumping x11-libs/libX11 with the fix included as this sometimes makes git with EDITOR=emacs abort since it thinks that the editor returned an error code.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-16 15:33:36 UTC
I hadn't done it yet because libX11 seems to be a mess right now where adding patches in the past has made things worse.

But given that the revert + the MR are both in master now, I think we can do it.
Comment 12 Larry the Git Cow gentoo-dev 2023-01-17 01:53:04 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4984fd11b13e48ab6f7c569759c8e40e1dc2281e

commit 4984fd11b13e48ab6f7c569759c8e40e1dc2281e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-17 01:47:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-17 01:47:27 +0000

    x11-libs/libX11: backport 2 regression fixes from master
    
    Should fix bug #886349 but not really clear wrt bug #887593.
    
    Bug: https://bugs.gentoo.org/886349
    Bug: https://bugs.gentoo.org/887593
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/libX11-1.8.3-reentrancy-again.patch      | 188 +++++++++++++++++++++
 .../files/libX11-1.8.3-revert-XPutBackEvent.patch  |  57 +++++++
 x11-libs/libX11/libX11-1.8.3-r1.ebuild             |  49 ++++++
 3 files changed, 294 insertions(+)