You are not logged in.

#1 2018-01-05 21:50:48

brianbaligad
Member
Registered: 2013-08-12
Posts: 22

[SOLVED] Xorg segfault on startup

Xorg is segfaulting on startup since I updated this morning.  I've been stripping out my own config to rule any of that out. My only modification for X was a couple confs in /etc/X11/xorg.conf.d/ and I've pulled them out while troubleshooting.  I've commented everything I had in .xinitrc except for "exec i3" and am seeing the same result (same result using "exec awesome" too, just to be sure). This is on an Intel NUC D34010WYK (HD4400 gpu). I flashed the latest bios a couple days ago.

Xorg.0.log

[  2008.869] 
X.Org X Server 1.19.6
Release Date: 2017-12-20
[  2008.869] X Protocol Version 11, Revision 0
[  2008.869] Build Operating System: Linux 4.9.71-1-lts x86_64 
[  2008.869] Current Operating System: Linux nuc 4.14.11-1-ARCH #1 SMP PREEMPT Wed Jan 3 07:02:42 UTC 2018 x86_64
[  2008.869] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=9e44ab43-2748-4248-ab08-43b994720bcd rw cryptdevice=/dev/sda3:nuc_crypt:allow-discards
[  2008.869] Build Date: 25 December 2017  02:02:38PM
[  2008.869]  
[  2008.869] Current version of pixman: 0.34.0
[  2008.869] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  2008.869] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  2008.870] (==) Log file: "/home/brian/.local/share/xorg/Xorg.0.log", Time: Fri Jan  5 13:22:16 2018
[  2008.870] (II) Loader magic: 0x55c5085e5d60
[  2008.870] (II) Module ABI versions:
[  2008.870] 	X.Org ANSI C Emulation: 0.4
[  2008.870] 	X.Org Video Driver: 23.0
[  2008.870] 	X.Org XInput driver : 24.1
[  2008.870] 	X.Org Server Extension : 10.0
[  2008.870] (++) using VT number 1

[  2008.870] (--) controlling tty is VT number 1, auto-enabling KeepTty
[  2008.872] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c20
[  2008.872] (II) xfree86: Adding drm device (/dev/dri/card0)
[  2008.873] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[  2008.874] (EE) 
[  2008.874] (EE) Backtrace:
[  2008.874] (EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x139) [0x55c508362169]
[  2008.874] (EE) 1: /usr/lib/libpthread.so.0 (funlockfile+0x50) [0x7f040ed5bdef]
[  2008.874] (EE) 2: /usr/lib/xorg-server/Xorg (xf86PlatformMatchDriver+0x2b4) [0x55c50825b684]
[  2008.874] (EE) 3: /usr/lib/xorg-server/Xorg (xf86BusProbe+0x9) [0x55c5082334f9]
[  2008.875] (EE) 4: /usr/lib/xorg-server/Xorg (InitOutput+0x7ff) [0x55c50824219f]
[  2008.875] (EE) 5: /usr/lib/xorg-server/Xorg (InitFonts+0x213) [0x55c5082000b3]
[  2008.875] (EE) 6: /usr/lib/libc.so.6 (__libc_start_main+0xea) [0x7f040e9b2f4a]
[  2008.875] (EE) 7: /usr/lib/xorg-server/Xorg (_start+0x2a) [0x55c5081e9f2a]
[  2008.875] (EE) 
[  2008.875] (EE) Segmentation fault at address 0x50
[  2008.875] (EE) 
Fatal server error:
[  2008.875] (EE) Caught signal 11 (Segmentation fault). Server aborting
[  2008.875] (EE) 
[  2008.875] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[  2008.875] (EE) Please also check the log file at "/home/brian/.local/share/xorg/Xorg.0.log" for additional information.
[  2008.875] (EE) 
[  2008.929] (EE) Server terminated with error (1). Closing log file.

Just to try to confirm to myself that I'm at a default xorg configuration, I used the pacman check feature on all my xorg packages (maybe rules out corrupted data?):

for i in $(pacman -Qs xorg | grep ^local | awk "{print $1}" | sed 's/local\///');do pacman -Qk $i; done
xf86-input-evdev: 21 total files, 0 missing files
xf86-input-libinput: 21 total files, 0 missing files
xf86-video-intel: 26 total files, 0 missing files
xorg-bdftopcf: 10 total files, 0 missing files
xorg-font-util: 36 total files, 0 missing files
xorg-font-utils: 0 total files, 0 missing files
xorg-fonts-alias: 14 total files, 0 missing files
xorg-fonts-encodings: 59 total files, 0 missing files
xorg-fonts-misc: 455 total files, 0 missing files
xorg-mkfontdir: 15 total files, 0 missing files
xorg-mkfontscale: 10 total files, 0 missing files
xorg-server: 50 total files, 0 missing files
xorg-server-common: 15 total files, 0 missing files
xorg-setxkbmap: 10 total files, 0 missing files
xorg-xauth: 10 total files, 0 missing files
xorg-xbacklight: 10 total files, 0 missing files
xorg-xinit: 17 total files, 0 missing files
xorg-xkbcomp: 13 total files, 0 missing files
xorg-xmessage: 14 total files, 0 missing files
xorg-xmodmap: 10 total files, 0 missing files
xorg-xrandr: 10 total files, 0 missing files
xorg-xrdb: 10 total files, 0 missing files
xorg-xset: 10 total files, 0 missing files
xorg-xsetroot: 10 total files, 0 missing files

no files show up as changed there.  I created a new user and logged in with them.  And I get the same result when I run startx.

I noticed tty1 always tries to start X even when I'm logging in as the new user or root. Maybe this is related to some systemd behavior, and some configuration I've used in the past is to blame.  I'll have to dig into that tomorrow.

Last edited by brianbaligad (2018-01-08 23:46:56)

Offline

#2 2018-01-06 11:30:04

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [SOLVED] Xorg segfault on startup

I noticed tty1 always tries to start X

This is done with ~/.bash_profile, and the relevant lines (comment out if you don't want them anymore) will look like

if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
  exec startx
fi

Regarding the segfault, since it is happening after an update, post your pacman.log.

P.S. since it is so related to https://bbs.archlinux.org/viewtopic.php?id=233229, check what happens if you use a login manager rather than starting X manually. I'm not finding any bug reports but this seems a breakage in xorg.

Offline

#3 2018-01-07 18:57:58

brianbaligad
Member
Registered: 2013-08-12
Posts: 22

Re: [SOLVED] Xorg segfault on startup

Thanks, I'll see about setting up a dm sometime today to see if it helps. Here's the pacman.log from my last update. The relevant bit seems to be:

[2018-01-05 10:02] [ALPM] upgraded xorg-server-common (1.19.5-1 -> 1.19.6-2)
[2018-01-05 10:02] [ALPM] upgraded xorg-server (1.19.5-1 -> 1.19.6-2)

pacman.log:

[2018-01-05 10:02] [PACMAN] synchronizing package lists
[2018-01-05 10:02] [PACMAN] starting full system upgrade
[2018-01-05 10:02] [ALPM] transaction started
[2018-01-05 10:02] [ALPM] upgraded json-c (0.12.1-1 -> 0.13-1)
[2018-01-05 10:02] [ALPM] upgraded libutil-linux (2.31-2 -> 2.31.1-1)
[2018-01-05 10:02] [ALPM] upgraded bind-tools (9.11.2-2 -> 9.11.2-3)
[2018-01-05 10:02] [ALPM] upgraded bluez (5.47-3 -> 5.48-1)
[2018-01-05 10:02] [ALPM] upgraded cryptsetup (2.0.0-1 -> 2.0.0-2)
[2018-01-05 10:02] [ALPM] upgraded util-linux (2.31-2 -> 2.31.1-1)
[2018-01-05 10:02] [ALPM] upgraded bluez-utils (5.47-3 -> 5.48-1)
[2018-01-05 10:02] [ALPM] upgraded re2 (20171201-1 -> 20180101-1)
[2018-01-05 10:02] [ALPM] upgraded librsvg (2:2.40.20-1 -> 2:2.41.2-1)
[2018-01-05 10:02] [ALPM] upgraded libdrm (2.4.88-1 -> 2.4.89-1)
[2018-01-05 10:02] [ALPM] upgraded mesa (17.3.0-2 -> 17.3.1-2)
[2018-01-05 10:02] [ALPM] upgraded chromium (63.0.3239.108-2 -> 63.0.3239.132-1)
[2018-01-05 10:02] [ALPM] upgraded libnghttp2 (1.28.0-1 -> 1.29.0-1)
[2018-01-05 10:02] [ALPM] upgraded feh (2.22.2-1 -> 2.23-1)
[2018-01-05 10:02] [ALPM] upgraded firefox (57.0.2-1 -> 57.0.4-1)
[2018-01-05 10:02] [ALPM] upgraded gnupg (2.2.3-1 -> 2.2.4-1)
[2018-01-05 10:02] [ALPM] upgraded i3lock (2.9.1-2 -> 2.10-1)
[2018-01-05 10:02] [ALPM] upgraded libmagick (7.0.7.15-1 -> 7.0.7.19-1)
[2018-01-05 10:02] [ALPM] upgraded imagemagick (7.0.7.15-1 -> 7.0.7.19-1)
[2018-01-05 10:02] [ALPM] upgraded libmariadbclient (10.1.29-1 -> 10.1.30-1)
[2018-01-05 10:02] [ALPM] upgraded libmediainfo (17.10-1 -> 17.12-1)
[2018-01-05 10:02] [ALPM] upgraded libupnp (1.6.22-1 -> 1.6.24-1)
[2018-01-05 10:02] [ALPM] upgraded libwbclient (4.7.3-1 -> 4.7.4-1)
[2018-01-05 10:02] [ALPM] upgraded linux (4.14.7-1 -> 4.14.11-1)
[2018-01-05 10:02] [ALPM] upgraded mariadb-clients (10.1.29-1 -> 10.1.30-1)
[2018-01-05 10:02] [ALPM] upgraded mediainfo (17.10-1 -> 17.12-1)
[2018-01-05 10:02] [ALPM] upgraded protobuf (3.4.1-1 -> 3.5.0.1-1)
[2018-01-05 10:02] [ALPM] upgraded mosh (1.3.2-2 -> 1.3.2-3)
[2018-01-05 10:02] [ALPM] upgraded nano (2.9.1-1 -> 2.9.2-1)
[2018-01-05 10:02] [ALPM] upgraded smbclient (4.7.3-1 -> 4.7.4-1)
[2018-01-05 10:02] [ALPM] upgraded samba (4.7.3-1 -> 4.7.4-1)
[2018-01-05 10:02] [ALPM] upgraded xorg-server-common (1.19.5-1 -> 1.19.6-2)
[2018-01-05 10:02] [ALPM] upgraded xorg-server (1.19.5-1 -> 1.19.6-2)
[2018-01-05 10:02] [ALPM] transaction completed
[2018-01-05 10:02] [ALPM] running '60-linux.hook'...
[2018-01-05 10:02] [ALPM] running '90-linux.hook'...
[2018-01-05 10:02] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2018-01-05 10:02] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2018-01-05 10:02] [ALPM-SCRIPTLET] ==> Starting build: 4.14.11-1-ARCH
[2018-01-05 10:02] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [encrypt]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2018-01-05 10:03] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2018-01-05 10:03] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2018-01-05 10:03] [ALPM-SCRIPTLET] ==> Image generation successful
[2018-01-05 10:03] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2018-01-05 10:03] [ALPM-SCRIPTLET] ==> Starting build: 4.14.11-1-ARCH
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2018-01-05 10:03] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: wd719x
[2018-01-05 10:03] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [encrypt]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2018-01-05 10:03] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2018-01-05 10:03] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2018-01-05 10:03] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
[2018-01-05 10:03] [ALPM-SCRIPTLET] ==> Image generation successful
[2018-01-05 10:03] [ALPM] running 'detect-old-perl-modules.hook'...
[2018-01-05 10:03] [ALPM] running 'gdk-pixbuf-query-loaders.hook'...
[2018-01-05 10:03] [ALPM] running 'gtk-update-icon-cache.hook'...
[2018-01-05 10:03] [ALPM] running 'systemd-sysusers.hook'...
[2018-01-05 10:03] [ALPM] running 'systemd-tmpfiles.hook'...
[2018-01-05 10:03] [ALPM] running 'systemd-update.hook'...
[2018-01-05 10:03] [ALPM] running 'texinfo-install.hook'...
[2018-01-05 10:03] [ALPM] running 'update-desktop-database.hook'...
[2018-01-05 12:49] [PACMAN] Running 'pacman -Syu'
[2018-01-05 12:49] [PACMAN] synchronizing package lists
[2018-01-05 12:49] [PACMAN] starting full system upgrade
[2018-01-05 18:29] [PACMAN] Running 'pacman -Syu'
[2018-01-05 18:29] [PACMAN] synchronizing package lists
[2018-01-05 18:29] [PACMAN] starting full system upgrade

Offline

#4 2018-01-07 21:17:52

seth
Member
Registered: 2012-09-03
Posts: 51,606

Re: [SOLVED] Xorg segfault on startup

Optimus system?

lspci

Did you try to uninstall xf86-video-intel?

systool -vm i915

Try "i915.enable_ips=0" (vwg - very wild guess ;-)

Offline

#5 2018-01-07 22:04:29

brianbaligad
Member
Registered: 2013-08-12
Posts: 22

Re: [SOLVED] Xorg segfault on startup

seth wrote:

Did you try to uninstall xf86-video-intel?

Adding "i915.enable_ips=0" to my kernel boot params gets me into X.  Thanks!  I'm going to take some time to try to understand what this does, and then I'll probably mark this thread solved.

seth wrote:

Optimus system?

Intel Nuc D34010WYK

For completeness, here was systool and lspci output before I added "i915.enable_ips=0" to the kernel line:

[nuc ~]# lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-V (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
[nuc ~]# systool -vm i915
Module = "i915"

  Attributes:
    coresize            = "1884160"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "2"
    srcversion          = "A4E6B57B8538DE5EA1E88C2"
    taint               = ""
    uevent              = <store method only>

  Parameters:
    alpha_support       = "Y"
    disable_display     = "N"
    disable_power_well  = "1"
    edp_vswing          = "0"
    enable_cmd_parser   = "Y"
    enable_dc           = "-1"
    enable_dp_mst       = "Y"
    enable_dpcd_backlight= "N"
    enable_execlists    = "0"
    enable_fbc          = "0"
    enable_guc_loading  = "0"
    enable_guc_submission= "0"
    enable_gvt          = "N"
    enable_hangcheck    = "Y"
    enable_ips          = "1"
    enable_ppgtt        = "1"
    enable_psr          = "0"
    enable_rc6          = "1"
    error_capture       = "Y"
    fastboot            = "N"
    force_reset_modeset_test= "N"
    guc_firmware_path   = "(null)"
    guc_log_level       = "-1"
    huc_firmware_path   = "(null)"
    inject_load_failure = "0"
    invert_brightness   = "0"
    load_detect_test    = "N"
    lvds_channel_mode   = "0"
    lvds_use_ssc        = "-1"
    mmio_debug          = "0"
    modeset             = "-1"
    nuclear_pageflip    = "N"
    panel_ignore_lid    = "1"
    prefault_disable    = "N"
    reset               = "2"
    semaphores          = "1"
    use_mmio_flip       = "0"
    vbt_firmware        = "(null)"
    vbt_sdvo_panel_type = "-1"
    verbose_state_checks= "Y"

  Sections:
    .altinstr_aux       = "0xffffffffc0517c3c"
    .altinstr_replacement= "0xffffffffc05176d0"
    .altinstructions    = "0xffffffffc0558b1c"
    .bss                = "0xffffffffc05c1c40"
    .data..cacheline_aligned= "0xffffffffc05c1240"
    .data..read_mostly  = "0xffffffffc05bef60"
    .data.unlikely      = "0xffffffffc05beef4"
    .data               = "0xffffffffc05b3b40"
    .exit.text          = "0xffffffffc0517c84"
    .fixup              = "0xffffffffc0517c9b"
    .gnu.linkonce.this_module= "0xffffffffc05c1900"
    .init.text          = "0xffffffffc05f6000"
    .note.gnu.build-id  = "0xffffffffc0518000"
    .orc_unwind         = "0xffffffffc0579da6"
    .orc_unwind_ip      = "0xffffffffc0558fae"
    .parainstructions   = "0xffffffffc054be20"
    .ref.data           = "0xffffffffc05bf1c0"
    .rodata.str1.1      = "0xffffffffc054c12c"
    .rodata.str1.8      = "0xffffffffc05302a0"
    .rodata             = "0xffffffffc05180a0"
    .smp_locks          = "0xffffffffc0558428"
    .strtab             = "0xffffffffc0619750"
    .symtab             = "0xffffffffc05f8000"
    .text..refcount     = "0xffffffffc051782c"
    .text               = "0xffffffffc0429000"
    .text.unlikely      = "0xffffffffc0517cfb"
    __bug_table         = "0xffffffffc05bbe10"
    __ex_table          = "0xffffffffc05b0940"
    __jump_table        = "0xffffffffc05b3000"
    __kcrctab_gpl       = "0xffffffffc0518080"
    __ksymtab_gpl       = "0xffffffffc0518030"
    __ksymtab_strings   = "0xffffffffc05b18d8"
    __mcount_loc        = "0xffffffffc05ab2a0"
    __param             = "0xffffffffc05b1298"
    __tracepoints_ptrs  = "0xffffffffc05b1930"
    __tracepoints       = "0xffffffffc05c0480"
    __tracepoints_strings= "0xffffffffc05b1af0"
    _ftrace_events      = "0xffffffffc05beff0"

Last edited by brianbaligad (2018-01-07 22:14:03)

Offline

#6 2018-01-07 22:40:40

seth
Member
Registered: 2012-09-03
Posts: 51,606

Re: [SOLVED] Xorg segfault on startup

power saving feature, change likely came with the kernel update - can you bisect the kernel?

Offline

#7 2018-01-08 23:46:33

brianbaligad
Member
Registered: 2013-08-12
Posts: 22

Re: [SOLVED] Xorg segfault on startup

After installing xorg-server-git intending to try a bisect, I was unable to reliably reproduce the segfault.  Even after downgrading back to xorg-server version 1.19.6-2 in my pkg cache that wasn't working before, I'm only able to reproduce the segfault now by disabling composite while using the 1.19.6-2 version.  That's perplexing since I had removed my config file "20-nocomposite.conf" /etc/X11/xorg.conf.d/ previously and the segfault was still continuing to happen.  When I had xorg-server-git still installed, I wasn't able to reproduce the segfault by disabling composite. Go figure.

I'm disappointed that I couldn't definitively identify what the issue was.  But I'll mark this thread as solved for now.

/etc/X11/xorg.conf.d/20-nocomposite.conf

Section "Extensions"
       Option "Composite" "Disable"
EndSection

Last edited by brianbaligad (2018-01-08 23:53:31)

Offline

Board footer

Powered by FluxBB