Bug 15490 - XFree86-Misc broken cross-endian
Summary: XFree86-Misc broken cross-endian
Status: RESOLVED WONTFIX
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.1 (2006.05)
Hardware: All All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-14 03:25 UTC by Dave Rigby
Modified: 2009-05-03 20:26 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Dave Rigby 2008-04-14 03:25:13 UTC
==Overview==

The XFree86-Misc extension, in particular the X_XF86MiscGetFilePaths request seems to be broken when the X client is a different endian to the X server.

When using the 'xset' utility to query the properties of the X server, a large number of Xlib errors are seen when the X_XF86MiscGetFilePaths request is sent. I've debugged this down to seeing the request sent out by the client, but the response from the server looks garbage.

==Steps to reproduce==

1. From a big-endian machine (e.g. PPC), run xset, pointing at a little-endian server:

[user@big-endian:~]$ DISPLAY=little_endian:0 xset q

== Results==

Something similar to:

Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  auto repeat delay:  250    repeat rate:  30
  auto repeating keys:  00ffffffdffffbbf
                        fadfffdfffdfe5ef
                        ffffffffffffffff
                        ffffffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  20/10    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  600
Colors:
  default colormap:  0x20    BlackPixel:  0    WhitePixel:  16777215
Font Path:
  unix/:7100,built-ins
Bug Mode: compatibility mode is disabled
DPMS (Energy Star):
  Standby: 1200    Suspend: 1800    Off: 2400
  DPMS is Enabled
  Monitor is On
File paths:
  Config file:  /etc/X11/xorg.conf
  Modules path: 
  Log file:     
Xlib: sequence lost (0x10000 > 0x17) in reply type 0x0!
X Error of failed request:  0
  Major opcode of failed request:  0 ()
  Serial number of failed request:  0
  Current serial number in output stream:  23
X Error of failed request:  0
  Major opcode of failed request:  102 (X_ChangeKeyboardControl)
  Serial number of failed request:  0
  Current serial number in output stream:  23
Xlib: sequence lost (0x10000 > 0x17) in reply type 0x0!
X Error of failed request:  0
  Major opcode of failed request:  0 ()
  Serial number of failed request:  0
  Current serial number in output stream:  23
Xlib: sequence lost (0x10000 > 0x17) in reply type 0x0!
X Error of failed request:  0
  Major opcode of failed request:  0 ()
  Serial number of failed request:  0
  Current serial number in output stream:  23
Xlib: sequence lost (0x1979f > 0x17) in reply type 0xa0!
...
<xset hangs>


== Exected Results ==
Output similar to below, and clean termination:

Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  auto repeat delay:  250    repeat rate:  30
  auto repeating keys:  00ffffffdffffbbf
                        fadfffdfffdfe5ef
                        ffffffffffffffff
                        ffffffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  20/10    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  600
Colors:
  default colormap:  0x20    BlackPixel:  0    WhitePixel:  16777215
Font Path:
  unix/:7100,built-ins
Bug Mode: compatibility mode is disabled
DPMS (Energy Star):
  Standby: 1200    Suspend: 1800    Off: 2400
  DPMS is Enabled
  Monitor is On
File paths:
  Config file:  /etc/X11/xorg.conf
  Modules path: <modules> 
  Log file:  <logs>

==Build Info=

===little-endian server, big endian server:===

X server:

X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.9-55.0.2.ELsmp x86_64 Red Hat, Inc.
Current Operating System: Linux <removed> 2.6.18-53.el5autofsiank #1 SMP Wed Nov 14 09:58:35 GMT 2007 x86_64
Build Date: 05 September 2007

X client:

$ rpm -qfi `which xset`
Name        : xorg-x11                     Relocations: (not relocatable)
Version     : 6.9.0                             Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release     : 50.45                         Build Date: Fri 18 May 2007 11:49:18 BST
Install Date: Fri 18 May 2007 15:53:46 BST      Build Host: huckleberry.suse.de
Group       : System/X11/Utilities          Source RPM: xorg-x11-6.9.0-50.45.src.rpm
Size        : 22325866                         License: X11/MIT
Signature   : DSA/SHA1, Fri 18 May 2007 11:55:33 BST, Key ID a84edae89c800aca
Packager    : http://bugs.opensuse.org
URL         : http://xorg.freedesktop.org/
Summary     : The basic X Window System package
Description :
This package contains X.Org and some other programs from the
contrib-directory.

Same versions (opposite way around for big-endian server / little-endian client).
Comment 1 Alan Coopersmith 2009-05-03 20:26:00 UTC
XFree86-Misc has been removed completely from Xorg 1.6.0 and later
releases, so we can't fix this going forward.   (Someone could still
fix for the Xorg 1.5.x or earlier branch if they really wanted to,
but I'm closing as WONTFIX until someone so motivated shows up.)


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.