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

Bug 63378

Summary: lineakd hangs due to bad cast
Product: Gentoo Linux Reporter: Johan Verrept <johan.verrept>
Component: Current packagesAssignee: Desktop Misc. Team <desktop-misc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Johan Verrept 2004-09-08 19:00:56 UTC
there is a bad cast in lkey.cpp that hangs the progam on amd64.
this patch solves the problem:

--- lkey.old    2004-09-09 05:02:03.792959152 +0100
+++ lkey.cpp    2004-09-09 05:02:13.900422584 +0100
@@ -39,7 +39,7 @@
                        name1|name2|name3 */
     string key = keyname;
     int index;
-               while (((unsigned int)(index = key.find('|'))) != string::npos) {
+               while (((index = key.find('|'))) != string::npos) {
                toggle = true;
                                dtoggle = true;
         string tmp = key.substr(0,index);


Reproducible: Always
Steps to Reproduce:
emerge and run it.
make sure xosd is on or it will not compile.





Portage 2.0.50-r10 (default-amd64-2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r1, 2.6.7)
=================================================================
System uname: 2.6.7 x86_64 12
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi aim alsa amd64 apache2 apm avi berkdb cdr crypt cups curl dvd
dvdr encode esd ethereal foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 icq
imlib jpeg libg++ libwww mad mikmod motif mozilla mpeg msn mysql ncurses nls
nogcj oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl
slang spell ssl tcltk tcpd truetype xml2 xmms xv zlib"
Comment 1 Markus Nigbur (RETIRED) gentoo-dev 2004-11-07 11:48:33 UTC
thanks for reporting.
fixed in cvs.