Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496474 - app-emulation/spice with >=x11-drivers/xf86-video-qxl-0.1.1 - segmentation fault in /usr/lib64/xorg/modules/drivers/spiceqxl_drv.so
Summary: app-emulation/spice with >=x11-drivers/xf86-video-qxl-0.1.1 - segmentation fa...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-12-30 11:10 UTC by David
Modified: 2015-08-14 04:22 UTC (History)
1 user (show)

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


Attachments
Patch to include in app-emulation/spice-0.12.4 (spice-0.12.4-fix-xspice-addmemslot.patch,2.72 KB, patch)
2013-12-30 11:10 UTC, David
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David 2013-12-30 11:10:28 UTC
Created attachment 366528 [details, diff]
Patch to include in app-emulation/spice-0.12.4

Since the stabilization of x11-drivers/xf86-video-qxl 0.1.1, Xspice segfault at startup because it use the new API to add memslot.

Step to reproduce:

1) USE=xspice emerge -1 =11-drivers/xf86-video-qxl-0.1.1
2) start GDM or Xspice script
3) Get the segfault

[347464.640] resizing surface0 to 16777216
[347464.640] memory space from 0x7f30ff60a010 to 0x7f3106607010
[347464.640] memory space from 0x7f30f6609010 to 0x7f30fe609010
[347464.642] (EE) 
[347464.642] (EE) Backtrace:
[347464.642] (EE) 0: /usr/bin/Xorg (xorg_backtrace+0x36) [0x58b566]
[347464.642] (EE) 1: /usr/bin/Xorg (0x400000+0x18f269) [0x58f269]
[347464.642] (EE) 2: /lib64/libpthread.so.0 (0x7f3109e4d000+0x10aa0) [0x7f3109e5daa0]
[347464.642] (EE) 3: /usr/lib64/libspice-server.so.1 (0x7f31077fe000+0x2895a) [0x7f310782695a]
[347464.642] (EE) 4: /usr/lib64/libspice-server.so.1 (0x7f31077fe000+0x28e6c) [0x7f3107826e6c]
[347464.642] (EE) 5: /usr/lib64/xorg/modules/drivers/spiceqxl_drv.so (0x7f3107b29000+0xa38d) [0x7f3107b3338d]
[347464.642] (EE) 6: /usr/lib64/libspice-server.so.1 (0x7f31077fe000+0x2b70f) [0x7f310782970f]
[347464.642] (EE) 7: /usr/lib64/libspice-server.so.1 (spice_server_add_interface+0x3a6) [0x7f3107853c76]
[347464.642] (EE) 8: /usr/lib64/xorg/modules/drivers/spiceqxl_drv.so (0x7f3107b29000+0xc98b) [0x7f3107b3598b]
[347464.642] (EE) 9: /usr/bin/Xorg (AddScreen+0x85) [0x43b7b5]
[347464.642] (EE) 10: /usr/bin/Xorg (InitOutput+0x3fa) [0x47cbca]
[347464.642] (EE) 11: /usr/bin/Xorg (0x400000+0x29d36) [0x429d36]
[347464.642] (EE) 12: /lib64/libc.so.6 (__libc_start_main+0xf5) [0x7f3108ad69b5]
[347464.642] (EE) 13: /usr/bin/Xorg (0x400000+0x2a271) [0x42a271]
[347464.642] (EE) 
[347464.642] (EE) Segmentation fault at address 0xd8
[347464.642] (EE) 
Fatal server error:
[347464.642] (EE) Caught signal 11 (Segmentation fault). Server aborting
[347464.642] (EE) 
[347464.642] (EE) 

To prevent this segfault we need to use a patch from the future spice 0.12.5 release.

Upstream fixes:
http://cgit.freedesktop.org/spice/spice/commit/?id=1d18b7e98ab268c755933061d77ccc7a981815e2

I have worked on this issue with upstream guys and running spice 0.12.4 with the attached patch works well.
Comment 1 David 2014-05-20 11:36:49 UTC
spice 0.12.5 is released. It include the fix that cause the Xorg segfault with xf86-video-qxl-0.1.1.

We need to bump to 0.12.5 and remove older releases (or include the patch attached)
Comment 2 Matthias Maier gentoo-dev 2015-08-14 04:22:02 UTC
0.12.5 is stable for a long time now.