Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265971 - sudo-1.7.1_rc1 segmentation fault
Summary: sudo-1.7.1_rc1 segmentation fault
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-13 10:59 UTC by valentin
Modified: 2009-06-11 22:29 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 valentin 2009-04-13 10:59:13 UTC
the 1.7.1_rc1 version of sudo gives segmentation fault whenever i try to run a command with superuser priviledges. 

Reproducible: Always

Steps to Reproduce:
1. upgrade to version 1.7.1_rc1
2. run whatever command with sudo 


Actual Results:  
the command gives a segmentation fault after the type of the password.

Expected Results:  
the command would have been executed without problems with superuser priviledges.

emerge --info:

Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 x86_64)
=================================================================                                        
System uname: Linux-2.6.29-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual-Core_Processor_TK-57-with-gentoo-2.0.0
Timestamp of tree: Mon, 13 Apr 2009 10:00:01 +0000                                                          
ccache version 2.4 [enabled]                                                                                
app-shells/bash:     4.0_p17                                                                                
dev-java/java-config: 1.3.7-r1, 2.1.7                                                                       
dev-lang/python:     2.5.4-r2, 2.6.1-r1                                                                     
dev-python/pycrypto: 2.0.1-r6                                                                               
dev-util/ccache:     2.4-r8                                                                                 
dev-util/cmake:      2.6.3-r1                                                                               
sys-apps/baselayout: 2.0.0                                                                                  
sys-apps/openrc:     0.4.3-r1                                                                               
sys-apps/sandbox:    1.9                                                                                    
sys-devel/autoconf:  2.13, 2.63-r1                                                                          
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                              
sys-devel/binutils:  2.19.1-r1                                                                              
sys-devel/gcc-config: 1.4.1                                                                                 
sys-devel/libtool:   2.2.6a                                                                                 
virtual/os-headers:  2.6.28-r1                                                                              
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                              
CBUILD="x86_64-pc-linux-gnu"                                                                                
CFLAGS="-O3 -march=k8 -mno-tls-direct-seg-refs -mmmx -msse3 -pipe -fomit-frame-pointer -Wl,--enable-new-dtags -Wl,--sort-common -s"
CHOST="x86_64-pc-linux-gnu"                                                                                                        
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/share/config/kdm/ /usr/kde/3.5/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/X11/xkb /usr/share/config"                                                                                               
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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 /etc/udev/rules.d"                                                                                                       
CXXFLAGS="-O3 -march=k8 -mno-tls-direct-seg-refs -mmmx -msse3 -pipe -fomit-frame-pointer -Wl,--enable-new-dtags -Wl,--sort-common -s"                        
DISTDIR="/var/tmp/distfiles"                                                                                                                                 
FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch protect-owned sfperms unmerge-orphans userfetch"                                              
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                        
LANG="it_IT@euro"
LC_ALL="it_IT@euro"
LDFLAGS=""
LINGUAS="it en_GB en"
MAKEOPTS="-j8 "
PKGDIR="/var/tmp/binpkgs"
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/portage/local/layman/sabayon /usr/portage/local/layman/stormfront /usr/portage/local/layman/berkano /usr/portage/local/layman/sunrise /usr/portage/local/layman/flameeyes-overlay /usr/portage/local/layman/kde /usr/portage/local/layman/x11 /usr/portage/local/layman/portage-aeskulap"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi aim alsa amd64 audiofile avahi bash-completion beryl bidi bzip2 cairo cddb cdr cjk clamav cli commercial cracklib crypt cups curl dbus dbx dga dri dts dv dvd dvdr dvdread effects emerald encode exscalibar fastcgi ffmpeg fftw firefox flac flash foomatic-db foomaticdb freetype ftp gcc-libffi gdbm gif gnutls gphoto2 gpm gtk+ hal iconv icq ieee1394 imap ipv6 jabber java jikes jpeg jpg kde kdehiddenvisibility kerberos krb4 lame lcms ldap ldapsam libao libcaca libclamav libg++ libnotify lm_sensors mad matroska memlimit midi mime mmx mng motif mp3 mpeg msn mudflap multilib musepack musicbrainz mysql mysqli ncurses nls nntp nptl nptlonly nsplugin odbc ogg openal openexr opengl openmotif openmp pam pcmcia pcre pdf perl pertty php png posix postgres ppds pulseaudio python qt qt3 qt3support qt4 quicktime rdesktop readline reflection ruby samba sasl scanner session sharedext sharedmem simplexml slang slp smartcard sndfile snmp sockets socks5 speex spell spl spreadsheet sqlite3 sse sse2 ssl ssse3 startup-notification streams svg switch_all_desktops sysfs tcl tcpd theora threads tiff tk truetype unicode usb v4l vcd vim-syntax vorbis wifi wmf x264 xcb xcomposite xine xml xorg xosd xpm xprint xscreensaver xsl xv xvid 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en_GB en" USERLAND="GNU" VIDEO_CARDS="fglrx vesa vga radeon v4l r300"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-04-13 12:57:38 UTC
Sorry but I won't take this bug without a full backtrace, considering I see this in your emerge --info:

CFLAGS="-O3 -march=k8 -mno-tls-direct-seg-refs -mmmx -msse3 -pipe
-fomit-frame-pointer -Wl,--enable-new-dtags -Wl,--sort-common -s"


I don't usually reject bugs on basis of extreme flags environments, but this is not extreme, it's just silly, and shows you probably have no idea what those flags do.

Either provide a full backtrace or rebuild your whole system with sane flags.
Comment 2 Jon Severinsson 2009-06-11 08:41:24 UTC
I'm getting the exact same symptom on both my amd64 and my x86 system after upgrading to sudo-1.7.1-r1, and I'm using sane CFLAGS. Downgrading to sudo-1.7.0 solves the problem.

jon@careen ~ $emerge -pv sudo
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild   R   ] app-admin/sudo-1.7.1-r1  USE="ldap pam -offensive (-selinux) -skey" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB


jon@careen ~ $ emerge --info
Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-glibc2.2.5
Timestamp of tree: Thu, 11 Jun 2009 07:45:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -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/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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -pipe"
DISTDIR="/var/tmp/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="sv_SE.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="sv sv_SE en en_GB en_US"
MAKEOPTS="-j3"
PKGDIR="/var/tmp/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/repositories/gentoo"
PORTDIR_OVERLAY="/usr/repositories/kde-testing /usr/repositories/x11 /usr/repositories/qting-edge /usr/repositories/multilib-overlay /usr/repositories/local-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi akonadi alsa amd64 audiofile avahi bash-completion berkdb branding bzip2 cairo caps cdr cli cracklib crypt cups curl dbus dga dri dts dv dvd dvdr dvdread emacs emboss encode evo fam ffmpeg firefox flac fortran gdbm gif gmp gnutls gpm gtk hal htmlhandbook iconv idn isdnlog java java5 jpeg jpeg2k kde kipi lcms ldap libnotify lzo mad matroska midi mikmod mmx mmxext mng mp3 mp4 mpeg mudflap multilib musepack mysql ncurses network nls nptl nptlonly nsplugin ogg openexr opengl openmp pam pcre pdf perl plasma png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba scanner sdl semantic-desktop session slp smp snmp speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb vorbis xattr xcb xcomposite xinerama xml xorg xulrunner xv xvid xvmc 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 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="canon samsung" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv sv_SE en en_GB en_US" LIRC_DEVICES="devinput leadtek_0010" NETBEANS_MODULES="harness ide nb xml websvccommon java apisupport gsf groovy j2ee visualweb webcommon profiler cnd identity" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" USERLAND="GNU" VIDEO_CARDS="fbdev radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


jon@desora ~ $ emerge --info
Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r11 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r11-i686-AMD_Athlon-tm-_X2_Dual_Core_Processor_BE-2350-with-glibc2.0
Timestamp of tree: Thu, 11 Jun 2009 07:15:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
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/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/var/tmp/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="sv_SE.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="sv sv_SE en en_GB en_US"
MAKEOPTS="-j3"
PKGDIR="/var/tmp/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/repositories/gentoo"
PORTDIR_OVERLAY="/usr/repositories/local-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi apache2 audiofile avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdr cli cracklib crypt cups curl dbus dga dri dvd dvdr dvdread emboss encode evo fam ffmpeg firefox fortran gdbm gif gmp gnutls gpm hal htmlhandbook iconv idn isdnlog java java5 jpeg jpeg2k kde kipi lcms ldap libnotify lzo mad midi mikmod mmx mmxext mng mpeg mudflap mysql ncurses network nls nptl nptlonly openexr opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support quicktime readline reflection samba sdl session slp smp snmp spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype unicode usb vhosts win32codecs x86 xattr xcb xcomposite xinerama xml xorg xulrunner xv xvmc 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic authn_anon authn_default authn_file 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 status unique_id userdir vhost_alias proxy proxy_ajp proxy_http substitute" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv sv_SE en en_GB en_US" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nv nouveau nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Randall Wald 2009-06-11 21:36:06 UTC
I've just posted bug #273785, which is the same bug as this one but hopefully will be resolved in some fashion other than INVALID.
Comment 4 Nicolas Dietrich 2009-06-11 22:29:19 UTC
I just commented on bug #273785 - in my case the segfault disappears when disabling the following pam_mount line in /etc/pam.d/system-auth:

session optional pam_mount.so

I don't know whether this is a pam_mount or a sudo bug.

A similar issue has shown to be a sudo bug a year ago:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=462445#53