Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263379 - x11-wm/fluxbox - ~/.fluxbox/keys parsing error
Summary: x11-wm/fluxbox - ~/.fluxbox/keys parsing error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Jim Ramsay (lack) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-22 16:23 UTC by Alejandro Muñiz
Modified: 2009-04-08 16:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/messages (messages,220.47 KB, text/plain)
2009-03-22 16:25 UTC, Alejandro Muñiz
Details
~/.fluxbox/keys (keys,2.99 KB, text/plain)
2009-03-23 18:51 UTC, Alejandro Muñiz
Details
~/.fluxbox/log (log,533 bytes, text/plain)
2009-03-23 18:52 UTC, Alejandro Muñiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Muñiz 2009-03-22 16:23:38 UTC
startx freezes my system (Out of memory) if the ~/.fluxbox/keys has that lines:


OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing 
NearestCorner}

but had no problem if I edit ~/.fluxbox/keys and leave it in only one line:

OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner}

It looks as a file parsing error.

Here is my system info

pacmac@WiRe ~ $ cat .xinitrc
(sleep 4 && wbar) & 
fbsetbg ~/.fluxbox/wallpapers/Hellboy-wallpaper-1623.jpg
Eterm &
/usr/bin/xinput set-button-map 3 1 3 2 4 5 6 7 8 9 10 11 12 &
exec startfluxbox
#exec gnome-session


x11-wm/fluxbox-1.1.1  USE="gnome imlib nls slit toolbar truetype -vim-syntax -xinerama"

x11-base/xorg-server-1.5.3-r5  USE="hal ipv6 nptl sdl xorg (-3dfx) -debug -dmx -kdrive -minimal -tslib" INPUT_DEVICES="evdev synaptics -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -keyboard -magellan -microtouch -mouse -mutouch -palmax -penmount -spaceorb -summa -tek4957 -tslib -ur98 -virtualbox -vmmouse -void -wacom" VIDEO_CARDS="nvidia -apm -ark -ast -chips -cirrus -dummy -epson -fbdev -fglrx (-geode) -glint -i128 (-i740) (-impact) (-imstt) -intel -mach64 -mga -neomagic (-newport) -nv -r128 -radeon -radeonhd -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l (-vermilion) -vesa -via -virtualbox -vmware -voodoo (-xgi)"

pacmac@WiRe ~ $ uname -a        
Linux WiRe 2.6.28-gentoo-r4 #4 SMP Fri Mar 20 00:55:16 CET 2009 x86_64 Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz GenuineIntel GNU/Linux

pacmac@WiRe ~ $ emerge --info   
Portage 2.1.6.9 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-glibc2.2.5
Timestamp of tree: Sun, 22 Mar 2009 15:00:01 +0000
ccache version 2.4 [enabled]    
app-shells/bash:     4.0_p10-r1 
dev-java/java-config: 2.1.7     
dev-lang/python:     2.5.4-r2   
dev-util/ccache:     2.4-r8     
dev-util/cmake:      2.6.3      
sys-apps/baselayout: 2.0.0      
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.6
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.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="-march=core2 -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/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /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/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/source/ "
LDFLAGS="-Wl,-O1"
LINGUAS="es_ES es"
MAKEOPTS="-j2"
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://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread eds emboss encode evo fam fbcon fbcondecor firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ida ipv6 isdnlog jpeg lcms ldap libnotify lm_sensors mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis xml xorg xulrunner xv 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 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es_ES es" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always

Steps to Reproduce:
1.startx
2.
3.
Comment 1 Alejandro Muñiz 2009-03-22 16:25:44 UTC
Created attachment 185891 [details]
/var/log/messages
Comment 2 Jim Ramsay (lack) (RETIRED) gentoo-dev 2009-03-23 17:16:02 UTC
Why do you think it is a file parsing error?

In your messages log, I see your machine is out of memory.

Could you please also post the ~/.fluxbox/keys which you think causes the problem?

You can also change your ~/.fluxbox/startup to start fluxbox with the '-log' option to capture the fluxbox log, which would be very valuable here as well.  See the last line of that file for an example of how to do this.
Comment 3 Alejandro Muñiz 2009-03-23 18:51:04 UTC
(In reply to comment #2)
I think it because when I change the mentioned line, it works
Comment 4 Alejandro Muñiz 2009-03-23 18:51:46 UTC
Created attachment 186021 [details]
~/.fluxbox/keys

The ~/.fluxbox/keys that causes the problem
Comment 5 Alejandro Muñiz 2009-03-23 18:52:23 UTC
Created attachment 186022 [details]
~/.fluxbox/log
Comment 6 Jim Ramsay (lack) (RETIRED) gentoo-dev 2009-03-23 19:56:39 UTC
(In reply to comment #4)
> Created an attachment (id=186021) [edit]
> ~/.fluxbox/keys

I hope this is just a paste error, but the line in question is actually split across 2 lines in the file you posted.

What happens if you remove the linebreak between 'StartResizing' and 'NearestCorner' and just leave the rest of the file alone?
Comment 7 Alejandro Muñiz 2009-03-23 23:19:24 UTC
(In reply to comment #6)
If you read my first post, I'm telling exactly the same. But it's an error parsing the config file. There must be no difference between putting it with or without new line and yet there's a difference. 

Excuse me but my english is a crap.
Comment 8 Jim Ramsay (lack) (RETIRED) gentoo-dev 2009-04-08 16:41:49 UTC
(In reply to comment #7)
> There must be no difference between putting it with or
> without new line and yet there's a difference. 

I disagree there "must be no difference".  The fluxbox keys file does not allow you to split commands across multiple lines, that's just the way it is.

However, I do agree that a broken key file should *not* cause fluxbox to crash or hang.

I've just checked in a patch that will produce a "regular" error in this case, and will hopefully avoid this and other similar hangs.  I have also submitted the patch to upstream, so hopefully they will include this in the next release soon.

Thanks very much for the bug report!