You are not logged in.

#1 2021-06-02 01:07:16

holiday
Banned
Registered: 2021-05-26
Posts: 24

xscreensaver coredump for all screensavers

I downgraded from 6.0 to 5.44 but have the same result.

No matter which screensaver I choose, the display says 'No preview available' and the journal has this message:

Jun 01 17:53:32 asgl systemd[1]: systemd-coredump@11-17350-0.service: Deactivated successfully.
Jun 01 17:53:32 asgl systemd-coredump[17351]: [LNK] Process 17339 (gflux) of user 1000 dumped core.
                                             
                                              Stack trace of thread 17339:
                                              #0  0x00007fd8879dcd22 raise (libc.so.6 + 0x3cd22)
                                              #1  0x00007fd8879c6862 abort (libc.so.6 + 0x26862)
                                              #2  0x000055b97a19e608 n/a (gflux + 0xb608)
                                              #3  0x000055b97a19c01b n/a (gflux + 0x901b)
                                              #4  0x000055b97a19d94e n/a (gflux + 0xa94e)
                                              #5  0x000055b97a199983 n/a (gflux + 0x6983)
                                              #6  0x00007fd8879c7b25 __libc_start_main (libc.so.6 + 0x27b25)
                                              #7  0x000055b97a19a37e n/a (gflux + 0x737e)

This is a recent installation of Arch so I can't say that xscreensaver has ever worked on this machine.

Using NVIDIA 390.143 for GeFiorce GTX 560M

Offline

#2 2021-06-02 06:29:48

seth
Member
Registered: 2012-09-03
Posts: 30,754

Re: xscreensaver coredump for all screensavers

Can you run /usr/lib/xscreensaver/xmatrix (non-GL XSS hack)?
If not, try to "strace /usr/lib/xscreensaver/xmatrix" - the backtrace has no debug symbols what is going to make it hard to determine the cause from it alone.
But it aborts, so this is a "controlled" error.

Offline

#3 2021-06-02 17:05:47

holiday
Banned
Registered: 2021-05-26
Posts: 24

Re: xscreensaver coredump for all screensavers

seth wrote:

Can you run /usr/lib/xscreensaver/xmatrix (non-GL XSS hack)?

Yes. All the X* screensavers play.

Also: Decay Screen, Cynosure, Crystal... There may be others. Most do not play.

If not, try to "strace /usr/lib/xscreensaver/xmatrix" - the backtrace has no debug symbols what is going to make it hard to determine the cause from it alone.
But it aborts, so this is a "controlled" error.

Yes . At timeout the screensaver puts a big red font saying xmatrix sigabort

"strace /usr/lib/xscreensaver/glslideshow"  produces many cryptic lines and ends with a SIGABRT message

Last edited by holiday (2021-06-02 17:07:08)

Offline

#4 2021-06-02 17:12:36

seth
Member
Registered: 2012-09-03
Posts: 30,754

Re: xscreensaver coredump for all screensavers

Please post the output of "glxinfo" and also of

strace /usr/lib/xscreensaver/glslideshow 2>&1 | curl -F 'f:1=<-' ix.io

Offline

#5 2021-06-03 01:48:20

holiday
Banned
Registered: 2021-05-26
Posts: 24

Re: xscreensaver coredump for all screensavers

Offline

#6 2021-06-03 06:02:33

seth
Member
Registered: 2012-09-03
Posts: 30,754

Re: xscreensaver coredump for all screensavers

write(2, "glslideshow: eglCreatePlatformWi"..., 81glslideshow: eglCreatePlatformWindowSurface failed: window 0x4e00002 visual 0x24

You even got a nice error message, telling you what's broken.

So

seth wrote:

Please post the output of "glxinfo"

You can also add your xorg log, because I'm pretty sure the GL installation is broken.

Offline

#7 2021-06-03 12:31:29

holiday
Banned
Registered: 2021-05-26
Posts: 24

Re: xscreensaver coredump for all screensavers

seth wrote:

Please post the output of "glxinfo"

https://pastebin.com/6Z41Tr0x

seth wrote:

You can also add your xorg log, because I'm pretty sure the GL installation is broken.

https://pastebin.com/wPHBqm5z

Offline

#8 2021-06-03 13:31:08

seth
Member
Registered: 2012-09-03
Posts: 30,754

Re: xscreensaver coredump for all screensavers

Nope. GLX is fine.
And: it's actually reproducible for me.

https://www.jwz.org/xscreensaver/changelog.html

X11: Use EGL instead of GLX when available.

I assume it's somehow incompatible w/ the nvidia implementation and there's no obvious way to enforce glx w/o rebuilding xscreensaver and even then, whole files are wrapped in an "#if HAVE_EGL" or so preproc condition.


Edit: it's not a false positive, skipping the abort() will cause a later segfault.
eglgears and egltri create a 0x27 visual, the screensaver hacks choose 0x24 - however forcing 0x27 in visual-gl.c doesn't change anything but the visual id.

Edit #2: it's the specific API

    d->egl_surface = eglCreateWindowSurface (d->egl_display,
                                                     d->egl_config,
                                                     window, NULL);

works.

=> I've mailed jwz, hope for an upstream patch.

Last edited by seth (2021-06-03 16:19:27)

Offline

#9 2021-06-04 15:24:06

seth
Member
Registered: 2012-09-03
Posts: 30,754

Re: xscreensaver coredump for all screensavers

XSS patch:

--- xlock-gl-utils.c	2021-06-03 18:14:41.428137527 +0200
+++ xlock-gl-utils.c.orig	2021-02-16 17:32:29.000000000 +0100
@@ -130,9 +130,9 @@ init_GL(ModeInfo * mi)
         abort();
       }
 
-    d->egl_surface = eglCreateWindowSurface (d->egl_display,
+    d->egl_surface = eglCreatePlatformWindowSurface (d->egl_display,
                                                      d->egl_config,
-                                                     window, NULL);
+                                                     &window, NULL);
     if (! d->egl_surface)
       {
         fprintf (stderr, "%s: eglCreatePlatformWindowSurface failed:"

Arch bug report
nvidia thread

Edit: the 465xx drivers are reported to be not affected.

Last edited by seth (2021-06-06 21:12:39)

Offline

Board footer

Powered by FluxBB