Launchpad has imported 1 comments from the remote bug at https://bugs.freedesktop.org/show_bug.cgi?id=53242.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2012-08-08T12:26:42+00:00 David Venz wrote: Created attachment 65279 Workaround - Patch against Ubuntu 12.04 source (7.6) This is https://bugs.launchpad.net/ubuntu/+source/x11-utils/+bug/1028274 and https://bugzilla.redhat.com/show_bug.cgi?id=808561 [Impact] xwininfo segfaults if called with an out-of-range screen number. [Test Case] 1. xwininfo -root -display :0.0 2. xwininfo -root -display :0.1 Actual Behavior: * First command passes * Second command segfaults Expected Behavior: * First command passes * Second command returns an error message without segfaulting --------------- On Ubuntu 8.04 this error message used to be "cannot open display :0.1". The problem could lie in libxcb (I'm no expert) xcb_connection_has_error() no longer returning true in the -display :0.1 case, but I've attached a patch for xwininfo anyway (sorry about the downstream format etc, not ready to jump into git). My lingering concern is over how many other bits of code use libxcb in this way, and may have had their assumptions broken. I.e. is the "right" place to fix this problem longer term in libxcb? Reply at: https://bugs.launchpad.net/x11-utils/+bug/1028274/comments/7 ** Changed in: x11-utils Status: Unknown => Confirmed ** Changed in: x11-utils Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1028274 Title: xwininfo segfaults if given a non-existent screen with -display option To manage notifications about this bug go to: https://bugs.launchpad.net/x11-utils/+bug/1028274/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
