Discussion:
[Git][xorg-team/lib/libx11][debian-unstable] 8 commits:
Timo Aaltonen
2018-10-09 15:11:01 UTC
Permalink
Timo Aaltonen pushed to branch debian-unstable at X Strike Force / lib / libx11


Commits:
d0416863 by Bhavi Dhingra at 2018-09-22T23:21:14Z
XcmsLookupColor: fully initialize XColor structs passed to _XColor_to_XcmsRGB

Fixes https://gitlab.freedesktop.org/xorg/lib/libx11/issues/44
aka https://bugs.freedesktop.org/show_bug.cgi?id=92154

Reviewed-by: Alan Coopersmith <***@oracle.com>
Signed-off-by: Alan Coopersmith <***@oracle.com>

- - - - -
406afe4b by Michel Dänzer at 2018-09-25T15:10:58Z
poll_for_response: Call poll_for_event again if xcb_poll_for_reply fails

If xcb_poll_for_reply fails to find a reply, poll_for_response would
always return NULL. However, xcb_poll_for_reply may have read events
from the display connection while looking for a reply. In that case,
returning NULL from poll_for_response is wrong and can result in the
client hanging, e.g. because it returns to waiting for the display
connection file descriptor becoming readable after XPending incorrectly
returned 0 pending events.

The solution is to call poll_for_event again after xcb_poll_for_reply
returned 0. This will return the first of any events read by
xcb_poll_for_reply.

Fixes issue #79.

Reported-by: Yuxuan Shui <***@gmail.com>
Bugzilla: https://bugs.freedesktop.org/108008
Bugzilla: https://bugs.freedesktop.org/107992
Reviewed-by: Adam Jackson <***@redhat.com>

- - - - -
823a0f8a by Michel Dänzer at 2018-09-28T15:24:17Z
poll_for_event: Allow using xcb_poll_for_queued_event

It avoids reading from the display connection again in cases where that
was already done.

Suggested-by: Uli Schlachter <***@znc.in>
Reviewed-by: Uli Schlachter <***@znc.in>

- - - - -
f3c97847 by Matt Turner at 2018-10-09T14:26:12Z
libX11 1.6.7

Signed-off-by: Matt Turner <***@gmail.com>

- - - - -
561fbe5f by Timo Aaltonen at 2018-10-09T14:56:21Z
Merge branch 'upstream-unstable' into debian-unstable

- - - - -
161ac024 by Timo Aaltonen at 2018-10-09T14:59:32Z
update the changelog

- - - - -
c2f87911 by Timo Aaltonen at 2018-10-09T15:03:06Z
upstream: Add key from Matt Turner.

- - - - -
8e864a1f by Timo Aaltonen at 2018-10-09T15:03:33Z
upload to unstable

- - - - -


5 changed files:

- configure.ac
- debian/changelog
- debian/upstream/signing-key.asc
- src/xcb_io.c
- src/xcms/cmsLkCol.c


Changes:

=====================================
configure.ac
=====================================
@@ -1,7 +1,7 @@

# Initialize Autoconf
AC_PREREQ([2.60])
-AC_INIT([libX11], [1.6.6],
+AC_INIT([libX11], [1.6.7],
[https://gitlab.freedesktop.org/xorg/lib/libx11/issues], [libX11])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([src/config.h include/X11/XlibConf.h])


=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+libx11 (2:1.6.7-1) unstable; urgency=medium
+
+ * New upstream release.
+ - fix video freezing in firefox with amdgpu
+ * upstream: Add key from Matt Turner.
+
+ -- Timo Aaltonen <***@debian.org> Tue, 09 Oct 2018 18:03:26 +0300
+
libx11 (2:1.6.6-1) unstable; urgency=medium

* New upstream release.


=====================================
debian/upstream/signing-key.asc
=====================================
@@ -211,3 +211,110 @@ g5EXB3ShUaCfZZwnjzkCiKmva5JlOFWVXXDu5tAwS2oV0EJucraV7z2QW3vhNSOQ
91c+amYo/Z7vkRnDyZPLlsoOlcRNjr5U4/lYyS0AJS/RDZ0=
=IcP4
-----END PGP PUBLIC KEY BLOCK-----
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQINBE6HVy4BEADACp0EU6HZ4KyFx/qfhzNarCfnlyEoCFY08k516UaHrUOrYWPp
+ukoahcceA/M3H/xM0CGIn6uiuG/Cq7+qODAZNBsr6haIbDaqSUt+953b5qCSbD65
+LBR8TXvW+9KkXPhXTKi/osYBdmsbFLeVLqU5Kd4QJqWKRLtuo0ENbFkQPVypEJk8
+Ozg2zZ2yeSQAy0pgeFh8lezI7A23yj229kFq0EEfeqHpgifIzR2hNIhS5pTSOt8V
+RDapO3FpOmxPPUMsaJ1KATD92+SgbZW8evW7ffz4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TY6+VOP5WMktACUv0Q2d
+=FUgf
+-----END PGP PUBLIC KEY BLOCK-----


=====================================
src/xcb_io.c
=====================================
@@ -230,7 +230,7 @@ static void widen(uint64_t *wide, unsigned int narrow)
* variable for that thread to process the response and wake us up.
*/

-static xcb_generic_reply_t *poll_for_event(Display *dpy)
+static xcb_generic_reply_t *poll_for_event(Display *dpy, Bool queued_only)
{
/* Make sure the Display's sequence numbers are valid */
require_socket(dpy);
@@ -238,8 +238,12 @@ static xcb_generic_reply_t *poll_for_event(Display *dpy)
/* Precondition: This thread can safely get events from XCB. */
assert(dpy->xcb->event_owner == XlibOwnsEventQueue && !dpy->xcb->event_waiter);

- if(!dpy->xcb->next_event)
- dpy->xcb->next_event = xcb_poll_for_event(dpy->xcb->connection);
+ if(!dpy->xcb->next_event) {
+ if(queued_only)
+ dpy->xcb->next_event = xcb_poll_for_queued_event(dpy->xcb->connection);
+ else
+ dpy->xcb->next_event = xcb_poll_for_event(dpy->xcb->connection);
+ }

if(dpy->xcb->next_event)
{
@@ -271,12 +275,21 @@ static xcb_generic_reply_t *poll_for_response(Display *dpy)
void *response;
xcb_generic_error_t *error;
PendingRequest *req;
- while(!(response = poll_for_event(dpy)) &&
+ while(!(response = poll_for_event(dpy, False)) &&
(req = dpy->xcb->pending_requests) &&
- !req->reply_waiter &&
- xcb_poll_for_reply64(dpy->xcb->connection, req->sequence, &response, &error))
+ !req->reply_waiter)
{
- uint64_t request = X_DPY_GET_REQUEST(dpy);
+ uint64_t request;
+
+ if(!xcb_poll_for_reply64(dpy->xcb->connection, req->sequence,
+ &response, &error)) {
+ /* xcb_poll_for_reply64 may have read events even if
+ * there is no reply. */
+ response = poll_for_event(dpy, True);
+ break;
+ }
+
+ request = X_DPY_GET_REQUEST(dpy);
if(XLIB_SEQUENCE_COMPARE(req->sequence, >, request))
{
throw_thread_fail_assert("Unknown sequence number "
@@ -617,7 +630,7 @@ Status _XReply(Display *dpy, xReply *rep, int extra, Bool discard)
{ /* need braces around ConditionWait */
ConditionWait(dpy, dpy->xcb->event_notify);
}
- while((event = poll_for_event(dpy)))
+ while((event = poll_for_event(dpy, True)))
handle_response(dpy, event, True);
}



=====================================
src/xcms/cmsLkCol.c
=====================================
@@ -76,7 +76,8 @@ XcmsLookupColor (
register int n;
xLookupColorReply reply;
register xLookupColorReq *req;
- XColor def, scr;
+ XColor def = {0,};
+ XColor scr = {0,};

/*
* 0. Check for invalid arguments.



View it on GitLab: https://salsa.debian.org/xorg-team/lib/libx11/compare/153e24a2715b28411d5246f939900520c241a717...8e864a1f471d12d2d2bb1b5bb2c924f449079c31
--
View it on GitLab: https://salsa.debian.org/xorg-team/lib/libx11/compare/153e24a2715b28411d5246f939900520c241a717...8e864a1f471d12d2d2bb1b5bb2c924f449079c31
You're receiving this email because of your account on salsa.debian.org.
Loading...