VirtualBox

Opened 5 years ago

Closed 5 years ago

#19357 closed defect (fixed)

VBoxClient crashes on Luuntu 14.04 after updating from 6.1.2 to 6.1.4 (fixed in 6.1.6)

Reported by: Gabri74 Owned by: Frank Batschulat (Oracle)
Component: guest additions Version: VirtualBox 6.1.4
Keywords: crash guest additions 6.1.4 ubuntu 14.04 XQueryExtension VBoxClient Cc:
Guest type: Linux Host type: all

Description

After updating guest additions from 6.1.2 to 6.1.4 VboxClient will always crash at boot, causing the system crash report to open with the message:

VBoxClient crashed with SIGSEGV in XQueryExtension()

Host: Ubuntu 19.10 and Windows 10 Guest: Lubuntu 14.04

Attachments (3)

lubuntu1404-2020-02-28-12-04-09.log (120.4 KB ) - added by Gabri74 5 years ago.
vbox log
_opt_VBoxGuestAdditions-6.1.4_bin_VBoxClient.1000.crash (140.0 KB ) - added by Gabri74 5 years ago.
Lubuntu crash report
VirtualBox-6.1.4-VBoxClient-vmsvga-x11-crash.patch (1.0 KB ) - added by hansg 5 years ago.
Patch fixing the crash

Download all attachments as: .zip

Change History (21)

by Gabri74, 5 years ago

vbox log

by Gabri74, 5 years ago

Lubuntu crash report

comment:1 by Gabri74, 5 years ago

Only cut&past integration seems affected, all other guest features seem to work..

Running VBoxClient istances after crash:

user      1890  0.0  0.0  54360   372 ?        S    12:03   0:00 /usr/bin/VBoxClient --display
user      1891  0.0  0.0  54508  3564 ?        S    12:03   0:00 /usr/bin/VBoxClient --display
user      1897  0.0  0.0  54360   376 ?        S    12:03   0:00 /usr/bin/VBoxClient --seamless
user      1898  0.0  0.0 186612  3032 ?        Sl   12:03   0:00 /usr/bin/VBoxClient --seamless
user      1906  0.0  0.0  54360   376 ?        S    12:03   0:00 /usr/bin/VBoxClient --draganddrop
user      1907  0.1  0.0 187128  3000 ?        Sl   12:03   0:01 /usr/bin/VBoxClient --draganddrop
user      1913  0.0  0.0  54360  1504 ?        S    12:03   0:00 /usr/bin/VBoxClient --vmsvga-x11
root      2523  0.0  0.0 371428  2888 ?        Sl   12:04   0:00 /usr/sbin/VBoxService --pidfile /var/run/vboxadd-service.sh

comment:2 by Frank Batschulat (Oracle), 5 years ago

similar report for 6.1.4 here with a ArchLinux guest:

https://bbs.archlinux.org/viewtopic.php?id=253089

in reply to:  1 comment:3 by Frank Batschulat (Oracle), 5 years ago

Replying to Gabri74:

Only cut&past integration seems affected, all other guest features seem to work..

That one, the broken cut&paste, is a different bug:

Ticket #19336 (new defect) Linux guest: shared clipboard doesn't work (on fresh VirtualBox-6.1.4-136177)

comment:4 by Gabri74, 5 years ago

Manually downgrading to 6.1.2 solves the problem

comment:5 by nixuser, 5 years ago

Same problem has been reported against Fedora 31, Fedora Rawhide and Fedora 32 Beta branch.

https://bugzilla.redhat.com/show_bug.cgi?id=1806778

comment:6 by sergiomb, 5 years ago

this happens only with Settings -> display -> graphics controller -> VBoxSVGA ?

comment:7 by nixuser, 5 years ago

@sergiomb also happens with VBoxVGA.

VMSVGA fixes the crashing problem [for me] but doesn't work for other reasons. I have never managed to get VMSVGA to work on Fedora, I am stuck with a text boot (which I don't care about really) but also an 800x600 display which is of course unusable these days.

comment:8 by nixuser, 5 years ago

@sergiomb I spoke too soon, I am seeing the crashes in VMSVGA mode now as well.

in reply to:  5 comment:9 by Frank Batschulat (Oracle), 5 years ago

Replying to nixuser:

Same problem has been reported against Fedora 31, Fedora Rawhide and Fedora 32 Beta branch.

https://bugzilla.redhat.com/show_bug.cgi?id=1806778

For the record, the reported stack trace in there is:

Feb 25 08:12:28 luks systemd[1]: Started Process Core Dump (PID 1478/UID 0).
Feb 25 08:12:29 luks abrt-notification[1480]: Process 1093 (VBoxClient) crashed in XQueryExtension()
Feb 25 08:12:30 luks systemd-coredump[1479]: Process 1473 (VBoxClient) of user 1000 dumped core.
                                             
Stack trace of thread 1473:
#0  0x00007f99e89cc04f XQueryExtension (libX11.so.6 + 0x3d04f)
#1  0x00007f99e89bf4a7 XInitExtension (libX11.so.6 + 0x304a7)
#2  0x00007f99e890e6d1 XextAddDisplay (libXext.so.6 + 0xe6d1)
#3  0x00007f99e8984a50 XRRFindDisplay.part.0 (libXrandr.so.2 + 0x2a50)
#4  0x00007f99e89851d8 XRRQueryExtension (libXrandr.so.2 + 0x31d8)
#5  0x00000000004090da _ZL3runPP11VBCLSERVICEb (VBoxClient + 0x90da)
#6  0x00000000004076ec main (VBoxClient + 0x76ec)
#7  0x00007f99e871c042 __libc_start_main (libc.so.6 + 0x27042)
#8  0x00000000004078de _start (VBoxClient + 0x78de)

comment:10 by Frank Batschulat (Oracle), 5 years ago

Keywords: XQueryExtension VBoxClient added

comment:11 by Konstantin Pelepelin, 5 years ago

I've got a similar crash on VirtualBox 6.1.4 Windows host, VBoxSVGA, LUbuntu 18.04 guest (freshly installed), kernel 5.3 ("hwe"). dmesg log was full of repetitive crash lines regarding VboxClient and libX11. Shared clipboard and guest auto-resize did not work. Re-installed 6.0.18 and re-installed guest additions, everything is working.

comment:12 by Willie, 5 years ago

Can reproduce in 6.1.4

Reverted to version 6.1.2 to solve this issue for now.

comment:13 by hansg, 5 years ago

I've just debugged this and it clearly is a bug introduced in some of the changes in 6.1.4, the "VBoxClient --vmsvga-x11" helper process code now has this code:

VirtualBox-6.1.4/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp: x11Connect():

pContext->pDisplay = XOpenDisplay(NULL); if (pContext->pDisplay == NULL)

return;

if(!XQueryExtension(pContext->pDisplay, "VMWARE_CTRL",

&pContext->hVMWMajor, &dummy, &dummy))

{

XCloseDisplay(pContext->pDisplay); pContext->pDisplay = NULL;

}

if (!XRRQueryExtension(pContext->pDisplay, &pContext->hRandREventBase, &pCon {

XCloseDisplay(pContext->pDisplay); pContext->pDisplay = NULL;

}

Notice how the code happily continues after closing the display and setting pContext->pDisplay = NULL when the query for the "VMWARE_CTRL" extension fails; and this will fail when using VboxSVGA as virtual VGA adapter which was the default for a long time, as well as when running a Wayland based desktop and recent GNOME3 versions run as Wayland compositor (rather then on top of X11) by default now, so this is impacting a lot of users.

The fix is to add a return statement after all the pContext->pDisplay = NULL; lines in the x11Connect() function.

by hansg, 5 years ago

Patch fixing the crash

comment:14 by Frank Batschulat (Oracle), 5 years ago

this has been fixed in trunc already in revision r136295 and needs backporting to the 6.1 branch.

Version 0, edited 5 years ago by Frank Batschulat (Oracle) (next)

comment:15 by Frank Batschulat (Oracle), 5 years ago

Owner: set to Frank Batschulat (Oracle)
Status: newaccepted

comment:16 by Frank Batschulat (Oracle), 5 years ago

Oracle bugID: 30964278

comment:17 by Frank Batschulat (Oracle), 5 years ago

comment:18 by Frank Batschulat (Oracle), 5 years ago

Resolution: fixed
Status: acceptedclosed
Summary: VBoxClient crashes on Luuntu 14.04 after updating from 6.1.2 to 6.1.4VBoxClient crashes on Luuntu 14.04 after updating from 6.1.2 to 6.1.4 (fixed in 6.1.6)

this has been fixed in public release 6.1.6

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette