WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Latest X updates breaks vmware  (Read 2512 times)

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Latest X updates breaks vmware
« on: November 22, 2019, 10:08:15 PM »
After the latest round of X library updates Xorg crashes on startup:

Code: [Select]
[    36.241] (II) vmware(0): Initialized VMWARE_CTRL extension version 0.2
[    36.259] (II) vmware(0): Gallium3D XA version: 2.5.0.
[    36.259] (II) vmware(0): Path of drm device is "/dev/dri/card0".
[    36.259] (II) vmware(0): [DRI2] Setup complete
[    36.259] (II) vmware(0): [DRI2]   DRI driver: vmwgfx
[    36.389] (--) vmware(0): Render acceleration is enabled.
[    36.389] (==) vmware(0): Rendercheck mode is disabled.
[    36.389] (--) vmware(0): Direct rendering (DRI2 3D) is enabled.
[    36.389] (--) vmware(0): Direct rendering (DRI3 3D) is enabled.
[    36.389] (==) vmware(0): Direct presents are disabled.
[    36.389] (==) vmware(0): Hardware only presents are automatic per scanout.
[    36.389] (==) vmware(0): Backing store enabled
[    36.389] (==) vmware(0): Silken mouse enabled
[    36.390] (==) vmware(0): DPMS enabled
[    36.390] (II) Initializing extension Generic Event Extension
[    36.390] (II) Initializing extension SHAPE
[    36.390] (II) Initializing extension MIT-SHM
[    36.390] (II) Initializing extension XInputExtension
[    36.390] (II) Initializing extension XTEST
[    36.390] (II) Initializing extension BIG-REQUESTS
[    36.390] (II) Initializing extension SYNC
[    36.390] (II) Initializing extension XKEYBOARD
[    36.390] (II) Initializing extension XC-MISC
[    36.390] (II) Initializing extension XFIXES
[    36.390] (II) Initializing extension RENDER
[    36.390] (II) Initializing extension RANDR
[    36.390] (II) Initializing extension COMPOSITE
[    36.390] (II) Initializing extension DAMAGE
[    36.390] (II) Initializing extension MIT-SCREEN-SAVER
[    36.390] (II) Initializing extension DOUBLE-BUFFER
[    36.390] (II) Initializing extension RECORD
[    36.390] (II) Initializing extension DPMS
[    36.390] (II) Initializing extension Present
[    36.390] (II) Initializing extension DRI3
[    36.390] (II) Initializing extension X-Resource
[    36.390] (II) Initializing extension XVideo
[    36.390] (II) Initializing extension XVideo-MotionCompensation
[    36.390] (II) Initializing extension GLX
[    36.400] (EE)
[    36.400] (EE) Backtrace:
[    36.400] (EE) 0: /usr/local/lib/xorg/Xorg (xorg_backtrace+0x3c) [0x43d0e6]
[    36.400] (EE) 1: /usr/local/lib/xorg/Xorg (0x400000+0x3d20a) [0x43d20a]
[    36.400] (EE) 2: /lib/libpthread.so.0 (0x7f4b4da90000+0x10610) [0x7f4b4daa0610]
[    36.400] (EE) 3: /lib/libc.so.6 (gsignal+0xb7) [0x7f4b4d3aa144]
[    36.401] (EE) 4: /lib/libc.so.6 (abort+0x121) [0x7f4b4d39a489]
[    36.401] (EE) 5: /lib/libc.so.6 (__assert_fail+0x0) [0x7f4b4d3a42ac]
[    36.401] (EE) 6: /lib/libc.so.6 (__assert_perror_fail+0x0) [0x7f4b4d3a42f0]
[    36.401] (EE) 7: /usr/local/lib/dri/vmwgfx_dri.so (0x7f4b47840000+0x43c9d4) [0x7f4b47c7c9d4]
[    36.401] (EE) 8: /usr/local/lib/dri/vmwgfx_dri.so (0x7f4b47840000+0x43ce30) [0x7f4b47c7ce30]
[    36.401] (EE) 9: /usr/local/lib/dri/vmwgfx_dri.so (0x7f4b47840000+0x43d3bf) [0x7f4b47c7d3bf]
[    36.401] (EE) 10: /usr/local/lib/dri/vmwgfx_dri.so (0x7f4b47840000+0x2a950c) [0x7f4b47ae950c]
[    36.401] (EE) 11: /usr/local/lib/dri/vmwgfx_dri.so (0x7f4b47840000+0x2c4b03) [0x7f4b47b04b03]
[    36.401] (EE) 12: /usr/local/lib/dri/vmwgfx_dri.so (0x7f4b47840000+0x34ba78) [0x7f4b47b8ba78]
[    36.401] (EE) 13: /usr/local/lib/dri/vmwgfx_dri.so (0x7f4b47840000+0x34babf) [0x7f4b47b8babf]
[    36.401] (EE) 14: /usr/local/lib/dri/vmwgfx_dri.so (0x7f4b47840000+0x69d935) [0x7f4b47edd935]
[    36.401] (EE) 15: /usr/local/lib/dri/vmwgfx_dri.so (0x7f4b47840000+0x69ef55) [0x7f4b47edef55]
[    36.401] (EE) 16: /usr/local/lib/dri/vmwgfx_dri.so (0x7f4b47840000+0x69f796) [0x7f4b47edf796]
[    36.401] (EE) 17: /usr/local/lib/xorg/modules/extensions/libglx.so (0x7f4b4d2d0000+0x11f02) [0x7f4b4d2e1f02]
[    36.401] (EE) 18: /usr/local/lib/xorg/modules/extensions/libglx.so (0x7f4b4d2d0000+0x12743) [0x7f4b4d2e2743]
[    36.401] (EE) 19: /usr/local/lib/xorg/Xorg (_CallCallbacks+0x28) [0x525095]
[    36.401] (EE) 20: /usr/local/lib/xorg/Xorg (0x400000+0x5c9c4) [0x45c9c4]
[    36.401] (EE) 21: /usr/local/lib/xorg/Xorg (InitExtensions+0x4d) [0x4e0b9e]
[    36.401] (EE) 22: /usr/local/lib/xorg/Xorg (0x400000+0x2e8db) [0x42e8db]
[    36.401] (EE) 23: /lib/libc.so.6 (__libc_start_main+0x154) [0x7f4b4d39acc2]
[    36.401] (EE) 24: /usr/local/lib/xorg/Xorg (_start+0x2a) [0x42f04a]
[    36.401] (EE)
[    36.401] (EE)
Fatal server error:
[    36.401] (EE) Caught signal 6 (Aborted). Server aborting
[    36.401] (EE)
[    36.401] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[    36.401] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    36.401] (EE)
[    36.405] (EE) Server terminated with error (1). Closing log file.

Dmesg looks OK for DRM:

Code: [Select]
[   27.358173] agpgart-intel 0000:00:00.0: Intel 440BX Chipset
[   27.360449] agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0x0
[   27.516626] [drm] DMA map mode: Using physical TTM page addresses.
[   27.516718] [drm] Capabilities:
[   27.516719] [drm]   Rect copy.
[   27.516719] [drm]   Cursor.
[   27.516720] [drm]   Cursor bypass.
[   27.516720] [drm]   Cursor bypass 2.
[   27.516720] [drm]   8bit emulation.
[   27.516721] [drm]   Alpha cursor.
[   27.516721] [drm]   3D.
[   27.516722] [drm]   Extended Fifo.
[   27.516722] [drm]   Multimon.
[   27.516722] [drm]   Pitchlock.
[   27.516723] [drm]   Irq mask.
[   27.516723] [drm]   Display Topology.
[   27.516723] [drm]   GMR.
[   27.516724] [drm]   Traces.
[   27.516724] [drm]   GMR2.
[   27.516724] [drm]   Screen Object 2.
[   27.516725] [drm]   Command Buffers.
[   27.516725] [drm]   Command Buffers 2.
[   27.516726] [drm]   Guest Backed Resources.
[   27.516726] [drm]   DX Features.
[   27.516727] [drm]   HP Command Queue.
[   27.516727] [drm] Capabilities2:
[   27.516727] [drm]   Grow oTable.
[   27.516728] [drm]   IntraSurface copy.
[   27.516728] [drm] Max GMR ids is 64
[   27.516729] [drm] Max number of GMR pages is 65536
[   27.516730] [drm] Max dedicated hypervisor surface memory is 0 kiB
[   27.516730] [drm] Maximum display memory size is 262144 kiB
[   27.516731] [drm] VRAM at 0xe8000000 size is 4096 kiB
[   27.516732] [drm] MMIO at 0xfe000000 size is 256 kiB
[   27.516734] [drm] global init.
[   27.521787] [TTM] Zone  kernel: Available graphics memory: 4084112 kiB
[   27.521789] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[   27.521791] [TTM] Initializing pool allocator
[   27.521797] [TTM] Initializing DMA pool allocator
[   27.528523] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   27.528525] [drm] No driver support for vblank timestamp query.
[   27.528906] [drm] Screen Target Display device initialized
[   27.528969] [drm] width 800
[   27.528977] [drm] height 480
[   27.528992] [drm] bpp 32
[   27.545673] [drm] Fifo max 0x00040000 min 0x00001000 cap 0x0000077f
[   27.635604] [drm] Using command buffers with DMA pool.
[   27.635757] [drm] DX: yes.
[   27.635758] [drm] Atomic: yes.
[   27.635759] [drm] SM4_1: yes.
[   27.868267] fbcon: svgadrmfb (fb0) is primary device
[   27.995187] Console: switching to colour frame buffer device 100x37
[   28.052137] [drm] Initialized vmwgfx 2.15.0 20180704 for 0000:00:0f.0 on minor 0

I recompiled open-vm-tools against the new libraries, but still no luck. Does something else need to be recompiled as well?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Latest X updates breaks vmware
« Reply #1 on: November 23, 2019, 12:11:11 AM »
Hmm.

Do things work directly on your hardware?

Can you revert only Xorg-7.7-3d to the previous version and try that?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Latest X updates breaks vmware
« Reply #2 on: November 23, 2019, 03:56:51 AM »
What was the assert? Your log shows vmwgfx_dri.so fired one, but nowhere is it shown what it was. Perhaps it went to stderr.
The only barriers that can stop you are the ones you create yourself.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Latest X updates breaks vmware
« Reply #3 on: November 23, 2019, 08:36:40 AM »
The mesa_test updates seem to work. I tested glxgears in mesa-demos and google-earth-pro flight simulator and both work as expected. Anything else I could / should try? No, I don't have TC installed on actual hardware, my host is running Slackware.

Here's what the offending section of the log looks like when it works:

Code: [Select]
[    26.574] (II) vmware(0): Initialized VMWARE_CTRL extension version 0.2
[    26.587] (II) vmware(0): Gallium3D XA version: 2.5.0.
[    26.587] (II) vmware(0): Path of drm device is "/dev/dri/card0".
[    26.587] (II) vmware(0): [DRI2] Setup complete
[    26.587] (II) vmware(0): [DRI2]   DRI driver: vmwgfx
[    26.717] (--) vmware(0): Render acceleration is enabled.
[    26.717] (==) vmware(0): Rendercheck mode is disabled.
[    26.717] (--) vmware(0): Direct rendering (DRI2 3D) is enabled.
[    26.717] (--) vmware(0): Direct rendering (DRI3 3D) is enabled.
[    26.717] (==) vmware(0): Direct presents are disabled.
[    26.717] (==) vmware(0): Hardware only presents are automatic per scanout.
[    26.717] (==) vmware(0): Backing store enabled
[    26.717] (==) vmware(0): Silken mouse enabled
[    26.718] (==) vmware(0): DPMS enabled
[    26.718] (II) Initializing extension Generic Event Extension
[    26.718] (II) Initializing extension SHAPE
[    26.718] (II) Initializing extension MIT-SHM
[    26.718] (II) Initializing extension XInputExtension
[    26.718] (II) Initializing extension XTEST
[    26.718] (II) Initializing extension BIG-REQUESTS
[    26.718] (II) Initializing extension SYNC
[    26.718] (II) Initializing extension XKEYBOARD
[    26.718] (II) Initializing extension XC-MISC
[    26.718] (II) Initializing extension XFIXES
[    26.718] (II) Initializing extension RENDER
[    26.718] (II) Initializing extension RANDR
[    26.718] (II) Initializing extension COMPOSITE
[    26.718] (II) Initializing extension DAMAGE
[    26.718] (II) Initializing extension MIT-SCREEN-SAVER
[    26.718] (II) Initializing extension DOUBLE-BUFFER
[    26.718] (II) Initializing extension RECORD
[    26.718] (II) Initializing extension DPMS
[    26.718] (II) Initializing extension Present
[    26.718] (II) Initializing extension DRI3
[    26.718] (II) Initializing extension X-Resource
[    26.718] (II) Initializing extension XVideo
[    26.718] (II) Initializing extension XVideo-MotionCompensation
[    26.718] (II) Initializing extension GLX
[    26.731] (II) AIGLX: Loaded and initialized vmwgfx
[    26.731] (II) GLX: Initialized DRI2 GL provider for screen 0
[    26.731] (II) Initializing extension XFree86-VidModeExtension
[    26.731] (II) Initializing extension XFree86-DGA
[    26.731] (II) Initializing extension XFree86-DRI
[    26.731] (II) Initializing extension DRI2
[    26.733] (II) vmware(0): Setting screen physical size to 211 x 158

It looks like AIGLX is where it was having a problem. This sounds familiar.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Latest X updates breaks vmware
« Reply #4 on: November 23, 2019, 08:45:29 AM »
I'd recompiled with -DNDEBUG, without -fno-exceptions and without "rm -f src/gallium/drivers/swr/rasterizer/jitter/gen_*" (required for a previous version of mesa) - it seems one or more of those fixed things.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Latest X updates breaks vmware
« Reply #5 on: November 23, 2019, 08:57:09 AM »
I'd guess the last one, but it's not unheard of for debug/nodebug to break or fix things. Also, if we're going to the trouble of recompiling X could we build it against openssl-1.1.1 instead of the version that is EOL in less than two months?
« Last Edit: November 23, 2019, 09:15:31 AM by andyj »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: Latest X updates breaks vmware
« Reply #6 on: November 24, 2019, 01:53:17 AM »
Xorg-7.7-3d recompiled and posted to tc-10.x x86 and x86_64 repos.

There's a plan to recompile xorg-server against openssl-1.1.1 - it was waiting on the next version of tc and/or next version of xorg-server