After upgrade to app-emulation/virtualbox-6.1.36 virtualbox is broken due to an invalid pointer exception, when starting any vm. Reproducible: Always Steps to Reproduce: 1. VBoxHeadless -s win10 Actual Results: VM can't start: Oracle VM VirtualBox Headless Interface 6.1.36_Gentoo (C) 2008-2022 Oracle Corporation All rights reserved. Starting virtual machine: Operation failed: NS_ERROR_FAILURE Error: failed to start machine. Error message: The configuration constructor in main failed due to a COM error. Check the release log of the VM for further details. (VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR) Expected Results: VM starts ~/.VirtualBox/VBoxSVC.log: 00:00:00.150328 nspr-3 ERROR [COM]: aRC=NS_ERROR_INVALID_POINTER (0x80004003) aIID={85632c68-b5bb-4316-a900-5eb28d3413df} aComponent={SessionMachine} aText={Output argument aValEcx points to invalid memory location (0000000000000001)}, preserve=false aResultDetail=0 ~/VirtualBox\ VMs/win10/Logs/VBox.log: 00016d02acfd41ef 000000165 00:00:00.165377 EMT-0 MAIN_CONSOLE AssertLogRel /var/tmp/portage/app-emulation/virtualbox-6.1.36/work/VirtualBox-6.1.36/src/VBox/Main/src-client/ConsoleImpl2.cpp(912) int Console::i_configConstructorInner(PUVM, PVM, util::AutoWriteLock*): !FAILED(hrc) 00016d02acfd6c93 000000165 00:00:00.165380 EMT-0 MAIN_CONSOLE hrc=NS_ERROR_INVALID_POINTER 00016d02ad02c452 000000165 00:00:00.165502 EMT-0 CFGM Constructor failed with rc=VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR pfnCFGMConstructor=00007f8e9577b960 00016d02cb37fc45 000000340 00:00:00.340667 VMPwrUp VMSetError: /var/tmp/portage/app-emulation/virtualbox-6.1.36/work/VirtualBox-6.1.36/src/VBox/VMM/VMMR3/VM.cpp(321) int VMR3Create(uint32_t, PCVMM2USERMETHODS, PFNVMATERROR, void*, PFNCFGMCONSTRUCTOR, void*, VM**, UVM**); rc=VERR_MAIN_CONFIG_CONSTRUCTOR_CO M_ERROR 00016d02cb38655d 000000340 00:00:00.340674 VMPwrUp VMSetError: The configuration constructor in main failed due to a COM error. Check the release log of the VM for further details. 00016d02cb420e6c 000000340 00:00:00.340893 VMPwrUp MAIN ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={The configuration constructor in main failed due to a COM error. Check the release log of the VM for further details. (VERR_MAIN_CON FIG_CONSTRUCTOR_COM_ERROR)}, preserve=false aResultDetail=-6400 /var/tmp/portage/a...t/ConsoleImpl2.cpp(905-920): /* Host CPUID leaf overrides. */ for (uint32_t iOrdinal = 0; iOrdinal < _4K; iOrdinal++) { ULONG uLeaf, uSubLeaf, uEax, uEbx, uEcx, uEdx; hrc = pMachine->GetCPUIDLeafByOrdinal(iOrdinal, &uLeaf, &uSubLeaf, &uEax, &uEbx, &uEcx, &uEdx); if (hrc == E_INVALIDARG) break; H(); PCFGMNODE pLeaf; InsertConfigNode(pCPUM, Utf8StrFmt("HostCPUID/%RX32", uLeaf).c_str(), &pLeaf); /** @todo Figure out how to tell the VMM about uSubLeaf */ InsertConfigInteger(pLeaf, "eax", uEax); InsertConfigInteger(pLeaf, "ebx", uEbx); InsertConfigInteger(pLeaf, "ecx", uEcx); InsertConfigInteger(pLeaf, "edx", uEdx); } /var/tmp/portage/a...er/MachineImpl.cpp(2041-2066): HRESULT Machine::getCPUIDLeafByOrdinal(ULONG aOrdinal, ULONG *aIdx, ULONG *aSubIdx, ULONG *aValEax, ULONG *aValEbx, ULONG *aValEcx, ULONG *aValEdx) { AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); if (aOrdinal < mHWData->mCpuIdLeafList.size()) { for (settings::CpuIdLeafsList::const_iterator it = mHWData->mCpuIdLeafList.begin(); it != mHWData->mCpuIdLeafList.end(); ++it) { if (aOrdinal == 0) { const settings::CpuIdLeaf &rLeaf= *it; *aIdx = rLeaf.idx; *aSubIdx = rLeaf.idxSub; *aValEax = rLeaf.uEax; *aValEbx = rLeaf.uEbx; *aValEcx = rLeaf.uEcx; *aValEdx = rLeaf.uEdx; return S_OK; } aOrdinal--; } } return E_INVALIDARG; }
app-emulation/virtualbox-6.1.34-r6 seems to work, have to completely revert to be sure
At is defnitely an issue with the vbox version, as after downgrading vbox 6.1.34-r6 and vbox extpack to 6.1.34 vms are working again
Can you make sure you are using the latest kernel modules? virtualbox 6.1.36 cannot start virtual machines with virtualbox 6.1.34 kernel modules. Try `dmesg | grep vboxdrv` and see if you get a line like this: [ 7.756812] vboxdrv: Successfully loaded version 6.1.36 r152435 (interface 0x00320000 Also please attach the output of `emerge --info`
cat /sys/module/vbox*/version 6.1.36 r152435 (0x00320000) 6.1.36 r152435 ((0xA2CDe001U)) 6.1.36 r152435 ((0xA2CDe001U)) Strangely with this modules it works using virtualbox 6.1.34
Portage 3.0.30 (python 3.10.5-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.3.0, glibc-2.35-r8, 5.18.15-gentoo x86_64) ================================================================= System uname: Linux-5.18.15-gentoo-x86_64-Intel-R-_Core-TM-_i7-4910MQ_CPU_@_2.90GHz-with-glibc2.35 KiB Mem: 32755780 total, 15149916 free KiB Swap: 33554428 total, 32771580 free Timestamp of repository gentoo: Sat, 06 Aug 2022 09:15:01 +0000 Head commit of repository gentoo: 99d0d800f953d1317a7119e9283296d0544a9b51 Timestamp of repository HomeAssistantRepository: Tue, 02 Aug 2022 04:17:54 +0000 Head commit of repository HomeAssistantRepository: a5b562d07c7116d5af9e84f0fd22f95b465df99a Timestamp of repository dlang: Thu, 28 Jul 2022 09:01:37 +0000 Head commit of repository dlang: 384d2c5ea27662a007f270988f2d64f0d490dcc9 Timestamp of repository guru: Tue, 02 Aug 2022 12:01:53 +0000 Head commit of repository guru: de6b4cd8dc0cee9419091ee9e5c03ed06b9b95f3 Timestamp of repository raiagent: Wed, 03 Aug 2022 06:16:51 +0000 Head commit of repository raiagent: 27473e7c4517e88de186b625defd8f4c02dca7a7 Timestamp of repository robert7k: Thu, 04 Aug 2022 07:46:46 +0000 Head commit of repository robert7k: c05155c95a72f1ab998863de6c94abf93e43be89 Timestamp of repository seden: Tue, 02 Aug 2022 04:17:29 +0000 Head commit of repository seden: 6fe4994bec20b0a969221a9ed194d89920adf1fa sh bash 5.1_p16-r1 ld GNU ld (Gentoo 2.38 p4) 2.38 ccache version 4.5.1 [enabled] app-misc/pax-utils: 1.3.4::gentoo app-shells/bash: 5.1_p16-r1::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.1-r3::gentoo dev-lang/python: 3.10.5::gentoo dev-lang/rust: 1.62.1::gentoo dev-util/ccache: 4.5.1::gentoo dev-util/cmake: 3.22.4::gentoo dev-util/meson: 0.62.2::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/openrc: 0.45.2::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.13-r2::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.38-r2::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 14.0.6-r1::gentoo sys-devel/gcc: 11.3.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 14.0.6::gentoo sys-devel/llvm: 14.0.6-r2::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.15-r3::gentoo (virtual/os-headers) sys-libs/glibc: 2.35-r8::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 My-new-local-Repo location: /usr/local/portage2 masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=haswell -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=haswell" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=haswell -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=haswell" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="-j4" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=haswell -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=haswell" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=haswell -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -maes -mpclmul -mpopcnt -mabm -mfma -mbmi -mbmi2 -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=haswell" GENTOO_MIRRORS="http://linux.mathematik.tu-darmstadt.de/pub/linux/distributions/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LANG="de_DE.utf8" LC_ALL="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de de_DE" MAKEOPTS="-j10 --load-average 20" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo ccache cdda cdr cli colord crypt cups d3d9 dbus declarative device-mapper dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gphoto2 gpm gtk gui iconv icu ipv6 java jpeg kde kerberos kwallet lcms libglvnd libnotify libtirpc lvm mad mng mp3 mp4 mpeg multilib ncurses net45 networkmanager nfs nfsdcld nfsidmap nfsv4 nfsv41 nls nptl ntfs ogg opengl openmp osmesa pam pango pcre pdf pim plasma pm-utils png policykit ppds pulseaudio qml qt5 raw readline rtmp samba scanner screencast sdl seccomp semantic-desktop sftp spell split-usr ssl startup-notification svg tiff truetype udev udisks unicode upower usb uxa vaapi vdpau vkd3d vorbis vpx vulkan wayland widgets wxwidgets x264 xa xattr xcb xinerama xml xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel usb-audio bt87x" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias authn_alias authn_core authz_core unixd socache_shmcb access_compat slotmem_shm" CALLIGRA_FEATURES="author braindump flow karbon kexi krita plan sheets stage words" CAMERAS="adc65 agfa-cl20 aox barbie canon casio clicksmart310 digigr8 digita dimera directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak konica largan lg_gsm mars minolta mustek panasonic pccam300 pccam600 polaroid ptp2 ricoh samsung sierra sipix smal sonix sonydscf1 sonydscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-32 efi-64 multiboot pc emu" INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia intel i965 nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Ok I can verify, with the modified ebuild from the pull request, virtualbox 6.1.36 works.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b0dfde061d0197475629f95aa5d575b56c919e8 commit 6b0dfde061d0197475629f95aa5d575b56c919e8 Author: Viorel Munteanu <ceamac.paragon@gmail.com> AuthorDate: 2022-08-10 15:45:43 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-08-13 19:23:14 +0000 app-emulation/virtualbox: filter flags With some combinations of CFLAGS/CXXFLAGS, the VM doesn't start Bug: https://bugs.gentoo.org/856811 Closes: https://bugs.gentoo.org/864274 Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/26814 Signed-off-by: Sam James <sam@gentoo.org> .../virtualbox/virtualbox-6.1.36-r1.ebuild | 648 +++++++++++++++++++++ 1 file changed, 648 insertions(+)