Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330417 - When start wmxkb get Segmentaion fault
Summary: When start wmxkb get Segmentaion fault
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Dockapp Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-29 20:11 UTC by Pál Csányi
Modified: 2010-09-09 10:39 UTC (History)
1 user (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 Pál Csányi 2010-07-29 20:11:37 UTC
I emerge the Masked package 'wmxkb' that I unmasked editing '/etc/portage/package.keywords' (x11-plugins/wmxkb).
Every time when I start the wmxkb I get Segmentation fault.

Reproducible: Always

Steps to Reproduce:
1. Start on the xterm window wmxkb.



Actual Results:  
Get Segmentation fault.

Expected Results:  
I expect to get it to work.
Comment 1 Jory A. Pratt gentoo-dev 2010-07-31 13:30:16 UTC
re-open with emerge info.
Comment 2 Pál Csányi 2010-07-31 14:16:28 UTC
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-x86_64-Intel-R-_Core-TM-2_CPU_6320_@_1.86GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 29 Jul 2010 08:45:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.5-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.inf.elte.hu/ http://gentoo.inf.elte.hu/"
LANG="hu_HU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="hu"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.hu.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aim alsa amd64 apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdr clamav cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emacs emboss encode esd examples exif fam ffmpeg firefox flac fontconfig foomaticdb fortran ftp gd gdbm geoip gif gimp glut gnustep gpm gtk gzip hal hardened hddtemp iconv icq icu idn ieee1394 imagemagick ipv6 jabber jack javascript jbig jingle jpeg jpeg2k kerberos krb4 lame latex lcms libcaca libnotify libwww lm_sensors mad mbox mcve memlimit mikmod mime mmap mmx mng modules mp3 mp4 mpeg mpi mplayer msn mtp mudflap multilib mysql mysqli ncurses neXt nls nntp nocd nptl nptlonly nsplugin objc odbc ogg openal openexr opengl openmp osc oscar oss pam pango pcntl pcre pdf perl php png postgres ppds pppd python qt3support qt4 quicktime raw readline reflection sasl scanner sdl seamonkey session shorten simplexml slp smp sndfile snmp source sox spell spl sse sse2 ssl startup-notification subversion svg symlink sysfs syslog sysvipc szip tcpd theora threads tidy tiff timidity truetype unicode usb v4l v4l2 vhosts videos vnc vorbis wavpack wddx wmf wxwidgets wxwindows x264 xcb xft xine xml xmlrpc xmp xorg xpm xulrunner 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 cgi cgid 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hu" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Michael Weber (RETIRED) gentoo-dev 2010-07-31 18:35:29 UTC
I just reproduced it w/ and w/o debugging symbols under >=gnome-2.30.

FEATURES="nostrip" CFLAGS="-g" emerge -av1 x11-plugins/wmxkb

michael@io ~ % gdb wmxkb

warning: Can not parse XML syscalls information; XML support was disabled at compile time.
GNU gdb (Gentoo 7.0.1 p1) 7.0.1
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/wmxkb...done.
(gdb) run
Starting program: /usr/bin/wmxkb 

Program received signal SIGSEGV, Segmentation fault.
0x0000000000403305 in collectSymbolNames (kbd_desc_ptr=0x61b420)
    at wmxkb_xkb.c:424
424	wmxkb_xkb.c: No such file or directory.
	in wmxkb_xkb.c
(gdb) 

I've used `setxkbmap us` and `setxkbmap us_de` (regular us w/ umlauts on the base letters). 
Comment 4 Michele Noberasco (RETIRED) gentoo-dev 2010-09-09 10:39:32 UTC
(In reply to comment #3)
I cannot reproduce the issue here, and

>     at wmxkb_xkb.c:424
I find while(--j>=0) SymbolNames[--k] = SymbolNames[j];

which is not that useful.

I cannot neither reproduce nor fix this bug.

Michael, if you are able (and willing) to fix it, please reopen.