Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X crashes randomly with segmentation fault (signal 11)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Gh0str1d3r
Guru
Guru


Joined: 27 May 2008
Posts: 411

PostPosted: Fri Dec 11, 2009 4:23 pm    Post subject: X crashes randomly with segmentation fault (signal 11) Reply with quote

Hi,

since about 1 month now I experience random crashes of the X server. The screen suddenly freezes, then I am again at the login prompt of KDE 4. Xorg.0.log.old says:


Code:
Backtrace:
0: /usr/bin/X(xorg_backtrace+0x26) [0x4eb906]
1: /usr/bin/X(xf86SigHandler+0x39) [0x485829]
2: /lib/libc.so.6 [0x7f35dc94b290]
3: /usr/lib64/xorg/modules/drivers//nvidia_drv.so(_nv001646X+0x26) [0x7f35da3a5856]
4: /usr/lib64/xorg/modules/drivers//nvidia_drv.so(_nv001415X+0x64) [0x7f35da3b9e04]
5: /usr/lib64/xorg/modules/drivers//nvidia_drv.so [0x7f35da647904]
6: /usr/lib64/xorg/modules/drivers//nvidia_drv.so [0x7f35da65d74d]
7: /usr/lib64/xorg/modules/drivers//nvidia_drv.so [0x7f35da66091e]
8: /usr/lib64/xorg/modules/drivers//nvidia_drv.so [0x7f35da660e9c]
9: /usr/lib64/xorg/modules/drivers//nvidia_drv.so [0x7f35da66143f]
10: /usr/lib64/xorg/modules/drivers//nvidia_drv.so [0x7f35da624358]
11: /usr/bin/X [0x52eab8]
12: /usr/bin/X [0x4fafde]
13: /usr/bin/X(BlockHandler+0x4b) [0x44ee7b]
14: /usr/bin/X(WaitForSomething+0x161) [0x4e9461]
15: /usr/bin/X(Dispatch+0xa0) [0x44b250]
16: /usr/bin/X(main+0x3aa) [0x43155a]
17: /lib/libc.so.6(__libc_start_main+0xe6) [0x7f35dc9375c6]
18: /usr/bin/X [0x4309f9]

Fatal server error:
Caught signal 11.  Server aborting


I have no idea how to reproduce the crash. Sometimes the system is stable for more than a week, then it crashes 2 or 3 times in one hour. The only similar thing I could observe is that since the same time, emerge sometimes also gives segfaults (just when calculating the dependencies). The last update of the Xorg server did not help.

I am using the stable versions of Xorg and nvidia-drivers (that is xorg-server-1.6.5-r1 and nvidia-drivers-185.18.36). Kernel is 2.6.30-r5.

Anyone else with this problem or anyone knowing a solution? It would be great since I do not have the chance to save anything before the crash...
Back to top
View user's profile Send private message
causality
Apprentice
Apprentice


Joined: 03 Jun 2006
Posts: 236

PostPosted: Fri Dec 11, 2009 7:34 pm    Post subject: Reply with quote

I have no idea if it's related or not, but there were a couple of specific versions of the nvidia-drivers that caused some very strange behavior on my system. They would cause programs to randomly crash with a segfault. It was very strange because this included programs that have nothing to do with graphics, like what you mention with emerge. It turned out that this was either an issue with the driver's kernel module, or an interaction between that module and the version of kernel I was using.

As I understand it, this is possible because the kernel module runs as kernel code, so standard memory protection etc. does not apply to it. A flaw in kernel code can affect many other seemingly unrelated things. I believe that's what I experienced that time. I run a Hardened system and what I could not tell you is whether the same thing would have happened for a regular Gentoo installation, though I suspect it would.

In my case, I fixed it by updating my nVidia binary driver to a newer version that didn't have this issue. If possible, I'd recommend using the latest driver version that supports your hardware. If your hardware is fairly new, then that should be the latest driver available. Otherwise, you can look up which version to use on the nvidia.com Web site.
Back to top
View user's profile Send private message
Gh0str1d3r
Guru
Guru


Joined: 27 May 2008
Posts: 411

PostPosted: Fri Dec 11, 2009 9:58 pm    Post subject: Reply with quote

thank you causality for the comment. I have now the newest version available in portage installed, I hope it will help.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Sat Dec 12, 2009 3:17 am    Post subject: Reply with quote

After I rebooted a few minutes ago, X constantly crashes with a seg fault. Here is the content of my Xorg.log

Code:

X.Org X Server 1.7.3
Release Date: 2009-12-3
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32-gentoo x86_64
Current Operating System: Linux xavier-pc 2.6.32-gentoo #5 SMP Fri Dec 11 20:04:55 EST 2009 x86_64
Kernel command line: root=/dev/sda1
Build Date: 11 December 2009  08:55:41PM
 
Current version of pixman: 0.17.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: Fri Dec 11 22:13:16 2009
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/TTF/" does not exist.
   Entry deleted from font path.
(WW) The directory "/usr/share/fonts/OTF" does not exist.
   Entry deleted from font path.
(WW) The directory "/usr/share/fonts/Type1/" does not exist.
   Entry deleted from font path.
(WW) The directory "/usr/share/fonts/100dpi/" does not exist.
   Entry deleted from font path.
(WW) The directory "/usr/share/fonts/75dpi/" does not exist.
   Entry deleted from font path.
(WW) The directory "/usr/share/fonts/TTF/" does not exist.
   Entry deleted from font path.
(WW) The directory "/usr/share/fonts/OTF" does not exist.
   Entry deleted from font path.
(WW) The directory "/usr/share/fonts/Type1/" does not exist.
   Entry deleted from font path.
(WW) The directory "/usr/share/fonts/100dpi/" does not exist.
   Entry deleted from font path.
(WW) The directory "/usr/share/fonts/75dpi/" does not exist.
   Entry deleted from font path.
(**) FontPath set to:
   /usr/share/fonts/misc/,
   /usr/share/fonts/misc/
(**) ModulePath set to "/usr/lib64/xorg/modules"
(II) Cannot locate a core pointer device.
(II) Cannot locate a core keyboard device.
(II) The server relies on HAL to provide the list of input devices.
   If no devices become available, reconfigure HAL or disable AllowEmptyInput.
(II) Loader magic: 0x7c1ee0
(II) Module ABI versions:
   X.Org ANSI C Emulation: 0.4
   X.Org Video Driver: 6.0
   X.Org XInput driver : 7.0
   X.Org Server Extension : 2.0
(++) using VT number 7

(--) PCI:*(0:1:0:0) 10de:0611:3842:c801 nVidia Corporation G92 [GeForce 8800 GT] rev 162, Mem @ 0xfd000000/16777216, 0xd0000000/268435456, 0xfa000000/33554432, I/O @ 0x0000bc00/128, BIOS @ 0x????????/131072
(II) Open ACPI successful (/var/run/acpid.socket)
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "record" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded by default.
(II) "dri2" will be loaded by default.
(II) LoadModule: "glx"
(II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
   compiled for 4.0.2, module version = 1.0.0
   Module class: X.Org Server Extension
(II) NVIDIA GLX Module  190.42  Tue Oct 20 21:19:30 PDT 2009
(II) Loading extension GLX
(II) LoadModule: "dbe"
(II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
   compiled for 1.7.3, module version = 1.0.0
   Module class: X.Org Server Extension
   ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "extmod"
(II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
   compiled for 1.7.3, module version = 1.0.0
   Module class: X.Org Server Extension
   ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "record"
(II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
   compiled for 1.7.3, module version = 1.13.0
   Module class: X.Org Server Extension
   ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "dri"
(WW) Warning, couldn't open module dri
(II) UnloadModule: "dri"
(EE) Failed to load module "dri" (module does not exist, 0)
(II) LoadModule: "dri2"
(WW) Warning, couldn't open module dri2
(II) UnloadModule: "dri2"
(EE) Failed to load module "dri2" (module does not exist, 0)
(II) LoadModule: "nvidia"
(II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
   compiled for 4.0.2, module version = 1.0.0
   Module class: X.Org Video Driver
(II) NVIDIA dlloader X Driver  190.42  Tue Oct 20 20:42:04 PDT 2009
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 01@00:00:0
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib64/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
   compiled for 1.7.3, module version = 1.0.0
   ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "wfb"
(II) LoadModule: "wfb"
(II) Loading /usr/lib64/xorg/modules/libwfb.so
(II) Module wfb: vendor="X.Org Foundation"
   compiled for 1.7.3, module version = 1.0.0
   ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) Dec 11 22:13:16 NVIDIA(0): Enabling RENDER acceleration
(II) Dec 11 22:13:16 NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) Dec 11 22:13:16 NVIDIA(0):     enabled.
(II) Dec 11 22:13:17 NVIDIA(0): NVIDIA GPU GeForce 8800 GT (G92) at PCI:1:0:0 (GPU-0)
(--) Dec 11 22:13:17 NVIDIA(0): Memory: 524288 kBytes
(--) Dec 11 22:13:17 NVIDIA(0): VideoBIOS: 62.92.24.00.01
(II) Dec 11 22:13:17 NVIDIA(0): Detected PCI Express Link width: 16X
(--) Dec 11 22:13:17 NVIDIA(0): Interlaced video modes are supported on this GPU
(--) Dec 11 22:13:17 NVIDIA(0): Connected display device(s) on GeForce 8800 GT at PCI:1:0:0:
(--) Dec 11 22:13:17 NVIDIA(0):     Samsung SyncMaster (DFP-0)
(--) Dec 11 22:13:17 NVIDIA(0): Samsung SyncMaster (DFP-0): 330.0 MHz maximum pixel clock
(--) Dec 11 22:13:17 NVIDIA(0): Samsung SyncMaster (DFP-0): Internal Dual Link TMDS
(II) Dec 11 22:13:17 NVIDIA(0): Assigned Display Device: DFP-0
(==) Dec 11 22:13:17 NVIDIA(0):
(==) Dec 11 22:13:17 NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
(==) Dec 11 22:13:17 NVIDIA(0):     will be used as the requested mode.
(==) Dec 11 22:13:17 NVIDIA(0):
(II) Dec 11 22:13:17 NVIDIA(0): Validated modes:
(II) Dec 11 22:13:17 NVIDIA(0):     "nvidia-auto-select"
(II) Dec 11 22:13:17 NVIDIA(0): Virtual screen size determined to be 1680 x 1050
(--) Dec 11 22:13:17 NVIDIA(0): DPI set to (90, 88); computed from "UseEdidDpi" X config
(--) Dec 11 22:13:17 NVIDIA(0):     option
(==) Dec 11 22:13:17 NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
(--) Depth 24 pixmap format is 32 bpp
(II) Dec 11 22:13:17 NVIDIA(0): Initialized GPU GART.
(II) Dec 11 22:13:17 NVIDIA(0): Setting mode "nvidia-auto-select"
(II) Loading extension NV-GLX
(II) Dec 11 22:13:17 NVIDIA(0): Initialized OpenGL Acceleration
(==) NVIDIA(0): Disabling shared memory pixmaps
(II) Dec 11 22:13:17 NVIDIA(0): Initialized X Rendering Acceleration
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(==) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(II) Loading extension XINERAMA
(==) RandR enabled
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing extension GLX
record: RECORD extension enabled at configure time.
record: This extension is known to be broken, disabling extension now..
record: http://bugs.freedesktop.org/show_bug.cgi?id=20500

Backtrace:
0: /usr/bin/X (xorg_backtrace+0x28) [0x464228]
1: /usr/bin/X (0x400000+0x5b5d9) [0x45b5d9]
2: /lib/libpthread.so.0 (0x7fb47c415000+0xf010) [0x7fb47c424010]
3: /usr/lib/libXfont.so.1 (0x7fb47d593000+0x2f956) [0x7fb47d5c2956]
4: /usr/lib/libXfont.so.1 (FontParseXLFDName+0x1f0) [0x7fb47d5c31d0]
5: /usr/lib/libXfont.so.1 (FontFileAddFontFile+0x394) [0x7fb47d5a0184]
6: /usr/lib/libXfont.so.1 (FontFileReadDirectory+0x2a7) [0x7fb47d59e877]
7: /usr/lib/libXfont.so.1 (FontFileInitFPE+0x1f) [0x7fb47d5a182f]
8: /usr/bin/X (0x400000+0x4e119) [0x44e119]
9: /usr/bin/X (SetDefaultFontPath+0xd5) [0x44e375]
10: /usr/bin/X (0x400000+0x24ed2) [0x424ed2]
11: /lib/libc.so.6 (__libc_start_main+0xfd) [0x7fb47b052bbd]
12: /usr/bin/X (0x400000+0x24b69) [0x424b69]
Segmentation fault at address 0xffffffffffffffb0

Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting


Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.


I attempted multiple versions of the 190.42 nvidia drivers and downgrading HAL as well, and it does not solve the problem.
Back to top
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Sat Dec 12, 2009 5:12 am    Post subject: Reply with quote

did you try rebuilding x11-libs/libXfont ?
and remove all of those lines about fonts from xorg.conf
Quote:
(WW) The directory "/usr/share/fonts/TTF/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/OTF" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/Type1/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/100dpi/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/75dpi/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/TTF/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/OTF" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/Type1/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/100dpi/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/75dpi/" does not exist.

_________________
"bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Sat Dec 12, 2009 5:26 am    Post subject: Reply with quote

Problem solved, it turns out I had two versions of the nvidia driver installed. I purged them and reinstalled the most recent one, and now it works.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum