Bug 213019 - emulators/virtualbox-ose: VirtualBox 5.1.6 (110634) shut down hang
Summary: emulators/virtualbox-ose: VirtualBox 5.1.6 (110634) shut down hang
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Walter Schwarzenfeld
Depends on: 234929
  Show dependency treegraph
Reported: 2016-09-27 12:04 UTC by tony01
Modified: 2019-08-27 12:20 UTC (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description tony01 2016-09-27 12:04:50 UTC
a VM such as windows or ubuntu that has a graphical desktop will not terminate the process using the power button inside the VM.

If the VM does not have a graphical desktop suck as ubuntu server then it will shutdown from a terminal inside the VM fine.

it seems the issue is with VNC. attached is a portion of a trace.

Thread 1 (LWP 100934 of process 2646):
#0  0x000000080083913c in ?? () from /lib/libthr.so.3
#1  0x000000080082f246 in ?? () from /lib/libthr.so.3
#2  0x000000080083759e in ?? () from /lib/libthr.so.3
#3  0x0000000807546d6b in rfbClientConnectionGone () from /usr/local/lib/libvncserver.so.0
#4  0x0000000807545b70 in rfbShutdownServer () from /usr/local/lib/libvncserver.so.0
#5  0x0000000807335f77 in ?? () from /usr/local/lib/virtualbox/ExtensionPacks/VNC/freebsd.amd64/VBoxVNC.so
#6  0x00000008060e0ebd in ConsoleVRDPServer::Stop (this=0x801e09400)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.6/src/VBox/Main/src-client/ConsoleVRDPServer.cpp:3015
#7  0x00000008060864b2 in Console::i_powerDown (this=0x801d14c00, aProgress=0x810032f20)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.6/src/VBox/Main/src-client/ConsoleImpl.cpp:7632
#8  0x00000008060a95f7 in Console::i_powerDownThreadTask (pTask=0x810033100)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.6/src/VBox/Main/src-client/ConsoleImpl.cpp:10054
#9  0x000000080606d7bc in ThreadTask::taskHandlerThreadProc (pvUser=0x810033100)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.6/src/VBox/Main/src-all/ThreadTask.cpp:123
---Type <return> to continue, or q <return> to quit---
#10 0x00000008020fe1cc in rtThreadMain (pThread=0x801c2b000, NativeThread=<optimized out>, pszThreadName=0x0)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.6/src/VBox/Runtime/common/misc/thread.cpp:717
#11 0x000000080217ae2e in rtThreadNativeMain (pvArgs=0x801c2b000)
    at /usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.1.6/src/VBox/Runtime/r3/posix/thread-posix.cpp:327
#12 0x000000080082d855 in ?? () from /lib/libthr.so.3
#13 0x0000000000000000 in ?? ()
Comment 1 tony01 2016-09-27 17:22:23 UTC
if you disconnect from VNC before OS sends the ACPI command "power off" then it will power off fine. if you do not disconect in time the process will hang.
Comment 2 VVD 2016-09-27 22:41:09 UTC
I see same issue on my 5 servers.
Hosts: 10.3-p7 amd64, virtualbox 4.3.38 and 5.0.26.
Guest any: FreeBSD 10.3 amd64, CentOS/RHEL/Oracle Linux 6.x amd64, Win7/2008 32/64bit.

Issue was appeared after update net/libvncserver from 0.9.9 to 0.9.10: https://svnweb.freebsd.org/ports?view=revision&revision=417416.
Comment 3 Ruslan Makhmatkhanov freebsd_committer 2016-09-28 11:18:35 UTC
Assign to maintainer
Comment 4 tony01 2016-09-28 15:29:17 UTC
after downgrading libvncserver.so.0  as vvd suggested the problem will go away.
so it seems that the problem is with net/libvncserver
Comment 5 VVD 2017-01-23 11:16:26 UTC
tony, port net/libvncserver was updated to version 0.9.11 - can you test it?
Comment 6 tony01 2017-01-23 16:05:52 UTC
(In reply to vvd from comment #5)
seems to have the same issue.

you still need to disconnect from VNC before OS sends the ACPI command "power off" then it will power off fine. if you do not disconnect in time the process will hang.
Comment 7 fua@gmx.net 2017-05-31 18:51:09 UTC
I have the same issue with VirtualBox 5.1.18 r114002 and lbvncserver 0.9.11 on FreeBsd 11.0 p09
Comment 8 Walter Schwarzenfeld freebsd_triage 2018-01-12 11:50:27 UTC
We have 5.2.4. Overcome by events?
Comment 9 VVD 2018-01-12 12:05:16 UTC
(In reply to w.schwarzenfeld from comment #8)
> We have 5.2.4. Overcome by events?
No. Bug still exist with all versions of VirtaulBox and net/libvncserver 0.9.9+.
Comment 10 devnull 2018-05-09 10:02:40 UTC
I am seeing this issue also. I thought it was a FreeBSD bug (I raised: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228089) but it's obviously a VirtualBox related.
Comment 11 VVD 2019-01-31 07:32:41 UTC
(In reply to devnull from comment #10)
Fixed after update libvncserver https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234929
Comment 12 Walter Schwarzenfeld freebsd_triage 2019-08-27 00:39:42 UTC
Close here , see comment11.

*** This bug has been marked as a duplicate of bug 234929 ***
Comment 13 VVD 2019-08-27 10:03:41 UTC
It isn't Duplicate, it's Overcome By Events.