Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339605 - app-emulation/virtualbox-bin-3.1.8 and -3.2.8 segfault as unprivileged user but run as root with dev-libs/openssl-1.0.0a-r3
Summary: app-emulation/virtualbox-bin-3.1.8 and -3.2.8 segfault as unprivileged user b...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 336465
  Show dependency tree
 
Reported: 2010-10-03 15:59 UTC by Daniela Taubert
Modified: 2013-11-16 16:09 UTC (History)
3 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 Daniela Taubert 2010-10-03 15:59:16 UTC
As long as dev-libs/openssl-1.0.0a-r3 is installed, app-emulation/virtualbox-bin (tested with versions 3.1.8 and 3.2.8) does not run as unprivileged user, but segfaults. Runs fine as root, though.

Problem does not occur with dev-libs/openssl-0.9.8o.

No problem either with openssl-1.0.0a-r3 and virtualbox-ose-3.1.8.

Reproducible: Always

Steps to Reproduce:
1) upgrade to openssl-1.0.0a-r3
2) run revdep-rebuild
3) find out that virtualbox-bin doesn't run as normal user anymore, but segfaults
4) downgrade to openssl-0.9.8o
5) run revdep-rebuild
6) virtualbox-bin works again

Actual Results:  
see above

Expected Results:  
see above

output of emerge --info:

Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8500_@_3.16GHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 03 Oct 2010 10:30:20 +0000
ccache version 2.4 [enabled]


backtrace from core dump:

#0  0x00007f16803d9611 in EVP_MD_CTX_md () from /opt/VirtualBox/VBoxRT.so
#1  0x00007f1677127dec in tls1_enc () from /usr/lib/libssl.so.1.0.0
#2  0x00007f1677121b30 in ssl3_read_bytes () from /usr/lib/libssl.so.1.0.0
#3  0x00007f1677123058 in ssl3_get_message () from /usr/lib/libssl.so.1.0.0
#4  0x00007f167711b3d1 in ssl3_get_server_hello () from /usr/lib/libssl.so.1.0.0
#5  0x00007f167711cf75 in ssl3_connect () from /usr/lib/libssl.so.1.0.0
#6  0x00007f1677124b99 in ssl23_connect () from /usr/lib/libssl.so.1.0.0
#7  0x00007f16780cdf5c in ?? () from /usr/lib/libldap-2.4.so.2
#8  0x00007f16780cc9c8 in ?? () from /usr/lib/libldap-2.4.so.2
#9  0x00007f16780ccc13 in ldap_int_tls_start () from /usr/lib/libldap-2.4.so.2
#10 0x00007f16782e5840 in ?? () from /lib/libnss_ldap.so.2
#11 0x00007f16782e5fc4 in ?? () from /lib/libnss_ldap.so.2
#12 0x00007f16782e67ef in ?? () from /lib/libnss_ldap.so.2
#13 0x00007f16782e6e63 in ?? () from /lib/libnss_ldap.so.2
#14 0x00007f16782e7409 in _nss_ldap_getpwuid_r () from /lib/libnss_ldap.so.2
#15 0x00007f1680b6c93d in getpwuid_r () from /lib/libc.so.6
#16 0x00007f1680b6c20f in getpwuid () from /lib/libc.so.6
#17 0x00007f1678d83c03 in ?? () from /opt/VirtualBox/components/VBoxXPCOMIPCC.so
#18 0x00007f1678d82717 in TryConnect(PRFileDesc**) () from /opt/VirtualBox/components/VBoxXPCOMIPCC.so
#19 0x00007f1678d827c7 in ?? () from /opt/VirtualBox/components/VBoxXPCOMIPCC.so
#20 0x00007f1678d766c8 in ?? () from /opt/VirtualBox/components/VBoxXPCOMIPCC.so
#21 0x00007f1678d76896 in ?? () from /opt/VirtualBox/components/VBoxXPCOMIPCC.so
#22 0x00007f1678d78d91 in ?? () from /opt/VirtualBox/components/VBoxXPCOMIPCC.so
#23 0x00007f167e554dee in nsGenericModule::Initialize(nsIComponentManager*) () from /opt/VirtualBox/VBoxXPCOM.so
#24 0x00007f167e55502c in ?? () from /opt/VirtualBox/VBoxXPCOM.so
#25 0x00007f167e511cae in nsNativeComponentLoader::GetFactoryFromModule(nsDll*, nsID const&, nsIFactory**) () from /opt/VirtualBox/VBoxXPCOM.so
#26 0x00007f167e50fc53 in ?? () from /opt/VirtualBox/VBoxXPCOM.so
#27 0x00007f167e517537 in ?? () from /opt/VirtualBox/VBoxXPCOM.so
#28 0x00007f167e5183a8 in ?? () from /opt/VirtualBox/VBoxXPCOM.so
#29 0x00007f167e555cfa in nsGetServiceByContractID::operator()(nsID const&, void**) const () from /opt/VirtualBox/VBoxXPCOM.so
#30 0x00007f167e555eb6 in nsCOMPtr_base::assign_from_helper(nsCOMPtr_helper const&, nsID const&) () from /opt/VirtualBox/VBoxXPCOM.so
#31 0x00007f167e51d19d in NS_CreateServicesFromCategory(char const*, nsISupports*, char const*) () from /opt/VirtualBox/VBoxXPCOM.so
#32 0x00007f167e55847c in VBoxNsxpNS_InitXPCOM2 () from /opt/VirtualBox/VBoxXPCOM.so
#33 0x00007f167f8b17d3 in com::Initialize() () from /opt/VirtualBox/VirtualBox.so
#34 0x00007f167f740692 in COMBase::InitializeCOM() () from /opt/VirtualBox/VirtualBox.so
#35 0x00007f167f7545c9 in VBoxGlobal::init() () from /opt/VirtualBox/VirtualBox.so
#36 0x00007f167f756556 in VBoxGlobal::instance() () from /opt/VirtualBox/VirtualBox.so
#37 0x00007f167f6f0907 in TrustedMain () from /opt/VirtualBox/VirtualBox.so
#38 0x0000000000401dd0 in ?? ()
#39 0x00007f1680aeabbd in __libc_start_main () from /lib/libc.so.6
#40 0x000000000040109a in ?? ()
#41 0x00007fff64be7d28 in ?? ()
#42 0x000000000000001c in ?? ()
#43 0x0000000000000001 in ?? ()
#44 0x00007fff64be9081 in ?? ()
#45 0x0000000000000000 in ?? ()

app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-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
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg ccache distcc distlocks fixpackages news noinfo parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aci acl acpi alsa amd64 bash-completion branding bzip2 cairo cdr cli consolekit cracklib crypt cups curl cvs cxx dbus dillo dri dts dvd dvdr emboss encode exif fam firefox flac fortran gd gdbm gif gnuplot gpm gtk hal iconv jadetex java jpeg kde kerberos latex lcms ldap libnotify lmsensors mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nis nls npp nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pcre pdf perl png postscript ppds pppd python qt3support qt4 quotas rdesktop rdp readline reflection rss samba sasl sdl session spell sse sse2 ssl startup-notification subversion svg sysfs syslog tcpd tiff truetype unicode usb virtualbox vnc vorbis webdav-neon x264 xcb xml xorg xulrunner xv 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2010-10-03 19:13:09 UTC
probably because you've set up your nss to look up in ldap

no interest in debugging a binary-only package
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-11-01 17:27:19 UTC
Is this still an issue with virtualbox-bin-3.2.10?
Comment 3 Daniela Taubert 2010-11-02 16:58:03 UTC
> Is this still an issue with virtualbox-bin-3.2.10?

yes, still segfaults if openssl-1.0.0a-r3 is installed
Comment 4 Ben Kohler gentoo-dev 2013-10-02 02:48:51 UTC
(In reply to Daniela Taubert from comment #3)
> > Is this still an issue with virtualbox-bin-3.2.10?
> 
> yes, still segfaults if openssl-1.0.0a-r3 is installed

I know nothing has been done gentoo-side on this, but... almost 3 years later, many versions of vbox and openssl have come and gone, is this problem still occurring?
Comment 5 Ben Kohler gentoo-dev 2013-11-16 16:09:38 UTC
Please reopen this if you are still able to reproduce.