ANN: xterm patch #257

2010-04-22 Thread Thomas Dickey
Patch #257 - 2010/4/22

 * correct  ctlseqs.ms  description  of  OSC  17 and OSC 19 (patch by
   Emanuele Giaquinta).
 * corrected  logic  for  menuLocale resource; the setlocale function
   returns the original locale only when querying.
 * improve filtering of translations resource, narrowing the scope of
   the  alwaysUseMods  to  address  only  the translations that would
   cause a key to be sent to the host (report by Andrew Gaylard).
 * change default value of menuLocale resource to C, to work around
   longstanding [261]Xorg bug.
 * modify handling of scrollKey feature to ignore XON/XOFF keys.
 * implement scroll-lock feature.
 * revise memory allocation in UTF8toLatin1() to fix an out-of-bounds
   index (Mandriva #54531).
 * compute  value for first wide-character rather than assuming it is
   256,  fixes problem with -cjk_width introduced in patches [262]242
   and [263]249 (report by Thomas Wolff).
 * improve configure script:
  + corrected check for _XOPEN_SOURCE for OpenSolaris.
  + when  possible,  add  rpath  option  for libraries in unusual
places
  + add  configure option --disable-rpath-hack to control whether
the rpath option can be added.
 * modify AllocateTermColor() to separate initialization from control
   sequences,  fixing  problem  from  [264]patch  #254  changes where
   enabling allowSendEvents resource prevents setting cursor color on
   command-line (Debian #572928).
 * amend  logic  from [265]patch #185 to not reallocate cell-array if
   processing  ESC % G  to switch from UTF-8 if already in ISO-8859-1
   character set (report by Michael Koehne).
 * fix to avoid calling XmuInternStrings() with zero count (report by
   Johan Bockgård).
 * fix build when --disable-ansi-color configure option is used.
 * fix build when neither OPT_TCAP_QUERY or OPT_TCAP_FKEYS is defined
   (patch by Matthieu Herrb)

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpkqVRKdFhpO.pgp
Description: PGP signature
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Intel Pineview screen rotation = S L O W

2010-04-22 Thread Florian Echtler
Hello everyone,

I've got a new netbook with an Intel Atom N450 and a Pineview integrated
GFX controller. I'm running Ubuntu 9.10 with Xorg 1.6.4. As it's a
tablet/convertible, I'd like to be able to switch the screen orientation
from time to time. This does work find with xrandr, however, any
rotation except normal (i.e., left,right, and inverted) is very
slow (e.g, Firefox is barely usable anymore). An entirely non-scientific
test with glxgears gives a framerate of 1190 FPS in normal mode and
around 250 in any rotated mode.

Is this to be expected, or is there a glitch somewhere?

Thanks,
Florian
-- 
0666 - Filemode of the Beast

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: WebGL on linux

2010-04-22 Thread Sven Arvidsson
On Tue, 2010-04-20 at 19:44 +0200, Aljoša Mohorović wrote:
 i'm trying to get WebGL (OpenGL ES 2.0 for the Web -
 http://www.khronos.org/webgl/) to work under linux but with no
 success.
 i don't mind buying a new card just to get this working, can anybody
 recommend a card with excellent open-source driver?
 
 but i'm also interested what can be expected for other cards on linux
 with opengl support  2.0?
 i'm interested because it will result in linux having bad support for
 webgl and mac and win excellent support.
 any comments appreciated.

Hi,

For WebGL in Firefox, it seems you need git master of the xserver, and a
patch for Firefox:
https://bugs.freedesktop.org/show_bug.cgi?id=24093#c9

I'm not really sure what's required for WebGL in Google Chrome? (Adding
mesa-dev to the cc.)

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 760BDD22



signature.asc
Description: This is a digitally signed message part
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: Correct git clone and build instructions?

2010-04-22 Thread Gaetan Nadon
On Thu, 2010-04-22 at 00:11 -0300, Fernando Carrijo wrote:

 Hi Jeff,
 
 Jeff Carr basilarc...@gmail.com wrote:
  I'm having trouble finding accurate git clone and build instructions
  on the wiki. When trying to run autoconf.sh in the xserver tree it
  complained of error: must install xorg-macros. Is the best way to
  just go through and clone these one by one until the dependencies are
  met? I suspected it's just the beginning of a long chain of hairy
  dependences that might be worthy of emailing the list first.
  
  Is there a tool like the android repo or perhaps a method to pull
  down the various git trees via git submodule? Or just README that
  contains the recommended order of building and installing?
 
 When it comes to X building, this is what people are referred to:
 
   http://wiki.x.org/wiki/ModularDevelopersGuide
 
 I hope it helps!
 


In there, this is a simple method that works. It builds more than you
want, but it will take more time to trim it then it takes to build it. 
Starting with nothing, you get everything. The build.sh script is
up-to-date.
Also not that you must have the correct tool chain to build. This wiki
will give you a good idea of what is needed:
http://wiki.x.org/wiki/RequiredPackages


From the Git repository
Note: X.Org has moved all currently maintained modules to the Git
repository. See the GitPage for more information and UsingGit on how to
use Git. 

The build.sh script is provided in the xorg/util/modular repository. It
provides a --clone flag to get the modules required. To get the initial
checkout of all modules, run: 


$ cd /tmp/src
$ git clone git://anongit.freedesktop.org/git/xorg/util/modular util/modular
$ ./util/modular/build.sh --clone -a -n /tmp/modular


This will clone all modules into the right directory structure. The -a
flags tells the script to skip automake and hence the build will fail.
The -n flag tells the script to continue regardless. Both flags together
will result in a clean checkout of every module. 

Alternatively, run the above command without the -a and -n flags and the
script will build everything into the prefix provided. 




 ___
 xorg@lists.freedesktop.org: X.Org support
 Archives: http://lists.freedesktop.org/archives/xorg
 Info: http://lists.freedesktop.org/mailman/listinfo/xorg


signature.asc
Description: This is a digitally signed message part
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: xrandr generated event

2010-04-22 Thread Nokan Emiro
On Mon, Jan 11, 2010 at 3:12 PM, Adam Jackson a...@nwnk.net wrote:

 On Sat, 2010-01-09 at 11:42 +0100, Nokan Emiro wrote:

  Could someone please tell me what event should an X client
  subscribe and handle to update it's knowledge on screen size
  (width and height is saved at client startup from DisplayWidth()
  and DisplayHeight())?
 
  If a user switches into an other resolution (for emaple form 1024x768
  into 800x600 with:
 
   $ xrandr --output VGA --mode 800x600
 
  ), my X client's widht and height needs to be modified somehow,
  and I hope XSelectInput() + XNextEvent() can notify me on these
  resolution changes...

 You can either select for ConfigureNotify on the root window, or for
 RRScreenChangeNotify using XRRSelectInput().



I've choosed the RR version, and that worked fine with XOrg
version 1.6.0 to 1.6.4.  Now I upgraded to 1.7.6, and I no longer
receive  the RRScreenChangeNotify events.  Can you tell me
what do I wrong?  (Actually it was an Ubuntu Karmic to Lucid
upgrade...)

u.
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: WebGL on linux

2010-04-22 Thread Corbin Simpson
On Thu, Apr 22, 2010 at 5:25 AM, Sven Arvidsson s...@whiz.se wrote:
 On Tue, 2010-04-20 at 19:44 +0200, Aljoša Mohorović wrote:
 i'm trying to get WebGL (OpenGL ES 2.0 for the Web -
 http://www.khronos.org/webgl/) to work under linux but with no
 success.
 i don't mind buying a new card just to get this working, can anybody
 recommend a card with excellent open-source driver?

 but i'm also interested what can be expected for other cards on linux
 with opengl support  2.0?
 i'm interested because it will result in linux having bad support for
 webgl and mac and win excellent support.
 any comments appreciated.

 Hi,

 For WebGL in Firefox, it seems you need git master of the xserver, and a
 patch for Firefox:
 https://bugs.freedesktop.org/show_bug.cgi?id=24093#c9

 I'm not really sure what's required for WebGL in Google Chrome? (Adding
 mesa-dev to the cc.)

 --
 Cheers,
 Sven Arvidsson
 http://www.whiz.se
 PGP Key ID 760BDD22

Dunno if there's any real good reason to CC us. Kristian nailed it on
those bugs -- pbuffers weren't supported on the server side until
recently, but now they are and they work fine. That Fx bug is pretty
serious, as there's a fair number of drivers that have no multisampled
configs and will fail with WebGL.

I'm kind of glad I saw this, though, because it makes me feel a bit
better about my failed attempt to test WebGL a few weeks ago. :3

~ C.

-- 
When the facts change, I change my mind. What do you do, sir? ~ Keynes

Corbin Simpson
mostawesomed...@gmail.com
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: Correct git clone and build instructions?

2010-04-22 Thread ace102

Using JHBuild -
http://library.gnome.org/devel/jhbuild/stable/getting-started.html.en#getting-started-install
with the current xorg.modules -
http://cgit.freedesktop.org/xorg/util/modular/tree/xorg.modules - is the
best method I know of. 
You can cut out the apps,drivers,etc you won't need from the xorg.modules.


Jeff Carr-3 wrote:
 
 I'm having trouble finding accurate git clone and build instructions
 on the wiki. When trying to run autoconf.sh in the xserver tree it
 complained of error: must install xorg-macros. Is the best way to
 just go through and clone these one by one until the dependencies are
 met? I suspected it's just the beginning of a long chain of hairy
 dependences that might be worthy of emailing the list first.
 
 Is there a tool like the android repo or perhaps a method to pull
 down the various git trees via git submodule? Or just README that
 contains the recommended order of building and installing?
 
 


-
Error:Success
-- 
View this message in context: 
http://old.nabble.com/Correct-git-clone-and-build-instructions--tp28323619p28331587.html
Sent from the Free Desktop - xorg mailing list archive at Nabble.com.

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: Correct git clone and build instructions?

2010-04-22 Thread Pat Kane
I'm having trouble finding accurate git clone and build instructions

I have had good luck using Peter's instructions at:
   http://lists.x.org/archives/xorg-devel/2009-August/001826.html

  # Quickstart for those that do not use jhbuild:
   export PREFIX=/opt/xorg
   export LD_LIBRARY_PATH=$PREFIX/lib
   export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
   export PATH=$PREFIX/bin:$PATH
   export ACLOCAL=aclocal -I $PREFIX/share/aclocal
   git clone git://anongit.freedesktop.org/git/xorg/util/modular/ util/modular
   echo util/macros  built.modules
   ./util/modular/build.sh --clone -p -f built.modules -r `tail -n 1 built.modu\
les` $PREFIX

  # Re-run the last command until a build succeeds.
  # Cheers,
  #   Peter

Pat
---



On Thu, Apr 22, 2010 at 11:48 AM, ace102 mgav...@juno.com wrote:

 Using JHBuild -
 http://library.gnome.org/devel/jhbuild/stable/getting-started.html.en#getting-started-install
 with the current xorg.modules -
 http://cgit.freedesktop.org/xorg/util/modular/tree/xorg.modules - is the
 best method I know of.
 You can cut out the apps,drivers,etc you won't need from the xorg.modules.


 Jeff Carr-3 wrote:

 I'm having trouble finding accurate git clone and build instructions
 on the wiki. When trying to run autoconf.sh in the xserver tree it
 complained of error: must install xorg-macros. Is the best way to
 just go through and clone these one by one until the dependencies are
 met? I suspected it's just the beginning of a long chain of hairy
 dependences that might be worthy of emailing the list first.

 Is there a tool like the android repo or perhaps a method to pull
 down the various git trees via git submodule? Or just README that
 contains the recommended order of building and installing?




 -
 Error:Success
 --
 View this message in context: 
 http://old.nabble.com/Correct-git-clone-and-build-instructions--tp28323619p28331587.html
 Sent from the Free Desktop - xorg mailing list archive at Nabble.com.

 ___
 xorg@lists.freedesktop.org: X.Org support
 Archives: http://lists.freedesktop.org/archives/xorg
 Info: http://lists.freedesktop.org/mailman/listinfo/xorg

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: WebGL on linux

2010-04-22 Thread Sven Arvidsson
On Thu, 2010-04-22 at 08:57 -0700, Corbin Simpson wrote:
 Dunno if there's any real good reason to CC us. Kristian nailed it on
 those bugs -- pbuffers weren't supported on the server side until
 recently, but now they are and they work fine. That Fx bug is pretty
 serious, as there's a fair number of drivers that have no multisampled
 configs and will fail with WebGL.
 
 I'm kind of glad I saw this, though, because it makes me feel a bit
 better about my failed attempt to test WebGL a few weeks ago. :3

I guess I was mostly curious about any experiences with Mesa and WebGL
in Chrome.

I only gave it a quick try a few days ago, but didn't get any further
than Couldn't enable WebGL - sorry or something similar.

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 760BDD22



signature.asc
Description: This is a digitally signed message part
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: WebGL on linux

2010-04-22 Thread Aljoša Mohorović
On Thu, Apr 22, 2010 at 7:20 PM, Sven Arvidsson s...@whiz.se wrote:
 I guess I was mostly curious about any experiences with Mesa and WebGL
 in Chrome.

 I only gave it a quick try a few days ago, but didn't get any further
 than Couldn't enable WebGL - sorry or something similar.

i've tried to enable webgl in chrome/webkit and firefox dev builds on
intel and ati cards but got the same results.
since i'm running opengl apps on both cards i guess it is something
related with webgl implementation in browsers.
i've posted this because i don't want linux/xorg to have the worst
support for webgl but if both chrome and firefox dev builds are
failing (i've tested this on 2 different cards and did some research)
most system with xorg will have no support for webgl.

what i would actually like to see is somebody who works with
xorg/mesa3d on a daily basis to check if there is something wrong with
approach webkit/firefox is taking to implement webgl when running
under xorg.
i know it's a lot to ask since time is valuable but i do hope somebody
will find time to see if this can be corrected.
thanks

Aljosa Mohorovic
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Linux Plumbers Conference: Call for Tracks

2010-04-22 Thread Theodore Ts'o


Linux Plumbers Conference 2010
Call for Tracks

This year, Linux Plumbers Conference will take place in Cambridge, MA
on November 3-5, 2010.  Unlike more traditional conferences, the
Plumbers conference is not structured around presentations of
completed work, or problems and solutions confined to a single
subsystem or layer of the Linux ecosystem.  Rather the Plumbers
Conference encourages BOFs type meetings and brainstorming sessions
where technical experts from different areas and leaders in the Linux
and Open Source world can get together and discuss how to make
progress towards the solution of interdisciplinary multifaceted
problems spanning multiple components of the Linux system.  In some
sense, the Plumbers Conference is really more of a workshop.

The program committee for the Linux Plumbers Conference is looking for
proposals for the tracks that will be run during the Plumbers
Conference.  

To do that, we are looking for problem statements: things that could
be improved in Linux that cross multiple interfaces or other project
boundaries (if you can solve it yourself inside a single project,
please, don't let us stop you --- get hacking!).  We are looking for
problems that require collaboration and face-to-face communication
across multiple teams and open source projects.  These problems could
apply to anywhere Linux is used: Linux on the Desktop, Linux on Mobile
devices, Linux on servers, etc.

For example, if in order to get better performance, we need to get
better information about low-level devices from the kernel, and that
needs to be utilized by file system utilities, and the user needs to
be able to involved by exposing options at the UI level in control
panels and distribution installers --- the Plumbers conference might
be a great place to get everyone in the same room for half a day to
solve this particular problem.

Along with your problem statements or track ideas, please list the
projects which and/or key individuals who ideally should be present,
and who might be a good person or persons to run such a conference
track.

If you have any thoughts or contributions, you can either

   * discuss them on this Linux Weekly News page:
http://lwn.net/Articles/lpc2010-cfi/
   * add the proposed topic to the Topics wiki page:
http://wiki.linuxplumbersconf.org/2010:topics
   * send e-mail to: lpc-plann...@linuxplumbersconf.org

Many thanks for helping to make Linux an even better platform!

The 2010 LPC Committee

Note: The event will be co-located with the Linux Kernel Summit which
will be held earlier that week.

Please feel free to forward this announcements to any communities or
mailing lists where you think it would be appropriate.


___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Linux Plumbers Conference: Call for Tracks

2010-04-22 Thread Theodore Ts'o


Linux Plumbers Conference 2010
Call for Tracks

This year, Linux Plumbers Conference will take place in Cambridge, MA
on November 3-5, 2010.  Unlike more traditional conferences, the
Plumbers conference is not structured around presentations of
completed work, or problems and solutions confined to a single
subsystem or layer of the Linux ecosystem.  Rather the Plumbers
Conference encourages BOFs type meetings and brainstorming sessions
where technical experts from different areas and leaders in the Linux
and Open Source world can get together and discuss how to make
progress towards the solution of interdisciplinary multifaceted
problems spanning multiple components of the Linux system.  In some
sense, the Plumbers Conference is really more of a workshop.

The program committee for the Linux Plumbers Conference is looking for
proposals for the tracks that will be run during the Plumbers
Conference.  

To do that, we are looking for problem statements: things that could
be improved in Linux that cross multiple interfaces or other project
boundaries (if you can solve it yourself inside a single project,
please, don't let us stop you --- get hacking!).  We are looking for
problems that require collaboration and face-to-face communication
across multiple teams and open source projects.  These problems could
apply to anywhere Linux is used: Linux on the Desktop, Linux on Mobile
devices, Linux on servers, etc.

For example, if in order to get better performance, we need to get
better information about low-level devices from the kernel, and that
needs to be utilized by file system utilities, and the user needs to
be able to involved by exposing options at the UI level in control
panels and distribution installers --- the Plumbers conference might
be a great place to get everyone in the same room for half a day to
solve this particular problem.

Along with your problem statements or track ideas, please list the
projects which and/or key individuals who ideally should be present,
and who might be a good person or persons to run such a conference
track.

If you have any thoughts or contributions, you can either

   * discuss them on this Linux Weekly News page:
http://lwn.net/Articles/lpc2010-cfi/
   * add the proposed topic to the Topics wiki page:
http://wiki.linuxplumbersconf.org/2010:topics
   * send e-mail to: lpc-plann...@linuxplumbersconf.org

Many thanks for helping to make Linux an even better platform!

The 2010 LPC Committee

Note: The event will be co-located with the Linux Kernel Summit which
will be held earlier that week.

Please feel free to forward this announcements to any communities or
mailing lists where you think it would be appropriate.


___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: no screens found problem

2010-04-22 Thread Dan Nicholson
2010/4/20 Gökçe ÖZDEMİR gozde...@aselsan.com.tr:
 Hi,

 We are using Montavista PRO 5.0.24 on our Advantech's AIMB-766 model target 
 PC. Its chipset is Intel Q35. Graphics module is embedded on this chipset 
 (Intel GMA 3100)

 We would like to run X11 to have graphic support, but when we try startx 
 command it is giving the following error (whole log also attached)

 (EE) No devices detected.
 Fatal server error:
 no screens found

 Montavista PRO5.0.24 has X Window System Version 6.8.2 Release Date: 9 
 February 2005.
 And it seems since this is an pretty old version it does not have the support 
 for our graphic card module.

 We tried configurations for generic VESA and VGA by using xorgconfig command 
 but get the same error.

 What do you suggest? Can we add our graphic card support to current X11 
 version of our operating system, how?
 Or shall we update the x Window system of the Montavista, and how?

The intel q35 is much too new to work on xorg 6.8.2. Probably your
best bet is to get the vesa driver working. Read the output of the log
file to ensure that the Device section referencing Driver vesa is
being used. You can also try running the server with -logverbose n
where n is greater than 3 to get some more information.

Updating to a newer Xorg might be a challenge, but newer releases of
the intel driver do support that graphics hardware.

--
Dan
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

eddy gargadennec

2010-04-22 Thread Markus Strobl
http://stopagenzia.com/home.php

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: Correct git clone and build instructions?

2010-04-22 Thread Peter Hutterer
On Thu, Apr 22, 2010 at 12:14:03PM -0500, Pat Kane wrote:
 I'm having trouble finding accurate git clone and build instructions
 
 I have had good luck using Peter's instructions at:
http://lists.x.org/archives/xorg-devel/2009-August/001826.html
 
   # Quickstart for those that do not use jhbuild:
export PREFIX=/opt/xorg
export LD_LIBRARY_PATH=$PREFIX/lib
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
export PATH=$PREFIX/bin:$PATH
export ACLOCAL=aclocal -I $PREFIX/share/aclocal

i looked at the build script a while ago, the above aren't even necessary as
it fills them in automatically (provided they're unset in the environment).

so it really comes down to clone, echo and build.sh.

Cheers,
  Peter

git clone git://anongit.freedesktop.org/git/xorg/util/modular/ util/modular
echo util/macros  built.modules
./util/modular/build.sh --clone -p -f built.modules -r `tail -n 1 
 built.modu\
 les` $PREFIX
 
   # Re-run the last command until a build succeeds.
   # Cheers,
   #   Peter
 
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [bisected] Radeon KMS bug(?) after Linux kernel 2.6.32 causes a crash of X server 1.8.0+ on termination

2010-04-22 Thread Nix
[sorry for sending this to both the kernel and X lists, but after
bisection I still have no real idea where this bug might be. I'd open a
bugzilla ticket if I had any confidence that I'd open it in the right
place...]

On 21 Apr 2010, n...@esperi.org.uk uttered the following:

 On 18 Apr 2010, n...@esperi.org.uk said:

 So far, every time I've quit X 1.8.0 (1.8-stable tip of tree), it's
 coredumped and left my console unusable until I restart. (I'm using the

(The console is not merely unusable: the DVI signal turns off, and the
keyboard appears dead. The network is happy and I can shut down remotely,
but I can't do a chvt or start X again -- or rather I can try and nothing
visible happens.)

 tip of the xf86-video-ati tree, and KMS, both of which worked fine with
 1.7.5. Obviously I've recompiled all the drivers I'm usingt, or X
 wouldn't work at all...)

 The backtrace differs depending on whether auditing is enabled or not.

 With auditing on, we are hit with a segfault here:

 #0  0x7f7e06148985 in _xstat () from /lib/libc.so.6
 #1  0x7f7e061198d0 in __tzfile_read () from /lib/libc.so.6
 #2  0x7f7e06118c8a in tzset_internal () from /lib/libc.so.6
 #3  0x7f7e06118df9 in __tz_convert () from /lib/libc.so.6
 #4  0x7f7e06117439 in ctime () from /lib/libc.so.6
 #5  0x004533c8 in AuditPrefix ()
 #6  0x00453956 in VAuditF ()
 #7  0x00453add in AuditF ()
 #8  0x0043e5c6 in CloseDownClient ()
 #9  0x00443af8 in Dispatch ()
 #10 0x00420dc5 in main ()

 With it off, I see this instead:

 Program received signal SIGTERM, Terminated.
 0x0042904c in FreeClientResources ()
 (gdb) bt
 #0  0x0042904c in FreeClientResources ()
 #1  0x0043e4c2 in CloseDownClient ()
 #2  0x00443af8 in Dispatch ()
 #3  0x00420dc5 in main ()

 which might look like normal termination, except that
 FreeClientResources() of course does not contain an exit(), and the
 console is still unusable.

 I suspect a double-free() somewhere, and/or heap corruption.

 Nope. This bug only appears with KMS enabled; it does not appear in
 2.6.32.10 (when termination happens normally, with only

 [   71.267834] Unpin not necessary for 88033d66dc00 !

 in the kernel log) but does appear with current tip; seen with 2.6.34rc3
 and later (i.e. as soon as I upgraded the X server).

I've bisected the kernel half of this.

This is introduced by a commit predating 2.6.32's release but integrated
in the 2.6.33 merge window:

commit ed160143c6967e89aee05b0685e73c4103bb3e38
Author: Alex Deucher alexdeuc...@gmail.com
Date:   Tue Dec 1 14:12:14 2009 -0500

drm/radeon/kms: add tv standard property to tv connectors

Lets user select tv-standard.  The property was there,
just not hooked up.

Signed-off-by: Alex Deucher alexdeuc...@gmail.com
Signed-off-by: Dave Airlie airl...@redhat.com

so I guess perhaps this is not a kernel bug, but merely a bug in the
TV_STD parts of xf86-video-ati --- but I didn't upgrade that, merely
recompiled it; xf86-video-ati master + xorg 1.7.5 + kernel 2.6.34-tip
works fine, as does xf86-video-ati master + xorg 1.8.0 + kernel 2.6.32.
It's only the combination xf86-video-ati master + xorg 1.8.0 + kernel
2.6.32 that crashes on termination.

So maybe it *is* a kernel bug, or a latent bug in the driver causing
memory corruption inside the X server only when the kernel and X server
are new enough. (But this is starting to feel a bit unlikely to me.)


In a few days I'll bisect the X.org half of this, since 1.7.5 doesn't
crash on exit no matter which kernel I'm running. The last time I tried
to bisect the X server it was... painful. Let's see if it's any easier
nowadays...


My Xorg.log from 1.8.0 shows no sign of TV connectors, but the
dmesg log from 2.6.33 and later says I have them.


My dmesg log, in part (the DRI/KMS parts)

[1.146782] [drm] Initialized drm 1.1.0 20060810
[1.146931] [drm] radeon defaulting to kernel modesetting.
[1.147072] [drm] radeon kernel modesetting enabled.
[1.147243]   alloc irq_desc for 24 on node -1
[1.147244]   alloc kstat_irqs on node -1
[1.147251] radeon :02:00.0: PCI INT A - GSI 24 (level, low) - IRQ 24
[1.147397] radeon :02:00.0: setting latency timer to 64
[1.148242] [drm] initializing kernel modesetting (RV770 0x1002:0x9440).
[1.148510] [drm] register mmio base: 0xFBBE
[1.148653] [drm] register mmio size: 65536
[1.148870] ATOM BIOS: Wekiva
[1.149014] [drm] Clocks initialized !
[1.149152] [drm] Internal thermal controller with fan control
[1.149295] [drm] 5 Power State(s)
[1.149433] [drm] State 0 Default (default)
[1.149574] [drm]16 PCIE Lanes
[1.149711] [drm]3 Clock Mode(s)
[1.149848] [drm]0 engine/memory: 75/90
[1.149988] [drm]1 engine/memory: 75/90
[1.150128] [drm]2 engine/memory: 75/90
[1.150268] [drm] State 1