All the binaries in the vice package crashes with SIGSEGV at XQueryExtension()

Bug #1727875 reported by LGB [Gábor Lénárt] on 2017-10-26
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
vice (Ubuntu)
Undecided
Unassigned

Bug Description

It seems, with Ubuntu 17.10/Wayland/64 bit at least, _all_ of the emulators within the VICE package (emulators for various Commodore 8 bit systems) crashes. All of them seems to be connected with XQueryExtension() somehow. I've tried x64 (Commodore 64 emulator), xvic (Commodore VIC-20 emulator) and xplus4 (Commodore Plus/4 emulator). With gdb, I got the followings (I didn't marked vice package as the bug "source", since it can be some other library as well or so):

Thread 1 "x64" received signal SIGSEGV, Segmentation fault.
0x00007ffff76c83ce in _XSend () from /usr/lib/x86_64-linux-gnu/libX11.so.6
(gdb) bt
#0 0x00007ffff76c83ce in _XSend () at /usr/lib/x86_64-linux-gnu/libX11.so.6
#1 0x00007ffff76beb34 in XQueryExtension ()
    at /usr/lib/x86_64-linux-gnu/libX11.so.6
#2 0x00007ffff76b2692 in XInitExtension ()
    at /usr/lib/x86_64-linux-gnu/libX11.so.6
#3 0x00007ffff3c38fdf in XextAddDisplay ()
    at /usr/lib/x86_64-linux-gnu/libXext.so.6
#4 0x00007ffff7bcbd56 in () at /usr/lib/x86_64-linux-gnu/libXrandr.so.2
#5 0x00007ffff7bcc381 in XRRQueryExtension ()
    at /usr/lib/x86_64-linux-gnu/libXrandr.so.2
#6 0x000055555572bc65 in ()
#7 0x000055555572a79f in ()
#8 0x0000555555726e78 in ()
#9 0x00005555555bb405 in ()
#10 0x00007ffff3e5f1c1 in __libc_start_main (main=
    0x5555555a88b0 <main>, argc=1, argv=0x7fffffffe0c8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe0b8)
    at ../csu/libc-start.c:308
#11 0x00005555555a88ea in ()

Thread 1 "xplus4" received signal SIGSEGV, Segmentation fault.
0x00007ffff76beae9 in XQueryExtension ()
   from /usr/lib/x86_64-linux-gnu/libX11.so.6
(gdb) bt
#0 0x00007ffff76beae9 in XQueryExtension ()
    at /usr/lib/x86_64-linux-gnu/libX11.so.6
#1 0x00007ffff76b2692 in XInitExtension ()
    at /usr/lib/x86_64-linux-gnu/libX11.so.6
#2 0x00007ffff3c38fdf in XextAddDisplay ()
    at /usr/lib/x86_64-linux-gnu/libXext.so.6
#3 0x00007ffff7bcbd56 in () at /usr/lib/x86_64-linux-gnu/libXrandr.so.2
#4 0x00007ffff7bcc381 in XRRQueryExtension ()
    at /usr/lib/x86_64-linux-gnu/libXrandr.so.2
#5 0x0000555555687235 in ()
#6 0x0000555555685d6f in ()
#7 0x0000555555682448 in ()
#8 0x00005555555a1a95 in ()
#9 0x00007ffff3e5f1c1 in __libc_start_main (main=
    0x55555558ef40 <main>, argc=1, argv=0x7fffffffe0b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe0a8)
    at ../csu/libc-start.c:308
#10 0x000055555558ef7a in ()

Thread 1 "xvic" received signal SIGSEGV, Segmentation fault.
0x00007ffff76beae9 in XQueryExtension ()
   from /usr/lib/x86_64-linux-gnu/libX11.so.6
(gdb) bt
#0 0x00007ffff76beae9 in XQueryExtension ()
    at /usr/lib/x86_64-linux-gnu/libX11.so.6
#1 0x00007ffff76b2692 in XInitExtension ()
    at /usr/lib/x86_64-linux-gnu/libX11.so.6
#2 0x00007ffff3c38fdf in XextAddDisplay ()
    at /usr/lib/x86_64-linux-gnu/libXext.so.6
#3 0x00007ffff7bcbd56 in () at /usr/lib/x86_64-linux-gnu/libXrandr.so.2
#4 0x00007ffff7bcc381 in XRRQueryExtension ()
    at /usr/lib/x86_64-linux-gnu/libXrandr.so.2
#5 0x000055555569a105 in ()
#6 0x0000555555698c3f in ()
#7 0x0000555555695318 in ()
#8 0x00005555555a5de5 in ()
#9 0x00007ffff3e5f1c1 in __libc_start_main (main=
    0x555555593290 <main>, argc=1, argv=0x7fffffffe0b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe0a8)
    at ../csu/libc-start.c:308
#10 0x00005555555932ca in ()

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: vice 3.1.0.dfsg-1
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Oct 27 00:22:43 2017
InstallationDate: Installed on 2015-07-10 (839 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release i386 (20150422)
SourcePackage: vice
UpgradeStatus: Upgraded to artful on 2017-06-20 (128 days ago)

LGB [Gábor Lénárt] (lgb) wrote :
LGB [Gábor Lénárt] (lgb) wrote :
Download full text (4.3 KiB)

Now I've compiled VICE from source ("manually", with tarball from the official site etc), and the same result, crashing, with gdb reports things like this one (note, it was tested on two different machines running 17.10 both with official vice package and my own compiled one, always things like this I get):

[New Thread 0x7fffc7bc9700 (LWP 5936)]
[New Thread 0x7fffc6c60700 (LWP 5937)]

Thread 1 "x64" received signal SIGSEGV, Segmentation fault.
0x00007ffff1e80add in XQueryExtension ()
   from /usr/lib/x86_64-linux-gnu/libX11.so.6
(gdb) bt
#0 0x00007ffff1e80add in XQueryExtension ()
    at /usr/lib/x86_64-linux-gnu/libX11.so.6
#1 0x00007ffff1e74692 in XInitExtension ()
    at /usr/lib/x86_64-linux-gnu/libX11.so.6
#2 0x00007ffff44c551c in () at /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#3 0x00007ffff44c0e51 in glXQueryVersion ()
    at /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#4 0x00007ffff4270cfc in glxewInit ()
    at /usr/lib/x86_64-linux-gnu/libGLEW.so.2.0
#5 0x00007ffff4279043 in glewInit ()
    at /usr/lib/x86_64-linux-gnu/libGLEW.so.2.0
#6 0x0000555555770bd4 in realize_opengl_cb (area=<optimized out>, user_data=0x555557f2b1d0) at opengl_renderer.c:170
#7 0x00007ffff4a3cf9d in g_closure_invoke ()
    at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#8 0x00007ffff4a4fcde in () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9 0x00007ffff4a584b5 in g_signal_emit_valist ()
    at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#10 0x00007ffff4a58ecf in g_signal_emit ()
    at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007ffff584de76 in gtk_widget_realize ()
    at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#12 0x00007ffff584e178 in gtk_widget_map ()
    at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
---Type <return> to continue, or q <return> to quit---
#13 0x00007ffff56af0c0 in () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#14 0x00007ffff562aaef in () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#15 0x00007ffff4a3d0e0 in () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffff4a5879f in g_signal_emit_valist ()
    at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007ffff4a58ecf in g_signal_emit ()
    at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff584e122 in gtk_widget_map ()
    at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#19 0x00007ffff586441f in () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#20 0x00007ffff4a3d1d6 in () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#21 0x00007ffff4a5879f in g_signal_emit_valist ()
    at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#22 0x00007ffff4a58ecf in g_signal_emit ()
    at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#23 0x00007ffff584e122 in gtk_widget_map ()
    at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#24 0x00007ffff585bf9d in () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#25 0x00007ffff4a3cf9d in g_closure_invoke ()
    at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#26 0x00007ffff4a4fdae in () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#27 0x00007ffff4a584b5 in g_signal_emit_valist ()
    at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#28 0x00007ffff4a58ecf in g_signal_emit ()
---Type <return> to continue, or q <return> ...

Read more...

summary: - All the emulations in the VICE package crashes with SIGSEGV at
+ All the binaries in the vice package crashes with SIGSEGV at
XQueryExtension()
LGB [Gábor Lénárt] (lgb) wrote :

It seems there is something wrong with GLEW. At least I reported to the issue to the VICE team, and:

https://sourceforge.net/p/vice-emu/bugs/964/

LGB [Gábor Lénárt] (lgb) wrote :

It seems, the problem does not shows up if some compiles vice without gtk3 UI.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vice (Ubuntu):
status: New → Confirmed
Tommy Vestermark (tov) wrote :

I can confirm, that the VICE binaries crash when running from the default Wayland session in 17.10. If logging in with an X.org session they will run OK.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers