Summary: | segfault in composite due to xprint/ps lack of WindowPixmap | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Drew Parsons <dparsons> | ||||||
Component: | Server/General | Assignee: | Xorg Project Team <xorg-team> | ||||||
Status: | RESOLVED FIXED | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | high | Keywords: | patch | ||||||
Version: | git | ||||||||
Hardware: | x86 (IA32) | ||||||||
OS: | Linux (All) | ||||||||
Whiteboard: | |||||||||
i915 platform: | i915 features: | ||||||||
Attachments: |
|
Description
Drew Parsons
2006-06-27 21:39:16 UTC
Created attachment 6066 [details] [review] patch heals composite WindowPixmap segfault The correct fix (avoiding various snarky comments) would be to make XPrint not try to initialize an extension it has no hope of supporting. OK, thanks for the feedback. I'll generate a different patch operating on Xprint directly then. Either in the Xprint code itself, or setting up a --disable-composite inside the XPRINT block in configure.ac. I think the following patch must be the one we want. Xprint keeps a list of the extensions it does not support in mi/miinitext.c. Since the composite extension is relatively new, it hadn't been registered as unsupported. The patch adds it to the list. Composite still gets compiled, but is not used by Xprint so the crash reported in this bug is avoided. The binary size can be made slightly (1%) smaller by not compiling it. Doing this by default for Xprint means complicating configure.ac to a messy degree in order to undo the normal xserver default of including composite. So I recommend not touching configure.ac in this way. If saving the unused space is really that important to someone then --disable-composite (along with --disable-damage and other extensions not supported by Xprint) can be applied explicitly at build time. Created attachment 6184 [details] [review] marks composite extension as unsupported by Xprint Adds composite to the list of extensions unsupported by Xprint. Second patch (disable composite in Xprint) applied to Xorg git head: mi/miinitext.c | 1 + 1 files changed, 1 insertion(+) New commits: diff-tree bb3aa94845a74d7718ba9539bb76203ec82957fc (from 10f3e32726d5b4981abd1a3a022e5b4f219fb41e) Author: Drew Parsons <dparsons@debian.org> Date: Tue Jul 11 18:26:55 2006 -0700 Bug #7346: Disable Composite extension in Xprt Xorg Bug #7346 <https://bugs.freedesktop.org/show_bug.cgi?id=7346> Patch #6184 <https://bugs.freedesktop.org/attachment.cgi?id=6184> |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.