Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644142 - app-emulation/virtualbox-5: INTNET-RECV[...] general protection ... in VBoxRT.so
Summary: app-emulation/virtualbox-5: INTNET-RECV[...] general protection ... in VBoxRT.so
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-10 17:51 UTC by Ervin Peters
Modified: 2019-05-12 16:42 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ervin Peters 2018-01-10 17:51:45 UTC
For a while I noticed random crashes of virtualbox, running a win 10 client on a mostly stable amd64 - gentoo - gnome - profile 17 - system.
Starting with Virtualbox-5.1.30 I tried all the ~amd64 virtualboxes (5.2.2, 5.2.4) and recognized similar behaviour.
The crashes happened more often after upgrading the kernel to 4.12.12 and 4.12.14. and mostly when the windows client checks for, downloads and installs updates.
$ dmesg shows this:
[  402.047247] ------------[ cut here ]------------
[  402.047254] WARNING: CPU: 0 PID: 137 at fs/direct-io.c:293 dio_complete+0xcf/0x16b
[  402.047254] Modules linked in: snd_usb_audio uvcvideo snd_usbmidi_lib hid_microsoft videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core snd_rawmidi snd_seq_device snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic x86_pkg_temp_thermal intel_powerclamp snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm snd_timer snd i2c_i801 r8168(O) xhci_pci xhci_hcd intel_pch_thermal thermal fan acpi_pad vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) nct6775 hwmon_vid coretemp
[  402.047272] CPU: 0 PID: 137 Comm: kworker/0:2 Tainted: G           O    4.14.12-gentoo #1
[  402.047273] Hardware name: MSI MS-7971/Z170-A PRO (MS-7971), BIOS 1.H0 12/21/2016
[  402.047275] Workqueue: dio/sda4 dio_aio_complete_work
[  402.047276] task: ffff88045cc9a500 task.stack: ffffc900009bc000
[  402.047278] RIP: 0010:dio_complete+0xcf/0x16b
[  402.047279] RSP: 0018:ffffc900009bfe58 EFLAGS: 00050286
[  402.047280] RAX: 00000000fffffff0 RBX: 0000000000100000 RCX: ffffea0001a2ec80
[  402.047281] RDX: ffff88046ec23708 RSI: ffffffff820c01f6 RDI: ffffffff8210ae77
[  402.047282] RBP: ffff88038cb6c580 R08: 0000000000000007 R09: ffffea0001a2ec60
[  402.047282] R10: ffff8800859e4fa0 R11: 0000000000000000 R12: 0000000000100000
[  402.047283] R13: 00000001d6f00000 R14: 0000000000000003 R15: ffffe8ffffc15400
[  402.047284] FS:  0000000000000000(0000) GS:ffff88046ec00000(0000) knlGS:0000000000000000
[  402.047285] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  402.047286] CR2: ffffa58448a0d858 CR3: 000000000220a005 CR4: 00000000003626f0
[  402.047286] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  402.047287] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  402.047288] Call Trace:
[  402.047291]  process_one_work+0x18d/0x306
[  402.047293]  worker_thread+0x1de/0x2a6
[  402.047295]  ? rescuer_thread+0x272/0x272
[  402.047296]  kthread+0x115/0x11d
[  402.047297]  ? kthread_create_on_node+0x3a/0x3a
[  402.047300]  ret_from_fork+0x1f/0x30
[  402.047301] Code: 01 75 2a 48 8b 45 18 48 8b 78 30 48 83 7f 58 00 74 1b 49 8d 54 1d ff 4c 89 ee 48 c1 fe 0c 48 c1 fa 0c e8 06 ea f9 ff 85 c0 74 02 <0f> ff f6 45 00 08 75 1e 48 8b 7d 18 f0 ff 8f 44 01 00 00 75 11 
[  402.047321] ---[ end trace 63f411ef2c8f1cd3 ]---
[  608.166613] traps: INTNET-RECV[1344] general protection ip:7fb126b917a3 sp:7fb0aaf2bc18 error:0 in VBoxRT.so[7fb126afb000+26f000]
[  608.303393] device eth0 left promiscuous mode
[  608.307655] vboxnetflt: 0 out of 64810 packets were not sent (directed to host)


After thinking further, I remember that before the crashes I increased the number of cpu shown to the client to 2. After I set I back to 1 the windows client in virtualbox-5.1.30 runs again for hours without any crash.

I assume there is a multiprocessor issue related to the network stack or the virtualbox io system.

Also it might maybe be influenced by the Realtek r8168 kernel network module...

--------
muli ~ # emerge --info
Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-6.4.0, glibc-2.25-r9, 4.14.12-gentoo x86_64)
=================================================================
System uname: Linux-4.14.12-gentoo-x86_64-Intel-R-_Core-TM-_i5-6600K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Wed, 10 Jan 2018 08:15:01 +0000
Head commit of repository gentoo: df83291b6825f78e26c5b8b38df49bc1546e43a7
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://woodstok.ervnet.local/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

flow
    location: /var/lib/layman/flow
    masters: gentoo
    priority: 50

printer-drivers
    location: /var/lib/layman/printer-drivers
    masters: gentoo
    priority: 50

muli
    location: /usr/local/portage
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /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="-march=skylake -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en en_GB ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
USE="3ds 64bit X Xaw3d a52 aac ace acl acpi addns aften aim alsa amd64 amr animgif apache2 apng applet archive asf aspell assistant audio auto-completion bash-completion bazaar bdf berkdb blender bogofilter branding builder bzip2 cairo cdda cdparanoia cdr charset chipcard chm cjk cli colord context contrib corefonts crypt css cups curl cvs cvsgraph cxx d darcs dbi dbus deprecated detex devhelp dia discouraged djvu dmx doc dri drm dts dv dvd dvdnav dvdr dvi dynamicplugin eds emboss emf enca encode escreen evo exif extensions extra extras fam fastcgi fat fax fbcon ffmpeg firefox flac flash fontconfig fontforge fonts foomaticdb fortran fping fpx ftp fuse games gcj gd gdbm gdk-pixbuf geoip geos gif gimp git gkrellm glade glamor gles gles1 gnome gnome-keyring gnome-online-accounts gnome-shell gpac gphoto2 gpm gps graphics graphviz grass grub gstreamer gtk gtk2-perl gtkhtml gudev gzip h224 h281 h323 hbci hdri hfs high-ints html humanities ibam icons iconv icq icu ieee1394 imagemagick imap infinality inkjar inotify introspection iodbc ipv6 irc ithreads jadetex java javascript jbig joystick jpeg jpeg2k kerberos kpathsea lame lasi latex lcms ldap libnotify libsecret libssh2 libwww live lm_sensors logrotate lqr lto lua luatex lzo mad mapnik mdb mdnsresponder-compat menuorg mercurial metric midi mikmod mime minizip mjpeg mms mng mod modules mozdom mp3 mp4 mpeg mpi mplayer msn mssql mtp multilib music mysql mysqli nautilus ncurses network network-cron networkmanager nfs nfsv4 nls nntp nocd nptl nsplugin ntfs ntfsprogs ntlm odk offensive ofx ogg ogm omega openexr opengl openmp openstreetmap openvg openxml oscar osdmenu pam pango pcf pch pcre pda pdf perl pgf pixmaps player plotutils plugins png pnm policykit posix postgres ppds psf pstricks publishers pulseaudio pvr python qt3support qt5 quicktime rar raw rdp readline regex reiserfs romio rtsp samba sasl scanner science screen scripts sdl seccomp sensord server sftp shorten simplexml sip sipim slp smartcard smp snmp soap sockets sound soup source sourcecaps sourceview speex spell sql sqlite sqlite3 ssl startup-notification stream subtitles subversion svg sylpheed syslog systemd szip tcpd templates tex tex4ht tga theora thesaurus threads thumbnail thunderbird tidy tiff timidity tinfo tk tools tracker transcode truetype udev udisks unicode unzip upower usb utils uxa v4l valgrind vcd vdpau vdr vhosts vorbis wav webkit winbind wineappdb wma wmf wxwidgets x264 xattr xbase xcb xcf xcomposite xetex xface xfs xft xml xmlrpc xorgmodule xpm xscreensaver xslt xterm xv xvid xvmc yaepg yahoo youtube zip zlib" ABI_X86="64" ALSA_CARDS="HDA-INTEL" APACHE2_MODULES="actions access_compat alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_file authz_core authz_dbm authz_dbd 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 mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id userdir usertrack vhost_alias asis cgi cgid" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" L10N="de en en-GB ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="php mobility" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 python3_5 python3_6" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
-------

Ervin
Comment 1 Ervin Peters 2018-01-11 08:30:05 UTC
Correction: 5.1.30 runs for hours, 5.2.4 crashes randomly with 1 CPU configured.
Now I try 5.2.2.

ervin
Comment 2 Ervin Peters 2018-01-11 14:38:18 UTC
Switching back to stable 5.1.30, 5.2.2 crashed, too.

Does anyone recognize similar behaviour?

ervin
Comment 3 Ervin Peters 2018-02-20 20:21:21 UTC
After upgrading to virtualbox-5.1.32 this spontaneous bug reappear. I played around and added some IOMMMU option to the kernel, because vbox didn't find it.
I also upgraded to unstable 5.2.26, with same behaviour.

No success, vbox crashes a few minutes after boot the vm, while windows inside tries to update itself. At least I found the option of emulated Network Hardware. Since the paravirtual device seem a somehow logical option, but windows doesn't support it. So I switched to the Intel Pro/1000 MT Server (82545EM).

Because of that switching, DesktopNIC -> Paravirtual NIC -> ServerNIC Windows reinstalls some drivers.

Since then, no crashes occurred for hours.

Maybe, those crashes are related to Windows drivers, the vbox emulation of the desktop NIC or some windows confusness with those nic drivers.

I hope that's because around in the world there is no Idea what causes this, even in the partially unfriendly Community VBOX issue tracker.

I test tomorrow and then, if no crash occur, mark this bug as resolved.

Kind regards,
Viele Grüße,
много привет,
許多問候,

Ervin
Comment 4 Ervin Peters 2018-02-21 17:46:12 UTC
10 hours running virtualbox/win10 and no segfault.

set to resolved / worksforme

ervin
Comment 5 Ervin Peters 2018-05-02 11:03:58 UTC
After a Kernel (and many other) update(s) it starts again segfaulting. Usually when Windows 10 update is running.
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-04-29 12:13:13 UTC
Is this still an issue with recent virtualbox releases?
Comment 7 Ervin Peters 2019-05-12 16:42:08 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #6)
> Is this still an issue with recent virtualbox releases?

Seems not. I switched back to some standard intel network card and used the current ~amd64 virtualbox a few days (~30hours) without rhat issue. Inclusive some windows updates @ startup of the vm.

Mark this item as Resolved/obsolete