Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151960 - kcontrol 3.5.2 crashes when input actions contain nested conditions
Summary: kcontrol 3.5.2 crashes when input actions contain nested conditions
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-19 08:18 UTC by Stefan Kiesler
Modified: 2007-02-03 12:40 UTC (History)
0 users

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


Attachments
console output of a crash caused by clicking on an existing action (kcontrol.log,9.26 KB, text/plain)
2006-10-19 08:22 UTC, Stefan Kiesler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Kiesler 2006-10-19 08:18:03 UTC
Just tried KDE mouse gestures for the first time and stumbled right upon a bug similar to 94010, 88578 and 97773.
kcontrol crashes when clicking on / creating a new action within a group constrained by a "NOT" condition that contains further nested conditions.

Steps to reproduce:
kcontrol -> Regional & Accessibility -> Input Actions.
In "Actions", create a new group and put some actions in there. Now click the group title and select "Conditions" on the right pane. Select "New" -> "Not". Click the created "Not" and select "New" -> "Active Window". Enter a matching condition, like "window title matches regular expression ' - Opera$'". It will be added as a nested subcondition of the previous "Not". Apply changes and quit kcontrol.
Restart kcontrol. Go to input actions again. When browsing the groups and their actions, kcontrol is very likely to crash when you:
a) Click on an action within the group for which you defined the nested condition. Just clicking the group name doesn't force a crash, you have to click one of its actions.
b) Click on the group name and try to add a new action to it.

Actual results:
kcontrol crashes: "free(): invalid pointer" (see attachment).

Expected results:
Don't crash.

Workaround:
Don't nest "containing / matching" conditions within a "Not" condition, use unnested "not containing / not matching" conditions instead.


emerge --info:

Portage 2.1.1-r1 (default-linux/amd64/2005.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.5
Last Sync: Thu, 19 Oct 2006 09:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://212.219.56.152/sites/www.ibiblio.org/gentoo/ http://212.219.56.162/sites/www.ibiblio.org/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d aac aalib alsa berkdb bitmap-fonts bzip2 cairo cli cracklib crypt cups dlloader dri dts dvd dvdr dvdread eds elibc_glibc emboss encode ffmpeg flac foomaticdb fortran gif glut gpm gstreamer gtk gtk2 gtkhtml hal imagemagick imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jack jpeg jpeg2k kde kernel_linux linguas_de lm_sensors lzw lzw-tiff mad mng mp3 mpeg mysql ncurses nls nptl nsplugin ogg opengl pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl svg tcpd tidy tiff truetype truetype-fonts type1-fonts usb userland_GNU v4l vcd video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa vorbis xine xinerama xml xml2 xorg xpm xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS


emerge -pv --oneshot khotkeys kcontrol:

[ebuild   R   ] kde-base/khotkeys-3.5.1  USE="xinerama -arts -debug -kdeenablefinal -kdehiddenvisibility" 0 kB
[ebuild   R   ] kde-base/kcontrol-3.5.2  USE="opengl ssl xinerama -arts -debug -ieee1394 -kdeenablefinal -kdehiddenvisibility -logitech-mouse" 0 kB
Comment 1 Stefan Kiesler 2006-10-19 08:22:01 UTC
Created attachment 100020 [details]
console output of a crash caused by clicking on an existing action
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2006-12-19 11:19:31 UTC
fixed in 3.5.5?
Comment 3 Charlie Shepherd (RETIRED) gentoo-dev 2007-02-03 12:40:21 UTC
See comment 2