Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 811885 - x11-misc/xscreensaver-6.01-r3 GL screensavers crash with SIGABRT
Summary: x11-misc/xscreensaver-6.01-r3 GL screensavers crash with SIGABRT
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-06 22:53 UTC by arcctgx
Modified: 2022-01-08 12:49 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge_info.txt,5.72 KB, text/plain)
2021-09-06 22:53 UTC, arcctgx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arcctgx 2021-09-06 22:53:59 UTC
Created attachment 737953 [details]
emerge --info

After update from x11-misc/xscreensaver-5.45-r4 to x11-misc/xscreensaver-6.01-r3 all GL screensavers are crashing with SIGABRT and wiat a message similar to:

$ /usr/lib64/misc/xscreensaver/glslideshow
glslideshow: eglCreatePlatformWindowSurface failed: window 0x4800002 visual 0x24
Aborted (core dumped)

Non-GL screensavers (e.g. xmatrix) are not affected. If GL a screen saver comes up in DE it just shows a red print such as "glslideshow crashed with SIGABRT".

I only managed to get a semi-meaningful backtrace without debug symbols:

$ gdb
GNU gdb (Gentoo 10.2 vanilla) 10.2
...
(gdb) file /usr/lib64/misc/xscreensaver/glslideshow
Reading symbols from /usr/lib64/misc/xscreensaver/glslideshow...
(No debugging symbols found in /usr/lib64/misc/xscreensaver/glslideshow)
(gdb) core core
[New LWP 19406]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/lib64/misc/xscreensaver/glslideshow'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007fa3d9664811 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007fa3d9664811 in raise () from /lib64/libc.so.6
#1  0x00007fa3d964e536 in abort () from /lib64/libc.so.6
#2  0x000055d2b0941a60 in init_GL ()
#3  0x000055d2b093e293 in init_slideshow ()
#4  0x000055d2b0940bf5 in xlockmore_event ()
#5  0x000055d2b093caa4 in main ()

It probably is relevant that I'm using x11-drivers/nvidia-drivers-390.144 (not the latest driver, but still supported by NVIDIA and Gentoo). I found this thread on Arch Linux forums, it seems to describe a problem just like mine: https://bbs.archlinux.org/viewtopic.php?id=266841. There's also a bug report: https://bugs.archlinux.org/task/71123 and a thread on NVIDIA forum: https://forums.developer.nvidia.com/t/390-143-eglcreateplatformwindowsurface-causes-bogus-egl-bad-display-error/179820.

Since this problem doesn't seem to have a simple solution, would it be possible to at least restore x11-misc/xscreensaver-5.45-r4, as it seems it's already been deleted?
Comment 1 ShadowCat8 2021-11-16 02:04:25 UTC
Greetings,

I can confirm this issue with some additional info; It seems it might be an issue with the current change in XScreenSaver to prefer EGL over GLX.

I just downloaded the latest source for version 6.0.2 from https://www.jwz.org/xscreensaver/ and configured with the following:

~/build/xscreensaver-6.0.2/xscreensaver-6.02 # ./configure --prefix=/usr --with-elogind --with-pam --with-gl --with-glx --with-pixbuf --with-xft 

Then, I ran `make && make install`, and now the GL screensavers are working as expected.

I hope that helps.
Comment 2 ShadowCat8 2021-11-16 02:16:32 UTC
@arcctax: I am also running the 390.144 driver from NVidia.

HTH.
Comment 3 Larry the Git Cow gentoo-dev 2022-01-08 12:49:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=107fa148a3aa88d8ecf85236c1c526e18ec5938e

commit 107fa148a3aa88d8ecf85236c1c526e18ec5938e
Author:     Anna Vyalkova <cyber+gentoo@sysrq.in>
AuthorDate: 2022-01-08 12:41:01 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-01-08 12:49:07 +0000

    x11-misc/xscreensaver: add 6.02
    
    Closes: https://bugs.gentoo.org/822372
    Closes: https://bugs.gentoo.org/828869
    Closes: https://bugs.gentoo.org/811885
    Closes: https://bugs.gentoo.org/809599
    Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 x11-misc/xscreensaver/Manifest                 |   1 +
 x11-misc/xscreensaver/metadata.xml             |   2 +
 x11-misc/xscreensaver/xscreensaver-6.02.ebuild | 238 +++++++++++++++++++++++++
 3 files changed, 241 insertions(+)