[Spice-devel] Xspice fails on F17 and Ubuntu 12.04

Eugene San eugenesan at gmail.com
Sat Mar 17 02:27:28 PDT 2012


Hi,

I've managed to get Xspice working on F17.

But it crashes on Ubuntu (spice related packages are built from latest
tarballs):
xorg-xserver_2:1.11.4-0ubuntu6
spice-protocol-0.10.1-1
spice-0.10.1-2
xserver-xorg-video-qxl-0.0.17-1
spiceqxl.xorg.conf (unmodified)

$ Xspice :3.0 --port 6000 --disable-ticketing --tls-port 0
X.Org X Server 1.11.3
Release Date: 2011-12-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-31-server x86_64 Ubuntu
Current Operating System: Linux airsan 3.2.0-18-generic #29-Ubuntu SMP Fri
Mar 9 21:36:08 UTC 2012 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-18-generic
root=UUID=366ac69d-d0f0-42e3-b544-e585df0c8ede ro quiet splash vt.handoff=7
Build Date: 09 March 2012  12:17:02PM
xorg-server 2:1.11.4-0ubuntu6 (For technical support please see
http://www.ubuntu.com/support)
Current version of pixman: 0.24.4
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.3.0.log", Time: Sat Mar 17 10:57:35 2012
(++) Using config file: "/etc/X11/spiceqxl.xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) Failed to load module "xspicekeyboard" (module does not exist, 0)
(EE) Failed to load module "xspicepointer" (module does not exist, 0)
(EE) Failed to load module "kbd" (module does not exist, 0)
memory space from 0x7fd6d7953010 to 0x7fd6dd951010
memory space from 0x7fd6ce952010 to 0x7fd6d6952010
memory space from 0x7fd6d7953010 to 0x7fd6dd951010
memory space from 0x7fd6ce952010 to 0x7fd6d6952010
slots start: 0, slots end: 1
done reset
bpp == 8 triggers bugs in spice apparently
slots start: 0, slots end: 1
done reset
primary is 0x7fd6e3d4e500
   Zero width or height
new stride: 10240 (display width: 2560, bpp: 4)
   Bad bpp: 1 (1)
   Bad bpp: 1 (1)
   Bad bpp: 1 (1)

Backtrace:
0: /usr/bin/Xorg (xorg_backtrace+0x26) [0x7fd6e3876306]
1: /usr/bin/Xorg (0x7fd6e36ee000+0x18c1aa) [0x7fd6e387a1aa]
2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7fd6e2a14000+0xfcb0)
[0x7fd6e2a23cb0]
3: /lib/x86_64-linux-gnu/libc.so.6 (0x7fd6e188a000+0x1370db)
[0x7fd6e19c10db]
4: /usr/bin/Xorg (NewInputDeviceRequest+0x52) [0x7fd6e378d852]
5: /usr/bin/Xorg (InitInput+0x76) [0x7fd6e377b1e6]
6: /usr/bin/Xorg (0x7fd6e36ee000+0x3d646) [0x7fd6e372b646]
7: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xed) [0x7fd6e18ab76d]
8: /usr/bin/Xorg (0x7fd6e36ee000+0x3d97d) [0x7fd6e372b97d]
Segmentation fault at address (nil)

Caught signal 11 (Segmentation fault). Server aborting

Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.
Please also check the log file at "/var/log/Xorg.3.0.log" for additional
information.

$ echo 'thread apply all bt full' | gdb /usr/bin/Xorg core
GNU gdb (Ubuntu/Linaro 7.4-2012.02-0ubuntu2) 7.4-2012.02
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/bin/Xorg...Reading symbols from
/usr/lib/debug/usr/bin/Xorg...done.
done.
[New LWP 5355]
[New LWP 5356]
[New LWP 5359]
[New LWP 5357]
[New LWP 5360]
[New LWP 5358]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/Xorg -config spiceqxl.xorg.conf :3.0'.
Program terminated with signal 11, Segmentation fault.
#0  outb (val=0 '\000', port=5) at /usr/include/xorg/compiler.h:426
426       __asm__ __volatile__("outb %0,%1" : :"a" (val), "d" (port));
(gdb)
Thread 6 (Thread 0x7fd6c3e8a700 (LWP 5358)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
No locals.
#1  0x00007fd6cc395a23 in ?? () from
/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
No symbol table info available.
#2  0x00007fd6e2a1be9a in start_thread (arg=0x7fd6c3e8a700) at
pthread_create.c:308
        __res = <optimized out>
        pd = 0x7fd6c3e8a700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0,
-1170691968529023092, 140560902019200, 140560386533824, 0, 3,
1183701277281664908, 1183629318428606348},
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = 0
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#3  0x00007fd6e197a74d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
No locals.
#4  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 5 (Thread 0x7fd6c2e88700 (LWP 5360)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
No locals.
#1  0x00007fd6cc395a23 in ?? () from
/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
No symbol table info available.
#2  0x00007fd6e2a1be9a in start_thread (arg=0x7fd6c2e88700) at
pthread_create.c:308
        __res = <optimized out>
        pd = 0x7fd6c2e88700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0,
-1170691968529023092, 140560902019200, 140560369748416, 0, 3,
1183699083627118476, 1183629318428606348},
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = 0
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#3  0x00007fd6e197a74d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
No locals.
#4  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 4 (Thread 0x7fd6c468b700 (LWP 5357)):
---Type <return> to continue, or q <return> to quit---#0
pthread_cond_wait@@GLIBC_2.3.2
() at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
No locals.
#1  0x00007fd6cc395a23 in ?? () from
/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
No symbol table info available.
#2  0x00007fd6e2a1be9a in start_thread (arg=0x7fd6c468b700) at
pthread_create.c:308
        __res = <optimized out>
        pd = 0x7fd6c468b700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0,
-1170691968529023092, 140560902019200, 140560394926528, 0, 3,
1183695779186655116, 1183629318428606348},
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = 0
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#3  0x00007fd6e197a74d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
No locals.
#4  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 3 (Thread 0x7fd6c3689700 (LWP 5359)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
No locals.
#1  0x00007fd6cc395a23 in ?? () from
/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
No symbol table info available.
#2  0x00007fd6e2a1be9a in start_thread (arg=0x7fd6c3689700) at
pthread_create.c:308
        __res = <optimized out>
        pd = 0x7fd6c3689700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0,
-1170691968529023092, 140560902019200, 140560378141120, 0, 3,
1183702377330163596, 1183629318428606348},
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = 0
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#3  0x00007fd6e197a74d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
No locals.
#4  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 2 (Thread 0x7fd6cd589700 (LWP 5356)):
#0  0x00007fd6e197ade3 in epoll_wait () at
../sysdeps/unix/syscall-template.S:82
No locals.
#1  0x00007fd6df810eb5 in ?? () from /usr/lib/libspice-server.so.1
No symbol table info available.
#2  0x00007fd6e2a1be9a in start_thread (arg=0x7fd6cd589700) at
pthread_create.c:308
        __res = <optimized out>
        pd = 0x7fd6cd589700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0,
-1170691968529023092, 140560902019200, 140560544864704, 0, 3,
1183680799414468492, 1183629318428606348},
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = 0
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
---Type <return> to continue, or q <return> to quit---#3
0x00007fd6e197a74d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
No locals.
#4  0x0000000000000000 in ?? ()
No symbol table info available.

Thread 1 (Thread 0x7fd6e36cf880 (LWP 5355)):
#0  outb (val=0 '\000', port=5) at /usr/include/xorg/compiler.h:426
No locals.
#1  qxl_leave_vt (scrnIndex=<optimized out>, flags=<optimized out>) at
../../src/qxl_driver.c:1212
        pScrn = <optimized out>
        qxl = 0x7fd6e3c2e540
#2  0x00007fd6e377b3db in SigAbortDDX (signo=11, error=EXIT_ERR_ABORT) at
../../../../hw/xfree86/common/xf86Init.c:1053
        i = <optimized out>
#3  0x00007fd6e38811b3 in SigAbortServer (signo=11) at ../../os/log.c:420
No locals.
#4  0x00007fd6e3881da3 in FatalSignal (signo=11) at ../../os/log.c:550
        beenhere = 1
#5  <signal handler called>
No symbol table info available.
#6  __strcasecmp_l_avx () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:235
No locals.
#7  0x00007fd6e378d852 in NewInputDeviceRequest (options=0x7fd6e3f8d420,
attrs=0x0, pdev=0x7fffb00134d8) at
../../../../hw/xfree86/common/xf86Xinput.c:912
        pInfo = 0x7fd6e3fb9110
        option = 0x7fd6e3fb6470
        rval = 0
        is_auto = <optimized out>
#8  0x00007fd6e377b1e6 in InitInput (argc=<optimized out>, argv=<optimized
out>) at ../../../../hw/xfree86/common/xf86Init.c:893
        pInfo = 0x7fd6e3c1b170
        dev = 0x7fd6e373466c
#9  0x00007fd6e372b646 in main (argc=4, argv=<optimized out>,
envp=<optimized out>) at ../../dix/main.c:258
        i = <optimized out>
        alwaysCheckForInput = {0, 1}
(gdb) quit

There are also a cordump and a Xorg.log, I can send them upon request.

Thanks.

On Wed, Mar 14, 2012 at 13:49, Alon Levy <alevy at redhat.com> wrote:

> On Mon, Mar 12, 2012 at 07:38:41PM +0200, Eugene San wrote:
> >    Hi all,
> >
> >    Recently I've performed an atempt to setup and run Xspice.
> >
> >    I have tried on F17 and Ubuntu12.04.
> >    On Fedora I used prebult binary. It runs but client connects and
> >    disconnects immidiatly and silently.
>
> I just tried:
>  xorg-x11-server-Xspice-0.0.21-16.fc17.x86_64
>
> It works with spicec, spicy, remote-viewer
>  spice-client-0.10.1-1.fc17.x86_64
>  spice-gtk-tools-0.11-2.fc17.x86_64
>  virt-viewer-0.5.2-1.fc17.x86_64
>
> There is a fixed bug I need to respin Xspice for (up/down keys not
> working correctly) but other then that, it connects, works - I run icewm
> and gimp on that for testing.
>
> >
> >    On Ubuntu I've built from latest qxl release and Xorg segfaults
> silently
> >    during the init.
>
> I would gladly look at any backtrace.
>
> >
> >    Brief dubug session didn'd bring any results.
> >
> >    My questions are:
> >    1. What was the setup Xspice worked lately?
> above.
>
> >    2. Can I have some advices in order to get it working?
> I run it with:
> Xspice :10.0 --port 15000 --disable-ticketing --tls-port 0
>
> Then I set DISPLAY=:10.0 and run a window manager etc.
>
> >    3. Are there any plans for pushing Xspice a little more, especially in
> >    light of raising compositors usage and upcoming wayland, making
> current
> >    remote desktop solutions pretty useless?
>
> I'm working on getting the agent working with it (copy&paste, client
> side mouse). I have intentions (the precursor to plans) to make it work
> with wayland (that would probably require a more direct connection with
> spice-server and not a reuse of xf86-video-qxl).
>
> >
> >    Thanks
>
> > _______________________________________________
> > Spice-devel mailing list
> > Spice-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/spice-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120317/a69e1ed6/attachment-0001.html>


More information about the Spice-devel mailing list