Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228269 - app-emulation/vmware-modules-1.0.0.20 vmblock causes hang on shutdown
Summary: app-emulation/vmware-modules-1.0.0.20 vmblock causes hang on shutdown
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
: 247856 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-19 01:56 UTC by Thomas Heinz
Modified: 2009-10-03 17:24 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 Thomas Heinz 2008-06-19 01:56:57 UTC
# /etc/init.d/vmware stop
causes a hang which e.g. prevents `rc shutdown` from shutting the system down properly.

The hang is caused by
umount /proc/fs/vmblock/mountPoint

Temporary workaround: Uncomment
mount -t vmblock none /proc/fs/vmblock/mountPoint || eend 1 "Failed to mount the vmblock filesystem"
in /etc/init.d/vmware

I am using sys-kernel/gentoo-sources-2.6.23-r6.

Reproducible: Always

Steps to Reproduce:




Portage 2.1.4.4 (default-linux/x86/2006.1/desktop, gcc-3.4.6-hardened, glibc-2.6.1-r0, 2.6.23-gentoo-r6 i686)
=================================================================
System uname: 2.6.23-gentoo-r6 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Wed, 18 Jun 2008 20:35:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -msse3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8 -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.osuosl.org/"
LANG="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d a52 aac aalib accessibility acl acpi aim alsa apache2 apm arts audiofile avi bash-completion bcmath berkdb bluetooth bzip2 cairo calendar caps cdb cdparanoia cdr cli cracklib crypt cscope cups curl curlwrappers dbm dbus dga dio directfb doc dri dv dvb dvd dvdr dvdread eds emacs emboss encode esd ethereal examples exif fam fastcgi fbcon ffmpeg fftw firefox flac flash flatfile foomaticdb fortran freetds ftp gd gdbm geoip gif ginac glut gmp gnome gnutls gphoto2 gpm gps gstreamer gtk gtk2 guile hal hardened hardenedphp howl icc iconv icq ieee1394 imagemagick imap imlib innodb iodbc ipv6 isdnlog jabber jack java javascript joystick jpeg kde kdeenablefinal kerberos krb4 ladcca lcms ldap leim lesstif libcaca libg++ libgda libwww lirc lm_sensors mad maildir matroska mcal mcve memlimit mhash midi mikmod milter mime ming mmap mmx mng mono motif mozilla mp3 mpeg mpi msession msn mudflap mule mysql mysqli nas ncurses netcdf nls nocd nptl nptlonly nsplugin offensive ofx ogg openal opengl openmp osc oscar oss pam pcntl pcre pda pdf perl pfpro php plotutils png portaudio posix ppds pppd python qt qt3 qt4 quicktime radius readline recode reflection ruby samba sasl scanner sdl session sharedext sharedmem shorten simplexml skey slang slp smartcard sndfile snmp soap sockets socks5 sox speex spell spl sqlite sse sse2 ssl svg svga tcltk tcpd tetex theora threads tidy tiff tokenizer truetype unicode usb v4l vcd vhosts videos vorbis wddx win32codecs wmf wxwindows x86 xface xine xml xml2 xmlrpc xorg xpm xprint xsl xv xvid yahoo yaz zeo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Mike Auty (RETIRED) gentoo-dev 2008-06-19 07:58:26 UTC
Thanks for the report Thomas, we'll look into it...
Comment 2 Jake Schneider 2008-07-01 15:41:04 UTC
I have the same bug here, however, the line you specified in your /etc/init.d/vmware file was uncommented by default in my build.  The workaround I have employed is to comment out the "umount /proc/fs/vmblock/mountPoint > /dev/null 2>&1" line in the stop() section of the script.  

This works because this file system will be unmounted in your /etc/vmware/init.d/vmware script called out in the very next line of your /etc/init.d/vmware script.  It appears that the hang occurs because we are trying to unmount this file system twice.

-Jake Schneider

Comment 3 Mike Auty (RETIRED) gentoo-dev 2008-07-01 16:13:34 UTC
Ok, thanks very much for the information Jake, that should be fairly easy to fix.  I'll have to have a reread of the vmware provided init scripts and those we provide to get all the ordering correct.  Hopefully I'll have something in the overlay by the middle of next week.  If not, do please give me a prod, I'm quite busy at the moment and I'm forgetting all kinds of things I shouldn't!  Thanks!  5:)
Comment 4 Mike Auty (RETIRED) gentoo-dev 2008-11-21 10:19:17 UTC
*** Bug 247856 has been marked as a duplicate of this bug. ***