Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 366528 Details for
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
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to include in app-emulation/spice-0.12.4
spice-0.12.4-fix-xspice-addmemslot.patch (text/plain), 2.72 KB, created by
David
on 2013-12-30 11:10:28 UTC
(
hide
)
Description:
Patch to include in app-emulation/spice-0.12.4
Filename:
MIME Type:
Creator:
David
Created:
2013-12-30 11:10:28 UTC
Size:
2.72 KB
patch
obsolete
>From 1d18b7e98ab268c755933061d77ccc7a981815e2 Mon Sep 17 00:00:00 2001 >From: Marc-André Lureau <marcandre.lureau@gmail.com> >Date: Thu, 03 Oct 2013 20:54:30 +0000 >Subject: server: set dispatcher before calling attache_worker > >This allows to call spice_qxl_add_memslot during attache_worker(), like >done in the tests. >--- >diff --git a/server/red_dispatcher.c b/server/red_dispatcher.c >index 03a4c4a..fd6c2e1 100644 >--- a/server/red_dispatcher.c >+++ b/server/red_dispatcher.c >@@ -1072,7 +1072,7 @@ static RedChannel *red_dispatcher_cursor_channel_create(RedDispatcher *dispatche > return cursor_channel; > } > >-RedDispatcher *red_dispatcher_init(QXLInstance *qxl) >+void red_dispatcher_init(QXLInstance *qxl) > { > RedDispatcher *red_dispatcher; > RedWorkerMessage message; >@@ -1085,6 +1085,8 @@ RedDispatcher *red_dispatcher_init(QXLInstance *qxl) > sigset_t curr_sig_mask; > ClientCbs client_cbs = { NULL, }; > >+ spice_return_if_fail(qxl->st->dispatcher == NULL); >+ > quic_init(); > sw_canvas_init(); > #ifdef USE_OPENGL >@@ -1175,12 +1177,12 @@ RedDispatcher *red_dispatcher_init(QXLInstance *qxl) > reds_register_channel(cursor_channel); > } > >- qxl->st->qif->attache_worker(qxl, &red_dispatcher->base); >- qxl->st->qif->set_compression_level(qxl, calc_compression_level()); >- >+ qxl->st->dispatcher = red_dispatcher; > red_dispatcher->next = dispatchers; > dispatchers = red_dispatcher; >- return red_dispatcher; >+ >+ qxl->st->qif->attache_worker(qxl, &red_dispatcher->base); >+ qxl->st->qif->set_compression_level(qxl, calc_compression_level()); > } > > struct Dispatcher *red_dispatcher_get_dispatcher(RedDispatcher *red_dispatcher) >diff --git a/server/red_dispatcher.h b/server/red_dispatcher.h >index 7d23b11..907b7c7 100644 >--- a/server/red_dispatcher.h >+++ b/server/red_dispatcher.h >@@ -21,9 +21,10 @@ > #include "red_channel.h" > > struct RedChannelClient; >+struct RedDispatcher; > typedef struct AsyncCommand AsyncCommand; > >-struct RedDispatcher *red_dispatcher_init(QXLInstance *qxl); >+void red_dispatcher_init(QXLInstance *qxl); > > void red_dispatcher_set_mm_time(uint32_t); > void red_dispatcher_on_ic_change(void); >diff --git a/server/reds.c b/server/reds.c >index 0f81a32..1456b75 100644 >--- a/server/reds.c >+++ b/server/reds.c >@@ -3771,7 +3771,7 @@ SPICE_GNUC_VISIBLE int spice_server_add_interface(SpiceServer *s, > qxl = SPICE_CONTAINEROF(sin, QXLInstance, base); > qxl->st = spice_new0(QXLState, 1); > qxl->st->qif = SPICE_CONTAINEROF(interface, QXLInterface, base); >- qxl->st->dispatcher = red_dispatcher_init(qxl); >+ red_dispatcher_init(qxl); > > } else if (strcmp(interface->type, SPICE_INTERFACE_TABLET) == 0) { > spice_info("SPICE_INTERFACE_TABLET"); >-- >cgit v0.9.0.2-2-gbebe
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 496474
: 366528