Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xorg Segmentation fault at startup with nvidia drivers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Simicz
n00b
n00b


Joined: 05 Dec 2007
Posts: 8

PostPosted: Thu Jan 18, 2018 9:14 am    Post subject: Xorg Segmentation fault at startup with nvidia drivers Reply with quote

I have problem to start my xorg. I had working gentoo installation, but had to upgrade Motherboard due HW failure of old one.

When I try startx without BusId in xorg configuration I got error no devices detected.
I did "emerge -avuDNe @world" after motherboard upgrade.
I'm running in UEFI mode due nvme sdd.

/var/log/Xorg.0.log
Code:
[ 44866.239]
X.Org X Server 1.19.5
Release Date: 2017-10-12
[ 44866.247] X Protocol Version 11, Revision 0
[ 44866.248] Build Operating System: Linux 4.12.12-gentoo x86_64 Gentoo
[ 44866.249] Current Operating System: Linux sagara 4.12.12-gentoo #9 SMP Sun Jan 14 22:53:32 CET 2018 x86_64
[ 44866.249] Kernel command line: root=/dev/nvme0n1p4 rootwait BOOT_IMAGE=/vmlinuz-4.12.12-gentoo root=/dev/nvme0n1p4 ro init=/usr/lib/systemd/systemd rootwait console=tty1 nomodeset
[ 44866.256] Build Date: 18 January 2018  07:01:29AM
[ 44866.258] 
[ 44866.259] Current version of pixman: 0.34.0
[ 44866.265]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[ 44866.265] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 44866.274] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 18 10:13:17 2018
[ 44866.275] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 44866.276] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 44866.276] (==) No Layout section.  Using the first Screen section.
[ 44866.276] (==) No screen section available. Using defaults.
[ 44866.276] (**) |-->Screen "Default Screen Section" (0)
[ 44866.276] (**) |   |-->Monitor "<default monitor>"
[ 44866.276] (==) No device specified for screen "Default Screen Section".
   Using the first device section listed.
[ 44866.276] (**) |   |-->Device "device0"
[ 44866.276] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[ 44866.276] (==) Automatically adding devices
[ 44866.276] (==) Automatically enabling devices
[ 44866.276] (==) Automatically adding GPU devices
[ 44866.276] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 44866.276] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 44866.276]    Entry deleted from font path.
[ 44866.276] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 44866.276]    Entry deleted from font path.
[ 44866.276] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 44866.276]    Entry deleted from font path.
[ 44866.276] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 44866.276]    Entry deleted from font path.
[ 44866.276]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 44866.276] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 44866.276]    Entry deleted from font path.
[ 44866.276]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 44866.276] (==) FontPath set to:
   /usr/share/fonts/misc/
[ 44866.276] (**) ModulePath set to "/usr/lib64/opengl/nvidia,/usr/lib64/xorg/modules"
[ 44866.276] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 44866.276] (II) Loader magic: 0x55b324490d20
[ 44866.276] (II) Module ABI versions:
[ 44866.276]    X.Org ANSI C Emulation: 0.4
[ 44866.276]    X.Org Video Driver: 23.0
[ 44866.276]    X.Org XInput driver : 24.1
[ 44866.276]    X.Org Server Extension : 10.0
[ 44866.280] (++) using VT number 3

[ 44866.280] (--) controlling tty is VT number 3, auto-enabling KeepTty
[ 44866.282] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_33
[ 44866.282] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 44866.283] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[ 44866.286] (II) no primary bus or device found
[ 44866.286]    falling back to /sys/devices/pci0000:16/0000:16:00.0/0000:17:00.0/drm/card0
[ 44866.286] (II) LoadModule: "glx"
[ 44866.286] (II) Loading /usr/lib64/opengl/nvidia/extensions/libglx.so
[ 44866.289] (II) Module glx: vendor="NVIDIA Corporation"
[ 44866.289]    compiled for 4.0.2, module version = 1.0.0
[ 44866.289]    Module class: X.Org Server Extension
[ 44866.289] (II) NVIDIA GLX Module  387.22  Wed Oct 25 22:41:23 PDT 2017
[ 44866.289] (II) LoadModule: "nvidia"
[ 44866.289] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[ 44866.290] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 44866.290]    compiled for 4.0.2, module version = 1.0.0
[ 44866.290]    Module class: X.Org Video Driver
[ 44866.290] (II) NVIDIA dlloader X Driver  387.22  Wed Oct 25 22:14:47 PDT 2017
[ 44866.290] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 44866.290] (EE)
[ 44866.290] (EE) Backtrace:
[ 44866.290] (EE) 0: /usr/bin/X (xorg_backtrace+0x4a) [0x55b3242095ea]
[ 44866.290] (EE) 1: /usr/bin/X (0x55b324059000+0x1b42f9) [0x55b32420d2f9]
[ 44866.290] (EE) 2: /lib64/libpthread.so.0 (0x7f0c385c1000+0x13e10) [0x7f0c385d4e10]
[ 44866.290] (EE) 3: /usr/bin/X (xf86PlatformDeviceCheckBusID+0xa7) [0x55b32410f5d7]
[ 44866.290] (EE) 4: /usr/bin/X (0x55b324059000+0xb0862) [0x55b324109862]
[ 44866.290] (EE) 5: /usr/bin/X (xf86CallDriverProbe+0xb0) [0x55b3240e16c0]
[ 44866.290] (EE) 6: /usr/bin/X (xf86BusConfig+0x46) [0x55b3240e2016]
[ 44866.290] (EE) 7: /usr/bin/X (InitOutput+0x96b) [0x55b3240eff9b]
[ 44866.290] (EE) 8: /usr/bin/X (0x55b324059000+0x551f6) [0x55b3240ae1f6]
[ 44866.290] (EE) 9: /lib64/libc.so.6 (__libc_start_main+0xf1) [0x7f0c38231541]
[ 44866.290] (EE) 10: /usr/bin/X (_start+0x2a) [0x55b324097faa]
[ 44866.290] (EE)
[ 44866.290] (EE) Segmentation fault at address 0x0
[ 44866.290] (EE)
Fatal server error:
[ 44866.290] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 44866.290] (EE)
[ 44866.290] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[ 44866.290] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 44866.290] (EE)
[ 44866.294] (EE) Server terminated with error (1). Closing log file.



/etc/portage/make.conf
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.

USE="wayland gnome gtk -kde X systemd pulseaudio acpi alsa bluetooth cups gpm pulseaudio networkmanager samba systemd usb vdpau xinerama -bindist bluetooth abi_x86_32"

PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
MAKEOPTS="-j16"

GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz/"
GRUB_PLATFORMS="efi-64"
VIDEO_CARDS="nvidia"
INPUT_DEVICES="libinput"
LINGUAS="cs en"
L10N="cs en"



/etc/X11/xorg.conf.d/10-nvidia.conf
Code:
Section "Device"
    Identifier     "device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusId      "PCI:17:00.0"
EndSection



lspci -b
Code:
pcilib: Cannot open /sys/bus/pci/devices/0000:01:00.0/config
lspci: Unable to read the standard configuration space header of device 0000:01:00.0
00:00.0 Host bridge: Intel Corporation Device 2020 (rev 04)
00:00.0 Host bridge: Intel Corporation Device 2020 (rev 04)
00:04.0 System peripheral: Intel Corporation Sky Lake-E CBDMA Registers (rev 04)
00:04.1 System peripheral: Intel Corporation Sky Lake-E CBDMA Registers (rev 04)
00:04.2 System peripheral: Intel Corporation Sky Lake-E CBDMA Registers (rev 04)
00:04.3 System peripheral: Intel Corporation Sky Lake-E CBDMA Registers (rev 04)
00:04.4 System peripheral: Intel Corporation Sky Lake-E CBDMA Registers (rev 04)
00:04.5 System peripheral: Intel Corporation Sky Lake-E CBDMA Registers (rev 04)
00:04.6 System peripheral: Intel Corporation Sky Lake-E CBDMA Registers (rev 04)
00:04.7 System peripheral: Intel Corporation Sky Lake-E CBDMA Registers (rev 04)
00:05.0 System peripheral: Intel Corporation Sky Lake-E MM/Vt-d Configuration Registers (rev 04)
00:05.2 System peripheral: Intel Corporation Device 2025 (rev 04)
00:05.4 PIC: Intel Corporation Device 2026 (rev 04)
00:08.0 System peripheral: Intel Corporation Sky Lake-E Ubox Registers (rev 04)
00:08.1 Performance counters: Intel Corporation Sky Lake-E Ubox Registers (rev 04)
00:08.2 System peripheral: Intel Corporation Sky Lake-E Ubox Registers (rev 04)
00:14.0 USB controller: Intel Corporation 200 Series PCH USB 3.0 xHCI Controller
00:16.0 Communication controller: Intel Corporation 200 Series PCH CSME HECI #1
00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode]
00:1b.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #17 (rev f0)
00:1c.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #1 (rev f0)
00:1c.4 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #5 (rev f0)
00:1d.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #9 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device a2d2
00:1f.2 Memory controller: Intel Corporation 200 Series PCH PMC
00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
00:1f.4 SMBus: Intel Corporation 200 Series PCH SMBus Controller
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-V
03:00.0 USB controller: ASMedia Technology Inc. Device 2142
16:00.0 PCI bridge: Intel Corporation Sky Lake-E PCI Express Root Port 1A (rev 04)
16:05.0 System peripheral: Intel Corporation Device 2034 (rev 04)
16:05.2 System peripheral: Intel Corporation Sky Lake-E RAS Configuration Registers (rev 04)
16:05.4 PIC: Intel Corporation Device 2036 (rev 04)
16:08.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:08.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:08.2 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:08.3 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:08.4 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:08.5 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:08.6 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:08.7 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:09.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:09.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:0e.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:0e.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:0e.2 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:0e.3 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:0e.4 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:0e.5 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:0e.6 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:0e.7 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:0f.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:0f.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:1d.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:1d.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:1d.2 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:1d.3 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 04)
16:1e.0 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 04)
16:1e.1 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 04)
16:1e.2 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 04)
16:1e.3 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 04)
16:1e.4 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 04)
16:1e.5 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 04)
16:1e.6 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 04)
17:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 680] (rev a1)
17:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)
64:05.0 System peripheral: Intel Corporation Device 2034 (rev 04)
64:05.2 System peripheral: Intel Corporation Sky Lake-E RAS Configuration Registers (rev 04)
64:05.4 PIC: Intel Corporation Device 2036 (rev 04)
64:05.5 RAID bus controller: Intel Corporation Device 201d (rev 04)
64:08.0 System peripheral: Intel Corporation Device 2066 (rev 04)
64:09.0 System peripheral: Intel Corporation Device 2066 (rev 04)
64:0a.0 System peripheral: Intel Corporation Device 2040 (rev 04)
64:0a.1 System peripheral: Intel Corporation Device 2041 (rev 04)
64:0a.2 System peripheral: Intel Corporation Device 2042 (rev 04)
64:0a.3 System peripheral: Intel Corporation Device 2043 (rev 04)
64:0a.4 System peripheral: Intel Corporation Device 2044 (rev 04)
64:0a.5 System peripheral: Intel Corporation Device 2045 (rev 04)
64:0a.6 System peripheral: Intel Corporation Device 2046 (rev 04)
64:0a.7 System peripheral: Intel Corporation Device 2047 (rev 04)
64:0b.0 System peripheral: Intel Corporation Device 2048 (rev 04)
64:0b.1 System peripheral: Intel Corporation Device 2049 (rev 04)
64:0b.2 System peripheral: Intel Corporation Device 204a (rev 04)
64:0b.3 System peripheral: Intel Corporation Device 204b (rev 04)
64:0c.0 System peripheral: Intel Corporation Device 2040 (rev 04)
64:0c.1 System peripheral: Intel Corporation Device 2041 (rev 04)
64:0c.2 System peripheral: Intel Corporation Device 2042 (rev 04)
64:0c.3 System peripheral: Intel Corporation Device 2043 (rev 04)
64:0c.4 System peripheral: Intel Corporation Device 2044 (rev 04)
64:0c.5 System peripheral: Intel Corporation Device 2045 (rev 04)
64:0c.6 System peripheral: Intel Corporation Device 2046 (rev 04)
64:0c.7 System peripheral: Intel Corporation Device 2047 (rev 04)
64:0d.0 System peripheral: Intel Corporation Device 2048 (rev 04)
64:0d.1 System peripheral: Intel Corporation Device 2049 (rev 04)
64:0d.2 System peripheral: Intel Corporation Device 204a (rev 04)
64:0d.3 System peripheral: Intel Corporation Device 204b (rev 04)
b2:05.0 System peripheral: Intel Corporation Device 2034 (rev 04)
b2:05.2 System peripheral: Intel Corporation Sky Lake-E RAS Configuration Registers (rev 04)
b2:05.4 PIC: Intel Corporation Device 2036 (rev 04)
b2:12.0 Performance counters: Intel Corporation Sky Lake-E M3KTI Registers (rev 04)
b2:12.1 Performance counters: Intel Corporation Sky Lake-E M3KTI Registers (rev 04)
b2:12.2 System peripheral: Intel Corporation Sky Lake-E M3KTI Registers (rev 04)
b2:15.0 System peripheral: Intel Corporation Sky Lake-E M2PCI Registers (rev 04)
b2:16.0 System peripheral: Intel Corporation Sky Lake-E M2PCI Registers (rev 04)
b2:16.4 System peripheral: Intel Corporation Sky Lake-E M2PCI Registers (rev 04)
b2:17.0 System peripheral: Intel Corporation Sky Lake-E M2PCI Registers (rev 04)
Back to top
View user's profile Send private message
Simicz
n00b
n00b


Joined: 05 Dec 2007
Posts: 8

PostPosted: Fri Jan 19, 2018 6:40 pm    Post subject: Reply with quote

Updated bios and replaced graphics card and xorg is now working. Not sure which solved this problem as old graphics card was working under windows witout problem.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13498

PostPosted: Sat Jan 20, 2018 6:32 pm    Post subject: Reply with quote

According to your output, the X server called or dereferenced a null pointer. This is a bug. It may be a bug in the X server or it may be a bug in the nVidia driver. Further investigation would be required to determine fault. Your new video card apparently causes a different code path to be taken, so no null pointer dereference occurs.
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