Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304443 - sys-fs/unionfs-fuse-0.23, squashfs, mount -o bind problem
Summary: sys-fs/unionfs-fuse-0.23, squashfs, mount -o bind problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-10 23:38 UTC by Jochen Schlick
Modified: 2012-01-15 01:48 UTC (History)
1 user (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 Jochen Schlick 2010-02-10 23:38:42 UTC
Hi, 

I use sys-fs/union-fuse for my /usr/portage-tree which is originally a squashfs-file in my AMD64 environment. I have also a 32bit-chroot which mounts on startup AMD64's /usr/portage tree using 'mount -o bind'. Everything works fine until I restart my 32bit-chroot which umounts and then tries to mount /usr/portage again. The result is then a no longer usable /usr/portage tree in the AMD64 environment (not only in the 32bit chroot).

[64bit]:/# ll /usr
ls: cannot access /usr/portage: Transport endpoint is not connected
total 33032
-rw-r--r--   1 root  root     1230 Jan 21 01:40 Manifest
drwxr-xr-x   3 root  root   131072 Feb 10 23:52 bin
drwxr-xr-x   4 root  root     4096 Aug 10  2009 diet
drwxr-xr-x   2 games root     4096 May  8  2007 games
drwxr-xr-x 436 root  root    57344 Feb 10 23:49 include
lrwxrwxrwx   1 root  root        5 Nov 10  2008 lib -> lib64
drwxr-xr-x   2 root  root     4096 Sep  2 21:50 lib32
drwxr-xr-x 184 root  root   200704 Feb 10 23:53 lib64
drwxr-xr-x  15 root  root     4096 Feb 10 22:53 libexec
drwxr-xr-x  11 root  root     4096 Jan 19 02:08 local
drwxr-xr-x   3 root  root     4096 Apr  2  2009 man
d?????????   ? ?     ?           ?            ? portage
drwxr-xr-x 158 root  root     4096 Feb 10 23:30 portage.changes
drwxr-xr-x 162 root  root     4642 Feb  8 16:25 portage.readonly
-rw-r--r--   1 root  root 33345536 Feb  8 23:51 portage.sqfs
...

 


Reproducible: Always
Comment 1 Thomas Sachau gentoo-dev 2010-03-11 21:15:18 UTC
your emerge --info please
Comment 2 Jochen Schlick 2010-03-18 21:01:47 UTC
emerge --info
Portage 2.2_rc67 (default/linux/amd64/10.0/no-multilib, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5870_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 18 Mar 2010 18:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="hda-intel"
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"
ANT_HOME="/usr/share/ant"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 pana sonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_SIZE="2G"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-march=core2 -O2 -pipe -msse3 -mssse3"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
COLORFGBG="15;0"
CONFIG_PROTECT="/etc /usr/lib/findcruft/ /usr/share/X11/xkb /usr/share/config /usr/share/config/ /usr/share/hddtemp/ /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe -msse3 -mssse3"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-1mjHP66b7G,guid=1722ae72ed4d93ebf395a6c84b9f58e2"
DCCC_PATH="/usr/lib64/distcc/bin"
DEFAULT_ABI="amd64"
DESKTOP_SESSION="KDE-4"
DISPLAY=":0"
DISTCC_LOG=""
DISTCC_VERBOSE="0"
DISTDIR="/DATA/portage/distfiles"
DM_CONTROL="/var/run/xdmctl"
EDITOR="/usr/bin/vi"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS=" --verbose --with-bdeps y "
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FETCHCOMMAND="/usr/local/bin/trickyfetch "${URI}" "${DISTDIR}" "${FILE}""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
GS_LIB="/home/boss/.fonts"
GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:/home/boss/.gtkrc-2.0:/home/boss/.gtkrc-2.0-kde4:/home/boss/.kde4/share/config/gtkrc-2.0"
GTK_RC_FILES="/etc/gtk/gtkrc:/home/boss/.gtkrc::/home/boss/.kde4/share/config/gtkrc"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HG="/usr/bin/hg"
HISTCONTROL="ignoredups"
HOME="/root"
HTTP_PROXY="http://127.0.0.1:8080/"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/info"
INPUT_DEVICES="keyboard mouse synaptics evdev"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVACC_HOME="/usr/share/javacc/"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KDEDIRS="/usr/bin/:/usr/kde/3.5/bin/"
KDE_FULL_SESSION="true"
KDE_IS_PRELINKED="1"
KDE_MULTIHEAD="false"
KDE_SESSION_UID="32000"
KDE_SESSION_VERSION="4"
KERNEL="linux"
KONSOLE_DBUS_SERVICE=":1.26"
KONSOLE_DBUS_SESSION="/Sessions/11"
LANG="C"
LANGUAGE=""
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LINGUAS="en de"
LOGNAME="root"
LPDEST="lp"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAKEOPTS="-j3 "
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/man:/etc/java-config/system-vm/man/:/usr/qt/3/doc/man:/usr/share/postgresql-8.4/man:/opt/man:/usr/local/man:/root/man"
MULTILIB_ABIS="amd64"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3:/usr/qt/3/bin:/var/qmail/bin:/var/vpopmail/bin:/root/bin:/root/bin/s:/root/bin/cs"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error info log"
PORTAGE_ELOG_MAILFROM="linux64portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="mail_summary"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="5"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --exclude=/.unionfs "
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTAGE_TMPFS="/dev/shm"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/layman/science /usr/local/layman/xemacs /usr/local/layman/sunrise /usr/local/layman/vmware /usr/local/layman/sabayon /usr/local/layman/arcon /usr/local/layman/perl-experimental /usr/local/portage"
PRELINK_PATH_MASK="/usr/lib64/klibc"
PRINTER="lp"
PROFILEHOME=""
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PROFILE_READ="true"
PS1="\[\033[01;31m\][64bit]\[\033[01;34m\]\h:\w # \[\033[00m\]\[\e]30;\H:\w\a\]"
PS2="> "
PWD="/home/boss"
PYTHONDONTWRITEBYTECODE="1"
QMAIL_CONTROLDIR="/var/qmail/control"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
QT_PLUGIN_PATH="/home/boss/.kde4/lib64/kde4/plugins/:/usr/lib64/kde4/plugins/"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3:/usr/qt/3/bin:/var/qmail/bin:/var/vpopmail/bin"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18"
SANE_CONFIG_DIR="/etc/sane.d"
SCHEME_LIBRARY_PATH="/usr/share/slib/"
SEARCH_DIRS_MASK="/media /PART /sus32 /sus64 /fc32 /gen64 /dos /D100/chroot_gen32 /DATA/chroot_gen32 "
SESSION_MANAGER="local/lasan:@/tmp/.ICE-unix/6771,unix/lasan:/tmp/.ICE-unix/6771"
SHELL="/bin/bash"
SHLVL="3"
SPEC_ALIAS="alias.lasan"
STAGE1_USE="nptl nptlonly unicode"
STRIGI_PLUGIN_PATH="/usr/lib64/strigi:"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
USB_DEVFS_PATH="/dev/bus/usb"
USE="3dnow 3dnowext 64bit 7zip X Xaw3d a52 aac aalib acct acl acpi aiglx aio alsa amarok amd amd64 amr amrnb amrwb ao aotuv apm asf ass atmo audacious audiofile autoreplace bash-completion berkdb binary-drivers blksha1 bluetooth boost branding bundledlibevent bwscheduler bzip2 cairo ccache cdb cdda cdparanoia cdr cdrom cg chm chroot cli cmdreccmdi18n cmdsubmenu colordiff connectionstatus consolekit corefonts cracklib crypt css cups curl cutterlimit cutterqueue cuttime cvs cxx d dbase dbus debugger deprecated device-mapper dga dia diet dirac directfb disk-partition djvu dlloader dmi dmraid dnd dnotify dri dts dv dvb dvd dvdr dvdread dvi dxr3 emboss encode exceptions exif extensions extrafilters extraicons fame fat fbcondecor fbdev fbsplash ffmpeg fftw firefox firefox3 flac fortran gcrypt gdbm gif gimp gnome gnutls gphoto2 gpm graphviz gs gsm gstreamer gtk gtk2 hal hdri hpn htmltidy iconv icq ieee1394 imagemagick imap inkjar inotify int64 ipod iproute2 ipv6 irc jabber jack john joystick jpeg jpeg2k kde kdehiddenvisibility kdm keyring kipi kvm lame largefile lcd lcms libcaca libgcrypt libsamplerate libssh2 libtiger live lm_sensors logrotate lzma lzo mad maildir matroska mhash mjpeg mmap mmx mmxext mng modules mozilla mp2 mp3 mp3rtp mp4 mpd mpeg mpeg2 mplayer msn mudflap musepack mythtv nat ncurses network-cron new-login nforce2 nls nptl nptlonly nsplugin ntfs ntlm nvidia nvram ogg openexr opengl openmp openssl pam pam_chroot pam_timestamp pascal pcap pcre pda pdf perl plasma png policykit portaudio posix postproc postscript povray ppds pppd prelude pvr python qmail qt3support qt4 quicktime rar raw readline realmedia reflection reiserfs rrdtool rss rtc scanner schroedinger sdl session sftp sftplogging skins sndfile sockets socks5 speech speex spell spl spoof-source sql sqlite sqlite3 sse sse2 sse3 ssl ssse3 stream subversion svg swig sysfs sysvipc taglib tagwriting tcpd tcpwrapper tga theora threads tidy tiff timestats tls tomsfastmath tordns transcode truetype udev unicode unix98 urandom usb utempter v4l v4l2 vcd vdpau vdr visualization vnc voice volctrl vorbis vpopmail webkit wifi wireshark wma wmf wmp wxwindows x264 xanim xattr xemacs xforms xfs xine xinerama xinetd xml xmp xorg xosd xpm xrender xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="hda-intel" 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 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" CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 pana sonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa cirrus nouveau" 
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="nvidia nv vesa cirrus nouveau"
WINDOWID="37748789"
WINDOWPATH="3"
XAUTHORITY="/root/.xauthAW1tmK"
XCURSOR_THEME="Oxygen_Black"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/share:/usr/local/share"
XDG_MENU_PREFIX="kde-4.4-"
XDG_SESSION_COOKIE="fc463bde53bd730c36da3500464e65f0-1268734178.269159-1989743650"
XDM_MANAGED="method=classic"
_="/usr/bin/emerge"
ac_cv_func_calloc_0_nonnull="yes"
ac_cv_func_malloc_0_nonnull="yes"
ac_cv_func_realloc_0_nonnull="yes"
bash4="4.1.2(2)-release"
http_proxy="http://127.0.0.1:8080/"
ignoreeof="0"
Comment 3 Sebastian Pipping gentoo-dev 2010-03-18 22:19:07 UTC
Jochen, I have trouble understanding your description of the problem.
Could you be a bit more verbose for me?  Please note I have no experience on mixing 32bit and 64bit worlds, if that aspect is important.
Comment 4 Jochen Schlick 2010-03-19 21:08:36 UTC
ok, as you can see I use a 64bit system without multilib support. Since I have some 32bit stuff I have created a 32bit chroot environment which has its own /usr /lib /usr/lib.... but uses some common parts from the 64bit system according to the gentoo's 32bit chroot guide 
 
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=2

important are two lines of the 32bit chroot initscript. One line which mounts /usr/portage during startup of the 32bit chroot and the other is the line which umounts the 32bit chroot's /usr/portage when stopping the 32bit chroot. And this line results in a no longer usable /usr/portage-tree in the 64bit system
  
Comment 5 Sebastian Pipping gentoo-dev 2010-03-21 01:11:34 UTC
Can you make a sequence of mounting and unmounting commands to execute to reproduce?
Comment 6 Martin Väth 2010-03-25 08:00:25 UTC
Fortunately, Jochen posted the link to the script which he used for
the mounting. It seems that the option "-f" of the umount command is
the cause. Without this option, the following script seems to work,
with it, it throws the strange error "Transport endpoint is not connected"
at the "ls $S" line
(the script assumes that /opt is Directory with some content and that
unionfs-fuse is installed).

T=$(mktemp -d); S=$(mktemp -d)
unionfs /opt=RO "$S"
mount --bind "$S" "$T"
umount -f "$T"
ls "$S"
umount "$S"; rmdir "$T" "$S"
Comment 7 Sebastian Pipping gentoo-dev 2010-03-26 00:34:03 UTC
I hope you don't mind me putting you in CC.

So is it a bug in unionfs then?
Comment 8 Martin Väth 2010-03-26 06:35:48 UTC
(In reply to comment #7)
>
> So is it a bug in unionfs then?

(I guess you mean unionfs-fuse to avoid confusion with the unionfs project?)
It seems so, but it might as well be a bug of fuse (kernel module or library)
or some unavoidable side effect of its implementation. It might also be a
bug of the kernel or userspace implementation of --bind or umount -f, since
it is hard to believe that an umount -f of a mount point should be able to
break the state of the corresponding mount device.

I tried with funionfs (which is in my local overlay, I don't remember where
I got the ebuild from) instead of unionfs-fuse
    funionfs dirs=/opt=ro "$S"
but this seems currently broken (I get a segfault already here; reemerging
funionfs did not help either). With aufs2 instead of unionfs-fuse
    mount -i -t aufs -o br=/opt=rr aufs "$S"
there are no problems, but since aufs2 is directly a kernel patch, it
probably uses different mechanisms anyway. I never checked any of the
implementations of these unionfs-like filesystems, I just used them...
Comment 9 Bernd Schubert 2010-05-26 13:46:06 UTC
Guys, why don't you ask on our unionfs-fuse mailing list? This is a 'bug-by-design' in libfuse/kernel-fuse. We had a long discussion about that and Miklos Szeredi wants "umount -f" behave that way - instead of returning -EBUSY if there are open filedescriptors on the filesystem, "umount -f" will kernel-internally umount this filesystem. 
You will need to change your scripts and remove the "-f". And while you do so, please also implement a way to keep unionfs-fuse alive on shutdown, if it should be used as root filesystem. Debian supports that.

Thanks,
Bernd

Comment 10 Sebastian Pipping gentoo-dev 2010-11-08 14:16:14 UTC
I'm honestly not very familiar with details like these.
"bug-by-design" sounds like we can close this bug to me.  Any objections?

(In case of no reply, I'll close this bug in 30 days.)
Comment 11 Sebastian Pipping gentoo-dev 2012-01-15 01:48:48 UTC
(In reply to comment #10)
> (In case of no reply, I'll close this bug in 30 days.)

Closing as announced.  If you object please re-open and advise on what to do.  Thanks!