Bug 178758 - kde-base/kdm-3.5.6-r1 memory corruption error due to broken /etc/shells and bugs in glibc
Bug#: 178758 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: kde@gentoo.org Reported By: davidepesa@gmail.com
Component: KDE
URL: 
Summary: kde-base/kdm-3.5.6-r1 memory corruption error due to broken /etc/shells and bugs in glibc
Keywords:  
Status Whiteboard: 
Opened: 2007-05-16 12:57 0000
Description:   Opened: 2007-05-16 12:57 0000
Just after I enter my password at kdm login screen, kdm_greet prints the
following error to syslog:
kdm_greet[2551]: Internal error: memory corruption detected

Everything goes fine however: I can login successfully and continue to work
without any further problem.
I do use both a custom kdm theme and a custom splash screen.

emerge --info:
Portage 2.1.2.7 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r2,
2.6.21-gentoo-mactel x86_64)
=================================================================
System uname: 2.6.21-gentoo-mactel x86_64 Intel(R) Core(TM)2 CPU T7600 @
2.33GHz
Gentoo Base System release 2.0.0_alpha3
Timestamp of tree: Tue, 15 May 2007 12:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
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.4_p6, 1.5, 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.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -fomit-frame-pointer -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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild
/etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=nocona -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms
strict userfetch"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/                 
ftp://ftp.unina.it/pub/linux/distributions/gentoo"
LANG="it_IT"
LC_ALL="it_IT"
LINGUAS="it"
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"
PORTDIR_OVERLAY="/usr/portage/local/pesa"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi aim alsa amd64 avahi bash-completion bitmap-fonts
blas bluetooth bzip2 cairo caps cddb cdparanoia cdr cli cracklib crypt curl
curlwrappers dbus directfb dri dts dv dvd dvdr dvdread emboss encode evo exif
expat fam fbcon ffmpeg fftw firefox flac ftp gd gdbm gif glut gnutls gpm
graphviz hal iconv icq idn ieee1394 imagemagick imlib ipod ipv6 isdnlog jabber
java javascript jbig jpeg jpeg2k kde kdeenablefinal kdexdeltas lapack lcms
libg++ libsamplerate lirc lm_sensors lua mad mailwrapper matroska midi mikmod
mmap mmx mng mp3 mpeg mplayer msn musepack musicbrainz ncurses nls nptl
nptlonly nsplugin offensive ogg opengl oscar oss pam pcmcia pcre pdf perl
plotutils png posix pppd python qt3 qt3support qt4 quicktime readline
reflection ruby samba sasl sdl session slang sndfile snmp sockets socks5 speex
spell spl sqlite sqlite3 sse sse2 ssl svg tcpd theora threads tiff truetype
truetype-fonts type1-fonts unicode usb v4l vcd vorbis wifi wmf x264 xcomposite
xine xinerama xml xorg xpm xv xvid 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 mulaw multi null plug rate route
share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
mtxorb ncurses text" LINGUAS="it" LIRC_DEVICES="inputlirc sir" USERLAND="GNU"
VIDEO_CARDS="fglrx radeon vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Jorge Manuel B. S. Vicetto 2007-05-17 00:05:53 0000 -------
Interesting, I hadn't noticed it before, but I have the same issue here:

May 13 14:29:17 atl64 kdm_greet[9756]: Internal error: memory corruption
detected
May 14 02:32:44 atl64 kdm_greet[5991]: Internal error: memory corruption
detected

emerge --info

Portage 2.1.2.7 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r2,
2.6.21-gentoo x86_64)
=================================================================
System uname: 2.6.21-gentoo x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 16 May 2007 23:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -momit-leaf-frame-pointer -ftracer -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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild
/etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=athlon64 -momit-leaf-frame-pointer -ftracer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.tut.atm.fi/gentoo
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://mirrors1.netvisao.pt/gentoo/"
LC_ALL="POSIX"
MAKEOPTS="-j2"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X acpi alsa amd64 avi berkdb bitmap-fonts cdr cli cracklib crypt
cups dri dvd encode fortran gdbm gpm hal iconv ipv6 isdnlog jpeg kde libg++
midi mmx mpeg ncurses nls nptl nptlonly opengl pam pcre perl png pppd python
qt3 readline reflection samba session spl sse sse2 ssl tcpd truetype
truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="usb-audio intel8x0"
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="keyboard mouse" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #2 From Carsten Lohrke 2007-05-17 10:04:57 0000 -------
The only upstream bug mentioning a memory corruption is

https://bugs.kde.org/show_bug.cgi?id=143477

which points to

http://sourceware.org/ml/libc-hacker/2006-12/msg00009.html

Our glibc isn't pathed accordingly as it seems...

------- Comment #3 From SpanKY 2007-05-19 04:17:56 0000 -------
ive added the fix from upstream (thanks for the links Carsten) and it'll be in
next glibc version i push out ... not worried too much about this issue since
it can easily be worked around by not having a broken /etc/shells in the first
place

------- Comment #4 From Davide Pesavento 2007-05-31 13:24:11 0000 -------
NOT fixed in glibc-2.5-r3 + kde-base/kdm-3.5.7...

------- Comment #5 From SpanKY 2007-05-31 18:36:22 0000 -------
then i dont plan on fixing it for glibc-2.5

try glibc-2.6

------- Comment #6 From Davide Pesavento 2007-05-31 22:56:32 0000 -------
Are there any particular reasons why glibc-2.6 has no keywords?
I've found the following inside the ebuild:
KEYWORDS="" #DO NOT KEYWORD; WAIT FOR 2.6.1

I do not want to install a bugged glibc version just to fix this minor issue...

------- Comment #7 From Joseph Yasi 2007-07-25 19:41:10 0000 -------
I still get this bug with glibc-2.6 and kdm-3.5.7.  I believe it may be due to
this kde bug: http://bugs.kde.org/show_bug.cgi?id=147454.  Gentoo also uses the
same broken kdelibs patch as Fedora and Kubuntu:
kdelibs-3.5-sudo-permissions.diff.  It appears Fedora has dropped the patch.

------- Comment #8 From SpanKY 2007-07-25 21:26:38 0000 -------
that's in kde's court now ;)

------- Comment #9 From Carsten Lohrke 2007-07-26 12:43:15 0000 -------
Bummer. Thanks Joseph. Fixed with kdelibs-3.5.6-r10 and kdelibs-3.5.7-r2.