Bug 1717309

Summary: [Hyper-V][RHEL 7.6]Startx will have segment fault with hyper-V environment [rhel-7.6.z]
Product: Red Hat Enterprise Linux 7 Reporter: RAD team bot copy to z-stream <autobot-eus-copy>
Component: xorg-x11-serverAssignee: Adam Jackson <ajax>
Status: CLOSED ERRATA QA Contact: HuijingHei <hhei>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.6CC: ajax, alex.williamson, bigdaddy, csoriano, decui, dengjianqing, hhei, jahammo, jjarvis, josalisb, leiwang, mmilazzo, ribarry, richard.weedon.ctr, tpelka, tumeya, vkuznets, xiaofwan, xuli, yacao, yuxisun
Target Milestone: rcKeywords: Regression, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: xorg-x11-server-1.20.1-5.6.el7_6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1665433
: 1722524 (view as bug list) Environment:
Last Closed: 2019-07-29 15:16:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1665433    
Bug Blocks: 1722524    

Description RAD team bot copy to z-stream 2019-06-05 07:52:04 UTC
This bug has been copied from bug #1665433 and has been proposed to be backported to 7.6 z-stream (EUS).

Comment 4 HuijingHei 2019-06-18 07:42:28 UTC
Pass through NVIDIA GRID K2 card to rhel7.6 vm, exec startx get Segmentation fault. Verify failed

Host: windows server 2016
Guest: gen2, xorg-x11-server-Xorg-1.20.1-5.5.el7_6.x86_64, 3.10.0-957.26.1.el7.x86_64

# cat /var/log/Xorg.0.log
[   104.486] 
X.Org X Server 1.20.1
X Protocol Version 11, Revision 0
[   104.488] Build Operating System:  3.10.0-862.6.3.el7.x86_64 
[   104.489] Current Operating System: Linux bootp-73-131-232.rhts.eng.pek2.redhat.com 3.10.0-957.26.1.el7.x86_64 #1 SMP Fri Jun 7 09:40:58 EDT 2019 x86_64
[   104.489] Kernel command line: BOOT_IMAGE=/vmlinuz-3.10.0-957.26.1.el7.x86_64 root=/dev/mapper/rhel-root ro crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=en_US.UTF-8
[   104.492] Build Date: 17 June 2019  03:41:52PM
[   104.493] Build ID: xorg-x11-server 1.20.1-5.5.el7_6 
[   104.494] Current version of pixman: 0.34.0
...
[   104.499] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jun 18 15:33:47 2019
[   104.500] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   104.501] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   104.501] (==) No Layout section.  Using the first Screen section.
[   104.501] (==) No screen section available. Using defaults.
[   104.501] (**) |-->Screen "Default Screen Section" (0)
[   104.501] (**) |   |-->Monitor "<default monitor>"
[   104.501] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   104.501] (==) Automatically adding devices
[   104.501] (==) Automatically enabling devices
[   104.501] (==) Automatically adding GPU devices
[   104.501] (==) Automatically binding GPU devices
[   104.501] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   104.501] (==) FontPath set to:
	catalogue:/etc/X11/fontpath.d,
	built-ins
[   104.501] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   104.501] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   104.501] (II) Loader magic: 0x562883e28020
[   104.501] (II) Module ABI versions:
[   104.501] 	X.Org ANSI C Emulation: 0.4
[   104.501] 	X.Org Video Driver: 24.0
[   104.501] 	X.Org XInput driver : 24.1
[   104.502] 	X.Org Server Extension : 10.0
[   104.502] (II) xfree86: Adding drm device (/dev/dri/card0)
[   104.502] (II) Platform probe for /sys/devices/LNXSYSTM:00/device:00/ACPI0004:00/VMBUS:00/e71493a5-0225-45b8-bb53-dfae278b7281/pcibb53:00/bb53:00:00.0/drm/card0
[   104.535] (--) PCI:*(0@47955:0:0) 10de:11bf:10de:100a rev 161, Mem @ 0xfa000000/16777216, 0xfe0000000/134217728, 0xfe8000000/33554432, BIOS @ 0x????????/65536
[   104.535] (II) LoadModule: "glx"
[   104.535] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   104.535] (II) Module glx: vendor="X.Org Foundation"
[   104.535] 	compiled for 1.20.1, module version = 1.0.0
[   104.535] 	ABI class: X.Org Server Extension, version 10.0
[   104.619] (==) Matched modesetting as autoconfigured driver 0
[   104.620] (==) Matched fbdev as autoconfigured driver 1
[   104.620] (==) Matched vesa as autoconfigured driver 2
[   104.620] (==) Assigned the driver to the xf86ConfigLayout
[   104.620] (II) LoadModule: "modesetting"
[   104.620] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[   104.620] (II) Module modesetting: vendor="X.Org Foundation"
[   104.620] 	compiled for 1.20.1, module version = 1.20.1
[   104.620] 	Module class: X.Org Video Driver
[   104.620] 	ABI class: X.Org Video Driver, version 24.0
[   104.620] (II) LoadModule: "fbdev"
[   104.620] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[   104.620] (II) Module fbdev: vendor="X.Org Foundation"
[   104.620] 	compiled for 1.20.0, module version = 0.5.0
[   104.620] 	Module class: X.Org Video Driver
[   104.620] 	ABI class: X.Org Video Driver, version 24.0
[   104.620] (II) LoadModule: "vesa"
[   104.620] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[   104.620] (II) Module vesa: vendor="X.Org Foundation"
[   104.620] 	compiled for 1.20.0, module version = 2.4.0
[   104.620] 	Module class: X.Org Video Driver
[   104.620] 	ABI class: X.Org Video Driver, version 24.0
[   104.620] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   104.620] (II) FBDEV: driver for framebuffer: fbdev
[   104.620] (II) VESA: driver for VESA chipsets: vesa
[   104.620] (++) using VT number 1

[   104.629] (**) modeset(0): claimed PCI slot 0@47955:0:0
[   104.629] (II) modeset(0): using default device
[   104.629] (WW) Falling back to old probe method for fbdev
[   104.629] (II) Loading sub module "fbdevhw"
[   104.629] (II) LoadModule: "fbdevhw"
[   104.629] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
[   104.629] (II) Module fbdevhw: vendor="X.Org Foundation"
[   104.629] 	compiled for 1.20.1, module version = 0.0.2
[   104.629] 	ABI class: X.Org Video Driver, version 24.0
[   104.637] (II) modeset(G0): using drv /dev/dri/card0
[   104.687] (II) modeset(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[   104.688] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[   104.688] (EE) 
[   104.688] (EE) Backtrace:
[   104.688] (EE) 0: /usr/bin/X (xorg_backtrace+0x55) [0x562883b9a175]
[   104.688] (EE) 1: /usr/bin/X (0x5628839e9000+0x1b4df9) [0x562883b9ddf9]
[   104.688] (EE) 2: /lib64/libpthread.so.0 (0x7fde49bf5000+0xf5d0) [0x7fde49c045d0]
[   104.688] (EE) 3: /usr/bin/X (0x5628839e9000+0xb60d0) [0x562883a9f0d0]
[   104.688] (EE) 4: /usr/bin/X (xf86CollectOptions+0x7a) [0x562883a82b7a]
[   104.688] (EE) 5: /usr/lib64/xorg/modules/drivers/modesetting_drv.so (0x7fde45df4000+0xac5d) [0x7fde45dfec5d]
[   104.688] (EE) 6: /usr/bin/X (InitOutput+0x9b9) [0x562883a86019]
[   104.688] (EE) 7: /usr/bin/X (0x5628839e9000+0x601b0) [0x562883a491b0]
[   104.688] (EE) 8: /lib64/libc.so.6 (__libc_start_main+0xf5) [0x7fde4984a3d5]
[   104.688] (EE) 9: /usr/bin/X (0x5628839e9000+0x4a4ce) [0x562883a334ce]
[   104.688] (EE) 
[   104.688] (EE) Segmentation fault at address 0x124
[   104.688] (EE) 
Fatal server error:
[   104.688] (EE) Caught signal 11 (Segmentation fault). Server aborting
[   104.688] (EE) 
[   104.688] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   104.688] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   104.688] (EE) 
[   104.690] (EE) Server terminated with error (1). Closing log file.

Comment 5 HuijingHei 2019-06-18 07:51:19 UTC
Hi Adam, could you help to check the log and confirm the fixed patch is included? Thanks a lot!

Comment 10 HuijingHei 2019-06-20 02:53:02 UTC
Pass through NVIDIA GRID K2 card to vm, exec startx can not get "Segmentation fault". Verify passed.

Host: windows server 2016
Guest: gen2, xorg-x11-server-Xorg-1.20.1-5.6.el7_6.x86_64, 3.10.0-957.27.1.el7.x86_64

Comment 12 errata-xmlrpc 2019-07-29 15:16:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:1893