Re: can't kill -9 Xorg

2012-06-12 Thread Anton Shterenlikht
On Tue, Jun 12, 2012 at 12:07:06AM +0530, Subhro Sankha Kar wrote:
 Hello
 
 What happens if you run without a xorg.conf? Xorg has become pretty good at 
 guessing correct settings these days.
 

No change.
I removed /etc/X11/xorg.conf completely.

# X

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 10.0-CURRENT amd64 
Current Operating System: FreeBSD mech-aslap239.men.bris.ac.uk 10.0-CURRENT 
FreeBSD 10.0-CURRENT #0 r236740M: Sat Jun  9 22:35:49 BST 2012 
r...@mech-aslap239.men.bris.ac.uk:/usr/obj/usr/src/sys/BUZI amd64
Build Date: 11 June 2012  12:11:20PM
 
Current version of pixman: 0.24.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Tue Jun 12 09:10:17 2012
(==) Using default built-in configuration (30 lines)
(EE) Failed to load module vesa (module does not exist, 0)
(EE) Failed to load module fbdev (module does not exist, 0)
  XRANDR name: VGA-0
  Connector: VGA
  CRT1: INTERNAL_KLDSCP_DAC1
  DDC reg: 0x7e50
  XRANDR name: LVDS
  Connector: LVDS
  LCD1: INTERNAL_LVTM1
  DDC reg: 0x7e40
Dac detection success
finished output detect: 0
finished output detect: 1
finished all detect
Dac detection success
Output LCD1 disable success
Blank CRTC 0 success
Disable CRTC 0 success
Blank CRTC 1 success
Disable CRTC 1 success
Output CRT1 disable success
Output LCD1 disable success
Blank CRTC 0 success
Disable CRTC 0 success
Blank CRTC 1 success
Disable CRTC 1 success
^C^C^C

Can kill it with neither CTRL/C
nor kill -9:

# ps ax|grep X
1060  0  R+   0:38.95 X (Xorg)
1073  1  R+   0:00.01 grep X
# kill -9 1060
# ps ax|grep X
1060  0  RE+  0:45.71 X (Xorg)
1089  1  R+   0:00.00 grep X
# 


Anton


 Thanks
 --
 Subhro Sankha Kar
 System Administrator
 Working and Playing with FreeBSD since 2002
 
 On 11-Jun-2012, at 5:01 PM, Anton Shterenlikht wrote:
 
  My X is unusable since the recent png update.
  
  This is r236740M on HP Compaq 6715s amd64 laptop.
  
  I've no hal installed (if this matters).
  
  # pkg info -x xorg
  linux-f10-xorg-libs-7.4_1  Xorg libraries (Linux Fedora 10)
  xorg-cf-files-1.0.4X.org cf files for use with imake builds
  xorg-fonts-7.5.1   X.org fonts meta-port
  xorg-fonts-100dpi-7.5.1X.Org 100dpi bitmap fonts
  xorg-fonts-75dpi-7.5.1 X.Org 75dpi bitmap fonts
  xorg-fonts-cyrillic-7.5.1  X.Org Cyrillic bitmap fonts
  xorg-fonts-miscbitmaps-7.5.1   X.Org miscellaneous bitmap fonts
  xorg-fonts-truetype-7.5.1  X.Org TrueType fonts
  xorg-fonts-type1-7.5.1 X.Org Type1 fonts
  xorg-libraries-7.5.1   X.org libraries meta-port
  xorg-macros-1.16.1 X.Org development aclocal macros
  xorg-server-1.7.7_5,1  X.Org X server and related programs
  # 
  
  # pkg info -x xf86
  libXxf86dga-1.1.2  X DGA Extension
  libXxf86misc-1.0.3 X XF86-Misc Extension
  libXxf86vm-1.1.1   X Vidmode Extension
  xf86-input-keyboard-1.6.1  X.Org keyboard input driver
  xf86-input-mouse-1.7.1 X.Org mouse input driver
  xf86-video-ati-6.14.3_1X.Org ati display driver
  xf86bigfontproto-1.2.0 XFree86-Bigfont extension headers
  xf86dgaproto-2.1   XFree86-DGA extension headers
  xf86driproto-2.1.1 XFree86-DRI extension headers
  xf86miscproto-0.9.3XFree86-Misc extension headers
  xf86vidmodeproto-2.3.1 XFree86-VidModeExtension extension headers
  # 
  
  My xorg.conf.new:
  
  
  Section ServerLayout
  Identifier X.org Configured
  Screen  0  Screen0 0 0
  InputDeviceMouse0 CorePointer
  InputDeviceKeyboard0 CoreKeyboard
  Option  AllowEmptyInput Off
  EndSection
  
  Section Files
  ModulePath   /usr/local/lib/xorg/modules
  FontPath /usr/local/lib/X11/fonts/misc/
  FontPath /usr/local/lib/X11/fonts/TTF/
  FontPath /usr/local/lib/X11/fonts/OTF
  FontPath /usr/local/lib/X11/fonts/Type1/
  FontPath /usr/local/lib/X11/fonts/100dpi/
  FontPath /usr/local/lib/X11/fonts/75dpi/
  EndSection
  
  Section Module
  Load  extmod
  Load  record
  Load  dbe
  Load  glx
  Load  dri
  Load  dri2
  EndSection
  
  Section InputDevice
  Identifier  Keyboard0
  Driver  kbd
  EndSection
  
  Section InputDevice
  Identifier  Mouse0
  Driver  mouse
  Option  Protocol auto
  Option  Device /dev/sysmouse
  Option  ZAxisMapping 4 5 6 7
  EndSection
  
  Section Monitor
  #DisplaySize  330   210 # mm
  Identifier   Monitor0
  VendorName   LPL
  ModelNamed600
  EndSection
  
  Section Device
  

Re: can't kill -9 Xorg

2012-06-12 Thread Anton Shterenlikht
On Tue, Jun 12, 2012 at 09:13:06AM +0100, Anton Shterenlikht wrote:
 On Tue, Jun 12, 2012 at 12:07:06AM +0530, Subhro Sankha Kar wrote:
  Hello
  
  What happens if you run without a xorg.conf? Xorg has become pretty good at 
  guessing correct settings these days.
  
 
 No change.
 I removed /etc/X11/xorg.conf completely.

Anyway, I can understand my X setup is fucked, no problem.

What worries me more is the the fact that a process ignores
kill -9. Doesn't it indicate a problem with the OS?
I think potentially this is a security vulnerability.




 
 # X
 
 X.Org X Server 1.7.7
 Release Date: 2010-05-04
 X Protocol Version 11, Revision 0
 Build Operating System: FreeBSD 10.0-CURRENT amd64 
 Current Operating System: FreeBSD mech-aslap239.men.bris.ac.uk 10.0-CURRENT 
 FreeBSD 10.0-CURRENT #0 r236740M: Sat Jun  9 22:35:49 BST 2012 
 r...@mech-aslap239.men.bris.ac.uk:/usr/obj/usr/src/sys/BUZI amd64
 Build Date: 11 June 2012  12:11:20PM
  
 Current version of pixman: 0.24.2
 Before reporting problems, check http://wiki.x.org
 to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
 (++) from command line, (!!) notice, (II) informational,
 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: /var/log/Xorg.0.log, Time: Tue Jun 12 09:10:17 2012
 (==) Using default built-in configuration (30 lines)
 (EE) Failed to load module vesa (module does not exist, 0)
 (EE) Failed to load module fbdev (module does not exist, 0)
   XRANDR name: VGA-0
   Connector: VGA
   CRT1: INTERNAL_KLDSCP_DAC1
   DDC reg: 0x7e50
   XRANDR name: LVDS
   Connector: LVDS
   LCD1: INTERNAL_LVTM1
   DDC reg: 0x7e40
 Dac detection success
 finished output detect: 0
 finished output detect: 1
 finished all detect
 Dac detection success
 Output LCD1 disable success
 Blank CRTC 0 success
 Disable CRTC 0 success
 Blank CRTC 1 success
 Disable CRTC 1 success
 Output CRT1 disable success
 Output LCD1 disable success
 Blank CRTC 0 success
 Disable CRTC 0 success
 Blank CRTC 1 success
 Disable CRTC 1 success
 ^C^C^C
 
 Can kill it with neither CTRL/C
 nor kill -9:
 
 # ps ax|grep X
 1060  0  R+   0:38.95 X (Xorg)
 1073  1  R+   0:00.01 grep X
 # kill -9 1060
 # ps ax|grep X
 1060  0  RE+  0:45.71 X (Xorg)
 1089  1  R+   0:00.00 grep X
 # 
 
 
 Anton
 
 
  Thanks
  --
  Subhro Sankha Kar
  System Administrator
  Working and Playing with FreeBSD since 2002
  
  On 11-Jun-2012, at 5:01 PM, Anton Shterenlikht wrote:
  
   My X is unusable since the recent png update.
   
   This is r236740M on HP Compaq 6715s amd64 laptop.
   
   I've no hal installed (if this matters).
   
   # pkg info -x xorg
   linux-f10-xorg-libs-7.4_1  Xorg libraries (Linux Fedora 10)
   xorg-cf-files-1.0.4X.org cf files for use with imake builds
   xorg-fonts-7.5.1   X.org fonts meta-port
   xorg-fonts-100dpi-7.5.1X.Org 100dpi bitmap fonts
   xorg-fonts-75dpi-7.5.1 X.Org 75dpi bitmap fonts
   xorg-fonts-cyrillic-7.5.1  X.Org Cyrillic bitmap fonts
   xorg-fonts-miscbitmaps-7.5.1   X.Org miscellaneous bitmap fonts
   xorg-fonts-truetype-7.5.1  X.Org TrueType fonts
   xorg-fonts-type1-7.5.1 X.Org Type1 fonts
   xorg-libraries-7.5.1   X.org libraries meta-port
   xorg-macros-1.16.1 X.Org development aclocal macros
   xorg-server-1.7.7_5,1  X.Org X server and related programs
   # 
   
   # pkg info -x xf86
   libXxf86dga-1.1.2  X DGA Extension
   libXxf86misc-1.0.3 X XF86-Misc Extension
   libXxf86vm-1.1.1   X Vidmode Extension
   xf86-input-keyboard-1.6.1  X.Org keyboard input driver
   xf86-input-mouse-1.7.1 X.Org mouse input driver
   xf86-video-ati-6.14.3_1X.Org ati display driver
   xf86bigfontproto-1.2.0 XFree86-Bigfont extension headers
   xf86dgaproto-2.1   XFree86-DGA extension headers
   xf86driproto-2.1.1 XFree86-DRI extension headers
   xf86miscproto-0.9.3XFree86-Misc extension headers
   xf86vidmodeproto-2.3.1 XFree86-VidModeExtension extension headers
   # 
   
   My xorg.conf.new:
   
   
   Section ServerLayout
 Identifier X.org Configured
 Screen  0  Screen0 0 0
 InputDeviceMouse0 CorePointer
 InputDeviceKeyboard0 CoreKeyboard
 Option  AllowEmptyInput Off
   EndSection
   
   Section Files
 ModulePath   /usr/local/lib/xorg/modules
 FontPath /usr/local/lib/X11/fonts/misc/
 FontPath /usr/local/lib/X11/fonts/TTF/
 FontPath /usr/local/lib/X11/fonts/OTF
 FontPath /usr/local/lib/X11/fonts/Type1/
 FontPath /usr/local/lib/X11/fonts/100dpi/
 FontPath /usr/local/lib/X11/fonts/75dpi/
   EndSection
   
   Section Module
 Load  extmod
 Load  record
 Load  dbe
 Load  glx
 Load  dri
 Load  dri2
   EndSection
   
   Section InputDevice
 Identifier  Keyboard0
 

Re: can't kill -9 Xorg

2012-06-12 Thread Subhro Sankha Kar
On 12-Jun-2012, at 1:54 PM, Anton Shterenlikht wrote:

 On Tue, Jun 12, 2012 at 09:13:06AM +0100, Anton Shterenlikht wrote:
 On Tue, Jun 12, 2012 at 12:07:06AM +0530, Subhro Sankha Kar wrote:
 Hello
 
 What happens if you run without a xorg.conf? Xorg has become pretty good at 
 guessing correct settings these days.
 
 
 No change.
 I removed /etc/X11/xorg.conf completely.
 
 Anyway, I can understand my X setup is fucked, no problem.

Okay. That is kind of odd. But I am assuming you figured out what the precise 
problem is.

 
 What worries me more is the the fact that a process ignores
 kill -9. Doesn't it indicate a problem with the OS?
 I think potentially this is a security vulnerability.

No not really. There are instances when a process can ignore SIGKILL or kill -9 
as colloquially stated. For example, when a process in in the state of an 
uninterruptible sleep, marked as D in the top output, it will ignore all 
signals. Similarly for processes which are zombies, showing up as Z in the top 
output, will ignore the SIGKILL as well.

Ideally, if you think you are hitting on a case where the process is not an 
uninterruptible state and still refuses to listen to SIGKILL, you should attach 
a strace or dtrace session to the process and see what is going on.

Thanks
Subhro
--
Subhro Sankha Kar
System Administrator
Working and Playing with FreeBSD since 2002

 
 
 # X
 
 X.Org X Server 1.7.7
 Release Date: 2010-05-04
 X Protocol Version 11, Revision 0
 Build Operating System: FreeBSD 10.0-CURRENT amd64 
 Current Operating System: FreeBSD mech-aslap239.men.bris.ac.uk 10.0-CURRENT 
 FreeBSD 10.0-CURRENT #0 r236740M: Sat Jun  9 22:35:49 BST 2012 
 r...@mech-aslap239.men.bris.ac.uk:/usr/obj/usr/src/sys/BUZI amd64
 Build Date: 11 June 2012  12:11:20PM
 
 Current version of pixman: 0.24.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: /var/log/Xorg.0.log, Time: Tue Jun 12 09:10:17 2012
 (==) Using default built-in configuration (30 lines)
 (EE) Failed to load module vesa (module does not exist, 0)
 (EE) Failed to load module fbdev (module does not exist, 0)
  XRANDR name: VGA-0
  Connector: VGA
  CRT1: INTERNAL_KLDSCP_DAC1
  DDC reg: 0x7e50
  XRANDR name: LVDS
  Connector: LVDS
  LCD1: INTERNAL_LVTM1
  DDC reg: 0x7e40
 Dac detection success
 finished output detect: 0
 finished output detect: 1
 finished all detect
 Dac detection success
 Output LCD1 disable success
 Blank CRTC 0 success
 Disable CRTC 0 success
 Blank CRTC 1 success
 Disable CRTC 1 success
 Output CRT1 disable success
 Output LCD1 disable success
 Blank CRTC 0 success
 Disable CRTC 0 success
 Blank CRTC 1 success
 Disable CRTC 1 success
 ^C^C^C
 
 Can kill it with neither CTRL/C
 nor kill -9:
 
 # ps ax|grep X
 1060  0  R+   0:38.95 X (Xorg)
 1073  1  R+   0:00.01 grep X
 # kill -9 1060
 # ps ax|grep X
 1060  0  RE+  0:45.71 X (Xorg)
 1089  1  R+   0:00.00 grep X
 # 
 
 
 Anton
 
 
 Thanks
 --
 Subhro Sankha Kar
 System Administrator
 Working and Playing with FreeBSD since 2002
 
 On 11-Jun-2012, at 5:01 PM, Anton Shterenlikht wrote:
 
 My X is unusable since the recent png update.
 
 This is r236740M on HP Compaq 6715s amd64 laptop.
 
 I've no hal installed (if this matters).
 
 # pkg info -x xorg
 linux-f10-xorg-libs-7.4_1  Xorg libraries (Linux Fedora 10)
 xorg-cf-files-1.0.4X.org cf files for use with imake builds
 xorg-fonts-7.5.1   X.org fonts meta-port
 xorg-fonts-100dpi-7.5.1X.Org 100dpi bitmap fonts
 xorg-fonts-75dpi-7.5.1 X.Org 75dpi bitmap fonts
 xorg-fonts-cyrillic-7.5.1  X.Org Cyrillic bitmap fonts
 xorg-fonts-miscbitmaps-7.5.1   X.Org miscellaneous bitmap fonts
 xorg-fonts-truetype-7.5.1  X.Org TrueType fonts
 xorg-fonts-type1-7.5.1 X.Org Type1 fonts
 xorg-libraries-7.5.1   X.org libraries meta-port
 xorg-macros-1.16.1 X.Org development aclocal macros
 xorg-server-1.7.7_5,1  X.Org X server and related programs
 # 
 
 # pkg info -x xf86
 libXxf86dga-1.1.2  X DGA Extension
 libXxf86misc-1.0.3 X XF86-Misc Extension
 libXxf86vm-1.1.1   X Vidmode Extension
 xf86-input-keyboard-1.6.1  X.Org keyboard input driver
 xf86-input-mouse-1.7.1 X.Org mouse input driver
 xf86-video-ati-6.14.3_1X.Org ati display driver
 xf86bigfontproto-1.2.0 XFree86-Bigfont extension headers
 xf86dgaproto-2.1   XFree86-DGA extension headers
 xf86driproto-2.1.1 XFree86-DRI extension headers
 xf86miscproto-0.9.3XFree86-Misc extension headers
 xf86vidmodeproto-2.3.1 XFree86-VidModeExtension extension headers
 # 
 
 My xorg.conf.new:
 
 
 Section ServerLayout
Identifier X.org 

Re: can't kill -9 Xorg

2012-06-12 Thread Hans Ottevanger

On 06/12/12 10:24, Anton Shterenlikht wrote:

On Tue, Jun 12, 2012 at 09:13:06AM +0100, Anton Shterenlikht wrote:

On Tue, Jun 12, 2012 at 12:07:06AM +0530, Subhro Sankha Kar wrote:

Hello

What happens if you run without a xorg.conf? Xorg has become pretty good at 
guessing correct settings these days.



No change.
I removed /etc/X11/xorg.conf completely.


Anyway, I can understand my X setup is fucked, no problem.

What worries me more is the the fact that a process ignores
kill -9. Doesn't it indicate a problem with the OS?
I think potentially this is a security vulnerability.



I had a similar issue with my desktop system a while ago, also using a 
Radeon adaptor. In my case the system ended up with a frozen image or 
black screen and was only accessible remotely. It appeared that the X 
server took 100% of a CPU and was looping in the driver in kernel space 
and thus unkillable. If a remember well a PCIE register seemed to be 
inaccessible after returning from the screen saver and the driver kept 
looping on this.


I finally worked around the problem by removing the (barely documented) 
option DynamicPM from my xorg.conf. This could have consequences for 
power saving on a laptop however, but it could be worth trying.


Kind regards,

Hans







# X

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 10.0-CURRENT amd64
Current Operating System: FreeBSD mech-aslap239.men.bris.ac.uk 10.0-CURRENT 
FreeBSD 10.0-CURRENT #0 r236740M: Sat Jun  9 22:35:49 BST 2012 
r...@mech-aslap239.men.bris.ac.uk:/usr/obj/usr/src/sys/BUZI amd64
Build Date: 11 June 2012  12:11:20PM

Current version of pixman: 0.24.2
 Before reporting problems, check http://wiki.x.org
 to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
 (++) from command line, (!!) notice, (II) informational,
 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Tue Jun 12 09:10:17 2012
(==) Using default built-in configuration (30 lines)
(EE) Failed to load module vesa (module does not exist, 0)
(EE) Failed to load module fbdev (module does not exist, 0)
   XRANDR name: VGA-0
   Connector: VGA
   CRT1: INTERNAL_KLDSCP_DAC1
   DDC reg: 0x7e50
   XRANDR name: LVDS
   Connector: LVDS
   LCD1: INTERNAL_LVTM1
   DDC reg: 0x7e40
Dac detection success
finished output detect: 0
finished output detect: 1
finished all detect
Dac detection success
Output LCD1 disable success
Blank CRTC 0 success
Disable CRTC 0 success
Blank CRTC 1 success
Disable CRTC 1 success
Output CRT1 disable success
Output LCD1 disable success
Blank CRTC 0 success
Disable CRTC 0 success
Blank CRTC 1 success
Disable CRTC 1 success
^C^C^C

Can kill it with neither CTRL/C
nor kill -9:

# ps ax|grep X
1060  0  R+   0:38.95 X (Xorg)
1073  1  R+   0:00.01 grep X
# kill -9 1060
# ps ax|grep X
1060  0  RE+  0:45.71 X (Xorg)
1089  1  R+   0:00.00 grep X
#


Anton



Thanks
--
Subhro Sankha Kar
System Administrator
Working and Playing with FreeBSD since 2002

On 11-Jun-2012, at 5:01 PM, Anton Shterenlikht wrote:


My X is unusable since the recent png update.

This is r236740M on HP Compaq 6715s amd64 laptop.

I've no hal installed (if this matters).

# pkg info -x xorg
linux-f10-xorg-libs-7.4_1  Xorg libraries (Linux Fedora 10)
xorg-cf-files-1.0.4X.org cf files for use with imake builds
xorg-fonts-7.5.1   X.org fonts meta-port
xorg-fonts-100dpi-7.5.1X.Org 100dpi bitmap fonts
xorg-fonts-75dpi-7.5.1 X.Org 75dpi bitmap fonts
xorg-fonts-cyrillic-7.5.1  X.Org Cyrillic bitmap fonts
xorg-fonts-miscbitmaps-7.5.1   X.Org miscellaneous bitmap fonts
xorg-fonts-truetype-7.5.1  X.Org TrueType fonts
xorg-fonts-type1-7.5.1 X.Org Type1 fonts
xorg-libraries-7.5.1   X.org libraries meta-port
xorg-macros-1.16.1 X.Org development aclocal macros
xorg-server-1.7.7_5,1  X.Org X server and related programs
#

# pkg info -x xf86
libXxf86dga-1.1.2  X DGA Extension
libXxf86misc-1.0.3 X XF86-Misc Extension
libXxf86vm-1.1.1   X Vidmode Extension
xf86-input-keyboard-1.6.1  X.Org keyboard input driver
xf86-input-mouse-1.7.1 X.Org mouse input driver
xf86-video-ati-6.14.3_1X.Org ati display driver
xf86bigfontproto-1.2.0 XFree86-Bigfont extension headers
xf86dgaproto-2.1   XFree86-DGA extension headers
xf86driproto-2.1.1 XFree86-DRI extension headers
xf86miscproto-0.9.3XFree86-Misc extension headers
xf86vidmodeproto-2.3.1 XFree86-VidModeExtension extension headers
#

My xorg.conf.new:


Section ServerLayout
Identifier X.org Configured
Screen  0  Screen0 0 0
InputDeviceMouse0 CorePointer
InputDeviceKeyboard0 CoreKeyboard
Option  AllowEmptyInput Off
EndSection

Section Files
  

Re: can't kill -9 Xorg

2012-06-12 Thread Anton Shterenlikht
On Tue, Jun 12, 2012 at 02:13:17PM +0200, Hans Ottevanger wrote:
 On 06/12/12 10:24, Anton Shterenlikht wrote:
 On Tue, Jun 12, 2012 at 09:13:06AM +0100, Anton Shterenlikht wrote:
 On Tue, Jun 12, 2012 at 12:07:06AM +0530, Subhro Sankha Kar wrote:
 Hello
 
 What happens if you run without a xorg.conf? Xorg has become pretty good 
 at guessing correct settings these days.
 
 
 No change.
 I removed /etc/X11/xorg.conf completely.
 
 Anyway, I can understand my X setup is fucked, no problem.
 
 What worries me more is the the fact that a process ignores
 kill -9. Doesn't it indicate a problem with the OS?
 I think potentially this is a security vulnerability.
 
 
 I had a similar issue with my desktop system a while ago, also using a 
 Radeon adaptor. In my case the system ended up with a frozen image or 
 black screen and was only accessible remotely. It appeared that the X 
 server took 100% of a CPU and was looping in the driver in kernel space 
 and thus unkillable. If a remember well a PCIE register seemed to be 
 inaccessible after returning from the screen saver and the driver kept 
 looping on this.
 
 I finally worked around the problem by removing the (barely documented) 
 option DynamicPM from my xorg.conf. This could have consequences for 
 power saving on a laptop however, but it could be worth trying.
 
 Kind regards,
 
 Hans

Thank you for the explanation.
I my case

 Option DRI off

helped. With DRI off I get X working (nearly) as expected.

However, I'm now thinking that DRI not
working is perhaps a bug? I'm using
 xf86-video-ati-6.14.3_1
with

Driver  radeon
VendorName  Advanced Micro Devices [AMD] nee ATI
BoardName   RS690M [Radeon X1200 Series]

Maybe I should ask in x11@?

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't kill -9 Xorg

2012-06-12 Thread Hans Ottevanger

On 06/12/12 16:55, Anton Shterenlikht wrote:

On Tue, Jun 12, 2012 at 02:13:17PM +0200, Hans Ottevanger wrote:

On 06/12/12 10:24, Anton Shterenlikht wrote:

On Tue, Jun 12, 2012 at 09:13:06AM +0100, Anton Shterenlikht wrote:

On Tue, Jun 12, 2012 at 12:07:06AM +0530, Subhro Sankha Kar wrote:

Hello

What happens if you run without a xorg.conf? Xorg has become pretty good
at guessing correct settings these days.



No change.
I removed /etc/X11/xorg.conf completely.


Anyway, I can understand my X setup is fucked, no problem.

What worries me more is the the fact that a process ignores
kill -9. Doesn't it indicate a problem with the OS?
I think potentially this is a security vulnerability.



I had a similar issue with my desktop system a while ago, also using a
Radeon adaptor. In my case the system ended up with a frozen image or
black screen and was only accessible remotely. It appeared that the X
server took 100% of a CPU and was looping in the driver in kernel space
and thus unkillable. If a remember well a PCIE register seemed to be
inaccessible after returning from the screen saver and the driver kept
looping on this.

I finally worked around the problem by removing the (barely documented)
option DynamicPM from my xorg.conf. This could have consequences for
power saving on a laptop however, but it could be worth trying.

Kind regards,

Hans


Thank you for the explanation.
I my case

  Option DRI off

helped. With DRI off I get X working (nearly) as expected.

However, I'm now thinking that DRI not
working is perhaps a bug? I'm using
  xf86-video-ati-6.14.3_1
with

Driver  radeon
VendorName  Advanced Micro Devices [AMD] nee ATI
BoardName   RS690M [Radeon X1200 Series]


Here I have:

Driver  radeon
VendorName  ATI Technologies Inc
BoardName   RV370 5B60 [Radeon X300 (PCIE)]

which actually is from an xorg.conf initially generated with Xorg 
-configure quite a while ago and only slightly edited afterwards. If I 
generate a new xorg.conf in this way it is virtually identical.


As I understand from your original post you only got this problem after 
the png upgrade. Did Xorg work correctly before that time and did you 
have the same version of Xorg that you have now? The 
xorg-server-1.7.7_5,1 itself does not even depend on png, so you should 
be able to run Xorg without hanging kernel driver.


You could do a forced rebuild of all X packages, also those that do 
depend on png.




Maybe I should ask in x11@?



Not a bad idea at all, if you fully specify your problem (as you did in 
your original posting) and keep in mind that response times can be 
somewhat longer there.


Kind regards,

Hans

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't kill -9 Xorg

2012-06-11 Thread Subhro Sankha Kar
Hello

What happens if you run without a xorg.conf? Xorg has become pretty good at 
guessing correct settings these days.

Thanks
--
Subhro Sankha Kar
System Administrator
Working and Playing with FreeBSD since 2002

On 11-Jun-2012, at 5:01 PM, Anton Shterenlikht wrote:

 My X is unusable since the recent png update.
 
 This is r236740M on HP Compaq 6715s amd64 laptop.
 
 I've no hal installed (if this matters).
 
 # pkg info -x xorg
 linux-f10-xorg-libs-7.4_1  Xorg libraries (Linux Fedora 10)
 xorg-cf-files-1.0.4X.org cf files for use with imake builds
 xorg-fonts-7.5.1   X.org fonts meta-port
 xorg-fonts-100dpi-7.5.1X.Org 100dpi bitmap fonts
 xorg-fonts-75dpi-7.5.1 X.Org 75dpi bitmap fonts
 xorg-fonts-cyrillic-7.5.1  X.Org Cyrillic bitmap fonts
 xorg-fonts-miscbitmaps-7.5.1   X.Org miscellaneous bitmap fonts
 xorg-fonts-truetype-7.5.1  X.Org TrueType fonts
 xorg-fonts-type1-7.5.1 X.Org Type1 fonts
 xorg-libraries-7.5.1   X.org libraries meta-port
 xorg-macros-1.16.1 X.Org development aclocal macros
 xorg-server-1.7.7_5,1  X.Org X server and related programs
 # 
 
 # pkg info -x xf86
 libXxf86dga-1.1.2  X DGA Extension
 libXxf86misc-1.0.3 X XF86-Misc Extension
 libXxf86vm-1.1.1   X Vidmode Extension
 xf86-input-keyboard-1.6.1  X.Org keyboard input driver
 xf86-input-mouse-1.7.1 X.Org mouse input driver
 xf86-video-ati-6.14.3_1X.Org ati display driver
 xf86bigfontproto-1.2.0 XFree86-Bigfont extension headers
 xf86dgaproto-2.1   XFree86-DGA extension headers
 xf86driproto-2.1.1 XFree86-DRI extension headers
 xf86miscproto-0.9.3XFree86-Misc extension headers
 xf86vidmodeproto-2.3.1 XFree86-VidModeExtension extension headers
 # 
 
 My xorg.conf.new:
 
 
 Section ServerLayout
   Identifier X.org Configured
   Screen  0  Screen0 0 0
   InputDeviceMouse0 CorePointer
   InputDeviceKeyboard0 CoreKeyboard
   Option  AllowEmptyInput Off
 EndSection
 
 Section Files
   ModulePath   /usr/local/lib/xorg/modules
   FontPath /usr/local/lib/X11/fonts/misc/
   FontPath /usr/local/lib/X11/fonts/TTF/
   FontPath /usr/local/lib/X11/fonts/OTF
   FontPath /usr/local/lib/X11/fonts/Type1/
   FontPath /usr/local/lib/X11/fonts/100dpi/
   FontPath /usr/local/lib/X11/fonts/75dpi/
 EndSection
 
 Section Module
   Load  extmod
   Load  record
   Load  dbe
   Load  glx
   Load  dri
   Load  dri2
 EndSection
 
 Section InputDevice
   Identifier  Keyboard0
   Driver  kbd
 EndSection
 
 Section InputDevice
   Identifier  Mouse0
   Driver  mouse
   Option  Protocol auto
   Option  Device /dev/sysmouse
   Option  ZAxisMapping 4 5 6 7
 EndSection
 
 Section Monitor
   #DisplaySize  330   210 # mm
   Identifier   Monitor0
   VendorName   LPL
   ModelNamed600
 EndSection
 
 Section Device
   Identifier  Card0
   Driver  radeon
   VendorName  Advanced Micro Devices [AMD] nee ATI
   BoardName   RS690M [Radeon X1200 Series]
   BusID   PCI:1:5:0
   Option int10 on
   Option BusType PCIE
Option RenderAccel on
Option AccelMethod xaa
Option DynamicPM on
Option DRI on
 EndSection
 
 Section Screen
   Identifier Screen0
   Device Card0
   MonitorMonitor0
   SubSection Display
   Viewport   0 0
   Depth 1
   EndSubSection
   SubSection Display
   Viewport   0 0
   Depth 4
   EndSubSection
   SubSection Display
   Viewport   0 0
   Depth 8
   EndSubSection
   SubSection Display
   Viewport   0 0
   Depth 15
   EndSubSection
   SubSection Display
   Viewport   0 0
   Depth 16
   EndSubSection
   SubSection Display
   Viewport   0 0
   Depth 24
   EndSubSection
 EndSection
 
 
 The Xorg.0.log:
 
 
 
 X.Org X Server 1.7.7
 Release Date: 2010-05-04
 X Protocol Version 11, Revision 0
 Build Operating System: FreeBSD 10.0-CURRENT amd64 
 Current Operating System: FreeBSD mech-aslap239.men.bris.ac.uk 10.0-CURRENT 
 FreeBSD 10.0-CURRENT #0 r236740M: Sat Jun  9 22:35:49 BST 2012 
 r...@mech-aslap239.men.bris.ac.uk:/usr/obj/usr/src/sys/BUZI amd64
 Build Date: 11 June 2012  12:11:20PM
 
 Current version of pixman: 0.24.2
   Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: /var/log/Xorg.0.log, Time: Mon Jun 11