Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184018 - sys-fs/e2fsprogs-1.40: mount hangs with fs type "auto"
Summary: sys-fs/e2fsprogs-1.40: mount hangs with fs type "auto"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-02 19:48 UTC by Federico Cuello
Modified: 2007-07-17 18:22 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 Federico Cuello 2007-07-02 19:48:10 UTC
"mount /mnt/removable" hangs. I have this line in fstab:

/dev/sdb1       /mnt/removable  auto    defaults,user,noauto 0 0

If I do:

mount -t vfat /dev/sdb1 /mnt/removable

, it works ok.




Reproducible: Always

Steps to Reproduce:
1. emerge sys-fs/e2fsprogs-1.40
2. mount /mnt/removable


Actual Results:  
"mount" hangs

Expected Results:  
mounted filesystem

Downgrading to 1.40_pre20070411 solves the problem

Portage 2.1.3_rc6 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.21-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.21-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System release 1.12.10
Timestamp of tree: Mon, 02 Jul 2007 18:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_AR.UTF-8"
LINGUAS="es_AR es"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi aim alsa amd64 apache2 apm arts artswrappersuid bash-completion berkdb bitmap-fonts bzip2 cairo cddb cdr cli cracklib crypt dbus dmi dri dts dv dvb dvd dvdr dvdread eds emboss emerald encode esd evo exif extensions fam ffmpeg fftw firefox flac fortran gd gdbm gif glitz gnome gpm graphviz gstreamer gtk gtk2 hal iconv icq imagemagick ipod ipv6 isdnlog jabber jpeg kde kdeenablefinal kdehiddenvisibility kerberos kqemu ldap libg++ lm_sensors mad maildir mailwrapper midi mikmod mmap mmx mmxext mp3 mpeg mplayer mpm-event msn mudflap musicbrainz ncurses nforce2 nls nptl nptlonly nsplugin ntfs nvidia ogg opengl openmp oss pam pcre pda pdf perl php pmu png pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection samba sasl sdl session sharedext slang smp sms snortsam spell spl sse sse2 ssl subtitles svg symlink tcpd theora threads threadsafe tiff truetype truetype-fonts type1-fonts unicode vhosts vorbis x264 xcomposite xml xorg xv xvmc yahoo 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es_AR es" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2007-07-03 18:30:00 UTC
works for me ... try running your `mount` through strace

# umount /mnt/games/

# grep /mnt/games /etc/fstab
/dev/hda3      /mnt/games      auto    defaults,ro,user    0 0

# mount -v /mnt/games
mount: you didn't specify a filesystem type for /dev/hda3
       I will try type vfat
/dev/hda3 on /mnt/games type vfat (ro,noexec,nosuid,nodev)
Comment 2 Federico Cuello 2007-07-03 22:52:22 UTC
(In reply to comment #1)
> works for me ... try running your `mount` through strace
> 

This is what I got:

strace mount -v /mnt/removable/
execve("/bin/mount", ["mount", "-v", "/mnt/removable/"], [/* 65 vars */]) = 0
brk(0)                                  = 0x51b000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ac278770000
uname({sys="Linux", node="kaoz", ...})  = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=175418, ...}) = 0
mmap(NULL, 175418, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2ac278771000
close(3)                                = 0
open("/lib/libblkid.so.1", O_RDONLY)    = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2405\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=46734, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ac27879c000
mmap(NULL, 1085416, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ac278872000
mprotect(0x2ac27887a000, 1044480, PROT_NONE) = 0
mmap(0x2ac278979000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) =
0x2ac278979000
close(3)                                = 0
open("/lib/libuuid.so.1", O_RDONLY)     = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\17\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=15266, ...}) = 0
mmap(NULL, 1057568, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ac27897b000
mprotect(0x2ac27897d000, 1048576, PROT_NONE) = 0
mmap(0x2ac278a7d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) =
0x2ac278a7d000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\324\1\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1277152, ...}) = 0
mmap(NULL, 2334920, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ac278a7e000
mprotect(0x2ac278bb0000, 1044480, PROT_NONE) = 0
mmap(0x2ac278caf000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x131000)
 = 0x2ac278caf000
mmap(0x2ac278cb4000, 16584, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2
ac278cb4000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ac278cb9000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ac278cba000
arch_prctl(ARCH_SET_FS, 0x2ac278cb9d20) = 0
mprotect(0x2ac278caf000, 12288, PROT_READ) = 0
mprotect(0x2ac278870000, 4096, PROT_READ) = 0
munmap(0x2ac278771000, 175418)          = 0
brk(0)                                  = 0x51b000
brk(0x53c000)                           = 0x53c000
open("/dev/null", O_RDWR)               = 3
close(3)                                = 0
getuid()                                = 1000
geteuid()                               = 1000
getgid()                                = 1000
getegid()                               = 1000
prctl(0x3, 0, 0, 0, 0)                  = 0
open("/etc/blkid.tab", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1091, ...}) = 0
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=1091, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ac278771000
lseek(3, 0, SEEK_CUR)                   = 0
read(3, "<device DEVNO=\"0x0812\" TIME=\"118"..., 4096) = 1091
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2ac278771000, 4096)            = 0
getuid()                                = 1000
geteuid()                               = 1000
lstat("/etc/mtab", {st_mode=S_IFREG|0644, st_size=262, ...}) = 0
readlink("/mnt", 0x7fff3234ee00, 4096)  = -1 EINVAL (Invalid argument)
readlink("/mnt/removable", 0x7fff3234ee00, 4096) = -1 EINVAL (Invalid argument)
umask(077)                              = 022
open("/etc/fstab", O_RDONLY)            = 3
umask(022)                              = 077
fstat(3, {st_mode=S_IFREG|0644, st_size=230, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ac278771000
read(3, "none\t\t/proc\t\tproc\tdefaults\t0 0\nn"..., 4096) = 230
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2ac278771000, 4096)            = 0
stat("/sbin/mount.auto", 0x7fff32350aa0) = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
open("/dev/sdb1", O_RDONLY)             = 3
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 17), ...}) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "\353X\220mkdosfs\0\0\2  \0\2\0\0\0\0\370\0\0 \0@\0\0\0"..., 69632) = 69632



, and it hangs there. Then I have to kill -9 it.
Comment 3 Lars S. Jensen 2007-07-05 18:47:28 UTC
I have the same problem on amd64. 
I think it is related to a USB device. 

Workaround: 
add =sys-fs/e2fsprogs-1.40 to /etc/portage/package.mask
and do: emerge -uD --deep world 
[ebuild     UD] sys-libs/com_err-1.40_pre20070411 [1.40] USE="nls" 0 kB 
[ebuild     UD] sys-libs/ss-1.40_pre20070411 [1.40] USE="nls" 0 kB 
[ebuild     UD] sys-fs/e2fsprogs-1.40_pre20070411 [1.40] USE="nls -static" 0 kB 
...
at it works.
Comment 4 Federico Cuello 2007-07-17 18:22:07 UTC
It has been fixed in linux kernel 2.6.22