[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1112670: xserver-xorg-video-vmware: Fatal xserver error in virtualbox vm



On Sun, 31 Aug 2025 21:03:39 +0200 luca pedrielli <luca.pedrielli@gmail.com> wrote:

Maybe this log is of greater help:

[     7.866] (EE) Backtrace:
[     7.871] (EE) 0: /usr/lib/xorg/Xorg (?+0x0) [0x563ef7edaf6d]
[     7.887] (EE) 1: /lib/x86_64-linux-gnu/libc.so.6 (?+0x0) [0x7f09e7168df0]
[     7.887] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (__memset_avx2_unaligned_erms+0x49) [0x7f09e728de09]
[     7.887] (EE) 3: /usr/lib/xorg/modules/drivers/vmware_drv.so (?+0x0) [0x7f09e77d360c]
[     7.888] (EE) 4: /usr/lib/xorg/Xorg (AddScreen+0xdb) [0x563ef7d5dedb]
[     7.888] (EE) 5: /usr/lib/xorg/Xorg (InitOutput+0x27b) [0x563ef7da1a5b]
[     7.888] (EE) 6: /usr/lib/xorg/Xorg (?+0x0) [0x563ef7d61ace]
[     7.888] (EE) 7: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_call_main+0x78) [0x7f09e7152ca8]
[     7.888] (EE) 8: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main_alias_2+0x85) [0x7f09e7152d65]
[     7.888] (EE) 9: /usr/lib/xorg/Xorg (_start+0x21) [0x563ef7d4a641]
[     7.888] (EE)
[     7.888] (EE) Segmentation fault at address 0x0


Hello,
in above backtrace the frame in vmware_drv.so seems to be
in VMWAREScreenInit line 1413 with calling "memset(pVMWARE->FbBase, ..." [2].

But before the mapping in VMWAREMapMem failed [1],
due to the message "Unable to map frame buffer BAR. Invalid argument (22)".

Therefore pVMWARE->FbBase seems to be a NULL pointer.
And a check if pVMWARE->FbBase is filled before the memset may avoid the crash.

This location leads to a ticket in archlinux, which shows a similar backtrace,
and an upstream ticket [3].

Kind regards,
Bernhard


[1]
https://sources.debian.org/src/xserver-xorg-video-vmware/1%3A13.4.0-2/src/vmware.c#L743
https://gitlab.freedesktop.org/xorg/driver/xf86-video-vmware/-/blob/master/src/vmware.c#L742-L748
    743        xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
    744                   "Unable to map frame buffer BAR. %s (%d)\n",


[2]
https://sources.debian.org/src/xserver-xorg-video-vmware/1%3A13.4.0-2/src/vmware.c#L1413
https://gitlab.freedesktop.org/xorg/driver/xf86-video-vmware/-/blob/master/src/vmware.c#L1413
    1413     memset(pVMWARE->FbBase, 0, pVMWARE->FbSize);


[3]
https://gitlab.archlinux.org/archlinux/packaging/packages/xf86-video-vmware/-/issues/3#note_275921
https://gitlab.freedesktop.org/xorg/driver/xf86-video-vmware/-/issues/12


Reply to: