Page 1 of 1

VB crashes X and sends me back to login screen

Posted: 31. Jan 2018, 01:37
by jss
I've been struggling with this problem for a long time, on more than one distro, and finally I think I could trace the cause to VirtualBox.

Relevant logs:

Code: Select all

Jan 27 01:24:20 mypc kernel: [UFW BLOCK] IN=wlan0 OUT= MAC=xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx RC=192.168.1.2 DST=192.168.1.11 LEN=140 TOS=0x00 PREC=0x00 TTL=64 ID=35670 DF PROTO=UDP SPT=48747 DPT=514 LEN=120
Jan 27 01:24:24 mypc kernel: traps: VirtualBox[3896] general protection ip:7fc295706385 sp:7ffe3435f840 error:0 in libc-2.26.so[7fc2956cf000+1ae000]
Jan 27 01:24:24 mypc kernel: traps: VBoxCrWinCmd[8360] general protection ip:7ff4485c5385 sp:7ff3fa13ecd0 error:0 in libc-2.26.so[7ff44858e000+1ae000]
Jan 27 01:24:24 mypc bluetoothd[7222]: Endpoint unregistered: sender=:1.28 path=/MediaEndpoint/A2DPSource
Jan 27 01:24:24 mypc bluetoothd[7222]: Endpoint unregistered: sender=:1.28 path=/MediaEndpoint/A2DPSink
Jan 27 01:24:24 mypc kernel: traps: nspr-3[8325] trap int3 ip:7f573fd89074 sp:7f573c10da00 error:0
Jan 27 01:24:24 mypc kernel: udevd[763]: specified group 'kvm' unknown
Jan 27 01:24:24 mypc kernel: udevd[763]: RUN{builtin}: 'uaccess' unknown /usr/lib/udev/rules.d/73-seat-late.rules:15
Jan 27 01:24:24 mypc kernel: udevd[763]: specified group 'pcscd' unknown
Jan 27 01:24:25 mypc acpid[7016]: client 7198[0:0] has disconnected
Jan 27 01:24:25 mypc acpid[7016]: client 7198[0:0] has disconnected
xorg-session.log (sddm DM log):

Code: Select all

weather-Message: getting https://api.met.no/weatherapi/locationforecastlts/1.3/?lat=38.716702;lon=-9.133300;msl=45
VirtualBox: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
VirtualBox: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
wrapper-1.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
keepassxc: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
Gdk-Message: xfce4-terminal: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

Gdk-Message: thunderbird: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

wrapper-1.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
wrapper-1.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
VirtualBox: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
VirtualBox: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
wrapper-1.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
wrapper-1.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
wrapper-1.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
Gdk-Message: wrapper-2.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

xfce4-panel-Message: Plugin systray-6 has been automatically restarted after crash.
xfce4-panel-Message: Plugin xfce4-orageclock-plugin-5 has been automatically restarted after crash.
xfce4-panel-Message: Plugin weather-12 has been automatically restarted after crash.
...
and dmesg:

Code: Select all

[23021.086312] [UFW BLOCK] IN=wlan0 OUT= MAC=xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx SRC=192.168.1.2 DST=192.168.1.11 LEN=140 TOS=0x00 PREC=0x00 TTL=64 ID=35670 DF PROTO=UDP SPT=48747 DPT=514 LEN=120
[23025.339586] traps: VirtualBox[3896] general protection ip:7fc295706385 sp:7ffe3435f840 error:0 in libc-2.26.so[7fc2956cf000+1ae000]
[23025.340466] traps: VBoxCrWinCmd[8360] general protection ip:7ff4485c5385 sp:7ff3fa13ecd0 error:0 in libc-2.26.so[7ff44858e000+1ae000]
[23025.353611] elogind[3372]: Removed session c2.
[23025.355223] elogind[3372]: Failed to remove runtime directory /run/user/1000: Permission denied
[23025.414577] traps: nspr-3[8325] trap int3 ip:7f573fd89074 sp:7f573c10da00 error:0
[23025.501498] udevd[763]: specified group 'kvm' unknown
[23025.506661] udevd[763]: RUN{builtin}: 'uaccess' unknown /usr/lib/udev/rules.d/73-seat-late.rules:15
[23025.508662] udevd[763]: specified group 'pcscd' unknown
[23027.094822] elogind[3372]: New session c3 of user sddm.
[23050.190325] elogind[3372]: New session c4 of user root.
I already joined kvm and pcscd groups to no avail.

This has been happening either with ArtixLinux and Gentoo hosts, running Windows 10 guest, but already happened also with a Windows 7 guest that I tested, hoping to stop the problem.

I really like VB and I've been using it for many years, but now it's becoming very stressing, saving my work every minute, never knowing when VB kicks me out to the login screen. It's becoming unbearable to the point of making me start searching for another virtualizing solution.

I wonder if someone can help me solve this nightmare, it would be much appreciated.

EDIT: Should I file a bug?

TIA
jss

Re: VB crashes X and sends me back to login screen

Posted: 31. Jan 2018, 09:14
by andyp73
My crystal ball is foggy again today so some more information like Linux kernel version, VirtualBox version and log files (zipped) are needed.

-Andy.

Re: VB crashes X and sends me back to login screen

Posted: 31. Jan 2018, 09:48
by socratis
To add to what Andy said, is this something that's reproducible? What crashes and under what circumstances?

Re: VB crashes X and sends me back to login screen

Posted: 31. Jan 2018, 17:04
by jss
Thank you for helping.

I guess the whole logs won't tell more than the extracts that I posted, but you know better:

messages.log: https://paste.pound-python.org/show/IpC ... aSRkbyEzE/
dmesg: https://paste.pound-python.org/show/ycA ... rTtR7wMFV/
xorg-session.log: https://paste.pound-python.org/show/XuA ... 1zzS2GubE/

Code: Select all

#uname -a
Linux mypc 4.14.14-1-ck #1 SMP PREEMPT Wed Jan 17 20:39:14 UTC 2018 x86_64 GNU/Linux
But it also happens with 4.9.76 either Artix or Gentoo

VB version: 5.2.6 r120293 with extensions and guest-additions same version

It's not exactly reproducible, I've been trying the whole morning and couldn't. But it happens, I would say always, when the guest VB window has focus, meaning, when I'm working on the guest. I don't think it ever happened with VB in the background.

Looking at the logs I've posted before, the X server crashes bringing down every graphic application using it, and I'm presented with the DM login screen, sddm in this instance. I've already tried with other DM's (lightdm, ...) and even just with startx, to no avail. I guess this rules out sddm.

Rgds,
jss

Re: VB crashes X and sends me back to login screen

Posted: 31. Jan 2018, 17:44
by socratis
Please attach the ZIPPED logs here, locally. Not a lot of people will go to 3rd party sites...

Re: VB crashes X and sends me back to login screen

Posted: 1. Feb 2018, 00:25
by jss
pound-python.org is one of the services advised by Gentoo for using the wgetpaste application.

People can check here, in case they trust the third party gentoo site :wink:
https://wiki.gentoo.org/wiki/Wgetpaste

Anyway, files are attached.
everything.log.zip
(30.43 KiB) Downloaded 5 times
dmesg.zip
(38.24 KiB) Downloaded 6 times
xorg-session.log.zip
(2.27 KiB) Downloaded 5 times
Rgds
jss

Re: VB crashes X and sends me back to login screen

Posted: 2. Feb 2018, 16:46
by ChrisMW
I have had this once, at the same I had other clients even not get that far. I would suggest to install the 5.2.7 guest additions and see if that helps..... It did with me

Re: VB crashes X and sends me back to login screen

Posted: 5. Feb 2018, 17:58
by jss
ChrisMW wrote:I have had this once, at the same I had other clients even not get that far. I would suggest to install the 5.2.7 guest additions and see if that helps..... It did with me
Thank you ChrisMW for helping.

I'm now on 5.2.6 but I'll try your suggestion. I guess it won't hurt to put guest additions one minor revision ahead.

Anyway, I'm now evaluating the cost/benefit of migrating the whole thing to kvm-qemu.