Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352337 - app-emulation/virtualbox segfault
Summary: app-emulation/virtualbox segfault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-21 14:22 UTC by aditsu
Modified: 2011-01-21 20:22 UTC (History)
2 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 aditsu 2011-01-21 14:22:56 UTC
Virtualbox segfaults every time I try to run it, e.g:

VirtualBox[9108]: segfault at 1024e5cef ip 00007f87cbc009b6 sp 00007ffffe096230 error 4 in VBoxXPCOM.so[7f87cbb6d000+103000]

It happens with both 3.2.12-r4 and 4.0.2
Comment 1 aditsu 2011-01-21 14:23:26 UTC
emerge --info
Portage 2.1.9.25 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8500_@_3.16GHz-with-gentoo-1.12.14
Timestamp of tree: Wed, 19 Jan 2011 14:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula googleearth AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /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=core2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distcc distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.aditsu.net:8000 http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
SYNC="rsync://beta/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr assistant berkdb bluetooth bzip2 cairo cleartype cli consolekit cracklib crypt cuda cups cxx dbus dri dv dvd dvdr enca encode exif faac faad fax ffmpeg firefox3 fts3 gdbm gimp gnutls gphoto2 gpm gpu gstreamer gtk hal hpijs iconv imagemagick ipv6 jack java jpeg kde kipi lame mdadm melt midi mikmod mjpeg mmx mng modules mp3 mpeg mplayer mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png postproc ppds pppd python qt3support qt4 quicktime rdesktop rdp readline rtsp samba scanner sdl semantic-desktop session sndfile snmp speex sql sqlite sse sse2 ssl ssse3 stream subtitles svg symlink sysfs tcpd theora threads tiff truetype unicode usb v4l v4l2 vcd vcdx vhosts vnc vorbis webkit x264 xcomposite xine xinerama xml xmp xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 aditsu 2011-01-21 14:33:05 UTC
Note: it starts successfully if I run it as root; I haven't tried setting up a vm as root so don't know if it really works.
Comment 3 aditsu 2011-01-21 15:18:02 UTC
virtualbox-bin-3.2.12-r1 also segfaults the same way
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-01-21 17:33:29 UTC
This is all quite strange. The fact that both virtualbox AND virtualbox-bin are segfaulting implies that there's something wrong with either your Gentoo or your hardware.

Anyway, please post the output of the following command:

  emerge -Oqpv virtualbox{,-bin}


In case you once had a working virtualbox running on this machine it might help to rename the ${HOME}/.VirtualBox folder and retry to run virtualbox again.
Comment 5 aditsu 2011-01-21 17:58:03 UTC
emerge -Oqpv virtualbox
[ebuild   R   ] app-emulation/virtualbox-3.2.12-r4  USE="alsa opengl python qt4 vnc -additions -headless -pulseaudio -sdk -vboxwebsrv"

I renamed .VirtualBox and... it seems to start! :O
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-01-21 18:24:19 UTC
(In reply to comment #5)
> I renamed .VirtualBox and... it seems to start! :O
> 

In that case I suggest you copy the HardDisks folder from your renamed .VirtualBox folder into the new one and try to recreate all VMs you had in virtualbox through the GUI. 
Keep in mind that you might need to add the existing hard drive images though the virtual media manager in virtualbox-3.2.x. With virtualbox-4.0.x this is no longer necessary.
Comment 7 aditsu 2011-01-21 20:03:52 UTC
Well, I did some testing, and I found that VirtualBox starts if I move the compreg.dat file, and creates a new one. The new file looks like a normal config file, but the old file contains this:

[/TM/] (level 1)
00:00:00.827   UTCOffset <integer> = 0x0000000000000000 (0)
00:00:00.827 
00:00:00.827 ********************* End of CFGM dump **********************
00:00:00.827 MM: cbHyperHeap=0x220000 (2228224)
00:00:00.828 CPUMSetGuestCpuIdFeature: Enabled PAE
00:00:00.829 Logical host processors: 2, processor active mask: 0000000000000003
00:00:00.829 ************************* CPUID dump ************************
00:00:00.829          RAW Standard CPUIDs
00:00:00.829      Function  eax      ebx      ecx      edx
00:00:00.829 Gst: 00000000  00000005 756e6547 6c65746e 49656e69
00:00:00.829 Hst:           0000000a 756e6547 6c65746e 49656e69
00:00:00.829 Gst: 00000001  00010676 00020800 00000001 178bf1ff
00:00:00.829 Hst:           00010676 00020800 0008e3fd bfebfbff
00:00:00.829 Gst: 00000002  05b0b101 005657f0 00000000 2cb4304e
00:00:00.829 Hst:           05b0b101 005657f0 00000000 2cb4304e
00:00:00.829 Gst: 00000003  00000000 00000000 00000000 00000000
00:00:00.829 Hst:           00000000 00000000 00000000 00000000
00:00:00.829 Gst: 00000004  04000000 00000000 00000000 00000000
00:00:00.829 Hst:           04000121 01c0003f 0000003f 00000001
00:00:00.829 Gst: 00000005  00000000 00000000 00000000 00000000
00:00:00.8

Apparently VirtualBox segfaulted when it "saw" that.
So now I recovered my virtual machines (without recreating), and everything seems ok. Thanks a lot for the help!

I guess the only remaining issues are:
- that file should not get corrupted like that
- VirtualBox should not segfault if the file is corrupted
Maybe this is something to report to upstream?
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-01-21 20:22:49 UTC
Well... to be honest I doubt upstream will help much as long as you don't provide a buttload of information. The problem here is that they need advice how to reproduce such a problem reliably and that might be hard for you to achieve.

Anyway, I'm glad you resolved your problem and I think now it's appropriate to resolve this bug as fixed :)