Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 366213

Summary: sys-apps/util-linux-2.19.1 : `mount -a' segfaults when fstab contains an incomplete line
Product: Gentoo Linux Reporter: Plopmaster <gentoo>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/4153
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: System emerge info

Description Plopmaster 2011-05-06 09:55:25 UTC
mount -a gives segfault if such a line is present in fstab :
tmpd                    /tmp            tmpfs

Note the lack of options on the line.

Fix : giving a size
tmpd                    /tmp            tmpfs       size=512M

As mount -a is used in /etc/init.d/localmount, system half boot : you can still log

Reproducible: Always

Steps to Reproduce:
1. Put such a line in fstab : tmpd /tmp  tmpfs
2. Type mount -a
Actual Results:  
System half boot

Expected Results:  
mount -a does not segfault :)
Comment 1 nobody 2011-05-21 22:51:59 UTC
confirm failure also for me 

offending line was
/dev/disk/by-label/belegHOME            /home           ext3

fix it by adding atime
/dev/disk/by-label/belegHOME            /home           ext3		atime 0 0

just to add so, 1/ it segfault for me on strstr function 2/ it don't stop my system booting (as only my /home was affect) 3/ fix work (adding an option to the line)

this one might be a dup : http://bugs.gentoo.org/show_bug.cgi?id=283551

was working ok with 2.19
Tue May  3 00:06:04 2011 >>> sys-apps/util-linux-2.19
Tue May 17 05:47:31 2011 >>> sys-apps/util-linux-2.19.1

maybe block : http://bugs.gentoo.org/show_bug.cgi?id=359759

add emerge --info

emerge --info util-linux
Portage 2.1.9.49 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11.3-r0, 2.6.36-rc6 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-rc6-i686-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.0.2
Timestamp of tree: Thu, 19 May 2011 21:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1, 3.2
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.4.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.11.3
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -mfpmath=sse"
DISTDIR="/mnt/faramir/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going -j8"
FEATURES="assume-digests binpkg-logs buildpkg distcc distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org ftp://mirror.ovh.net/gentoo-distfiles http://gentoo.mirror.sdv.fr/  http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-Ol -Wl,--as-needed"
LINGUAS="fr fr_FR"
MAKEOPTS="-j8"
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://faramir/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amarok apng audacious bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbase dbus device-mapper divx dri dts dvd dvdr dvdread embedded emboss encode exif extras fam fbsplash ffmpeg firefox flac fontconfig fortran ftp gdbm gdu gif glitz gmedia gnome gnutls gstreamer gtk hddtemp iconv icu imap ipod java javascript jpeg jpeg2k lame lcms ldap libcaca libnotify live lm_sensors logrotate lzo mad maildir matroska mdnsresponder-compat midi mikmod mjpeg mng modplug modules moznomail moznoxft mp3 mp4 mp4live mpeg mpeg2 mplayer msn mudflap musepack ncurses network nfs nls nptl nptlonly ntfs ogg openal opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support readline sdl sdl-image sensord session skins smp spell sqlite ssl startup-notification stream subtitles svg sysfs tcpd tga theora threads thunderbird tiff timidity truetype udev unicode usb v4l v4l2 vcd vdpau vlm vorbis webkit wma wmf wxwindows x264 x86 xcb xcomposite xine xinerama xml xorg xosd xulrunner xv xvid zip zlib" ALSA_CARDS="intel8x0" 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-apps/util-linux-2.19.1 was built with the following:
USE="cramfs crypt ncurses nls perl unicode -old-linux (-selinux) -slang (-uclibc)"
Comment 2 nobody 2011-05-21 22:54:37 UTC
this one might be a dup : http://bugs.gentoo.org/show_bug.cgi?id=283551

<-- forget that, wrong bug sorry
Comment 3 SpanKY gentoo-dev 2011-05-28 16:16:29 UTC
i dont think so.  the bug was in `mount`, and `mount.cifs` doesnt execute that.
Comment 4 Chris Richards 2011-06-28 16:51:27 UTC
Created attachment 278519 [details]
System emerge info
Comment 5 Chris Richards 2011-06-28 16:52:21 UTC
Comment on attachment 278519 [details]
System emerge info

Wrong bug
Comment 6 SpanKY gentoo-dev 2011-07-12 03:31:46 UTC
added the fix from upstream to 2.19.1-r1