Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70633 - Gnome Keyboard Layout Indicator hangs the panel
Summary: Gnome Keyboard Layout Indicator hangs the panel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 72798
  Show dependency tree
 
Reported: 2004-11-09 21:48 UTC by Alexey Parshin
Modified: 2004-11-30 04:36 UTC (History)
1 user (show)

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


Attachments
a new ebuild (libxklavier-1.04-r1.ebuild,969 bytes, application/octet-stream)
2004-11-16 18:44 UTC, Serge Ivanchenko
Details
patch for libxklavier (libxklavier-1.04-r1.patch,301 bytes, patch)
2004-11-16 18:45 UTC, Serge Ivanchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Parshin 2004-11-09 21:48:11 UTC
Gnome Keyboard Layout Indicator hangs the panel during the attempt to start.
The effect is observed on at least 3 absolutely different machines.

walker ~ # emerge info
Portage 2.0.51-r3 (default-x86-2004.2, gcc-hardenednossp, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Mobile Pentium II
Gentoo Base System version 1.6.5
distcc[7524] (dcc_mkdir) ERROR: mkdir /var/tmp/portage/.distcc/state failed: No such file or directory [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r6
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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="-march=pentium2 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://adelie.polymtl.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/root/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acpi acpi4linux afs aim alsa amd apm arts async avantgo avi bdf beepmp bigger-fonts bitmap-fonts bluetooth bootspla bzlib calendar camaelon cdrom client codecs cpdflib crypt ctype cups dbx dga dhcp dio divx4linux dts dv dvdread encode escreen esd evo f77 faac faad fam fbcon fbdev ffmpeg flac fltk foomaticdb fortran freetds fs ftp gcj gd gdbm gif gimp gimpprint gkrellm gnome gnustep gpm gtk gtk2 icq icu imagemagick imap imlib informix j2ee jabber java jp2 jpeg kde lcd ldap libg++ libwww lirc lm_sensors lzo lzw-tiff mad mailbox maildir mcal mikmod mime mixer mmx2 motif mozilla mp3 mpeg mpeg4 mplayer msn mssql mythtv ncurses nls no24bpp oav objc oci8 odbc oggvorbis opengl oracle oscar oss pam pcmcia pda pdflib perl png pnp ppds python qt quicktime readline real rplay samba scanner sdl silc slang spell ssl stroke svga tcpd tga theora threads tiff timidity tokenizer tpctlir truetype truetype-fonts trusted type1 type1-fonts usb v4l v4l2 vdesktop wifi wmf x86 xanim xine xml2 xmms xpm xv yahoo yv12 zlib"

Gnome version is 2.8rc1
Comment 1 Mike Gardiner (RETIRED) gentoo-dev 2004-11-09 22:16:57 UTC
confirmed, running from the command line produces:
*** glibc detected *** free(): invalid pointer: 0x0ffef7e4 ***

Investigating further.
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2004-11-10 02:38:01 UTC
any sort of debugging output, attach gdb to the process and get a stack trace? 
Comment 3 Serge Ivanchenko 2004-11-14 20:37:26 UTC
glibc 2.3.4.20041102

#0  0xb7212131 in kill () from /lib/libc.so.6
#1  0xb733c151 in pthread_kill () from /lib/libpthread.so.0
#2  0xb733c4cb in raise () from /lib/libpthread.so.0
#3  0xb7211ec4 in raise () from /lib/libc.so.6
#4  0xb72133bd in abort () from /lib/libc.so.6
#5  0xb724ddd0 in mallopt () from /lib/libc.so.6
#6  0xb724ca19 in mallopt () from /lib/libc.so.6
#7  0xb724b71f in free () from /lib/libc.so.6
#8  0xb74af57c in _XklUpdateCurState () from /usr/lib/libxklavier.so.8
#9  0xb74b69a0 in _xklDebugLevel () from /usr/lib/libxklavier.so.8
#10 0xb74b69a0 in _xklDebugLevel () from /usr/lib/libxklavier.so.8
#11 0x000000bf in ?? ()
#12 0xb747c8e8 in ?? () from /usr/lib/libxml2.so.2
#13 0xffffffff in ?? ()
#14 0x08105968 in ?? ()
#15 0x08105958 in ?? ()
#16 0xb74b40dc in ?? () from /usr/lib/libxklavier.so.8
#17 0xb74b40d0 in ?? () from /usr/lib/libxklavier.so.8
#18 0xb747c8e8 in ?? () from /usr/lib/libxml2.so.2
#19 0xbfffed00 in ?? ()
#20 0xffffffff in ?? ()
#21 0xffffffff in ?? ()
#22 0x00000000 in ?? ()
#23 0x00000000 in ?? ()
#24 0x00000000 in ?? ()
#25 0x08104558 in ?? ()
#26 0x08104558 in ?? ()
#27 0x08104468 in ?? ()
#28 0xb74b6178 in ?? () from /usr/lib/libxklavier.so.8
#29 0x080f8348 in ?? ()
#30 0x080f8318 in ?? ()
#31 0x00000000 in ?? ()
#32 0xb74af8ab in _XklUpdateCurState () from /usr/lib/libxklavier.so.8
#33 0xbfffed00 in ?? ()
#34 0x080ffde0 in ?? ()
#35 0xb74b4250 in ?? () from /usr/lib/libxklavier.so.8
#36 0xb74b31c1 in ?? () from /usr/lib/libxklavier.so.8
#37 0xbffff140 in ?? ()
#38 0x00000000 in ?? ()
#39 0x00000000 in ?? ()
#40 0x00000000 in ?? ()
#41 0x626b782f in ?? ()
#42 0x666e6f43 in ?? ()
#43 0x65526769 in ?? ()
#44 0x74736967 in ?? ()
#45 0x6d2f7972 in ?? ()
#46 0x6c65646f in ?? ()
#47 0x7473694c in ?? ()
#48 0x646f6d2f in ?? ()
#49 0x635b6c65 in ?? ()
#50 0x69666e6f in ?? ()
#51 0x65744967 in ?? ()
#52 0x616e2f6d in ?? ()
#53 0x3d20656d in ?? ()
#54 0x63702720 in ?? ()
#55 0x27353031 in ?? ()
#56 0xb734005d in tcdrain () from /lib/libpthread.so.0
#57 0xb7240035 in _IO_wdefault_xsgetn () from /lib/libc.so.6

Comment 4 Serge Ivanchenko 2004-11-16 18:44:29 UTC
Created attachment 44124 [details]
a new ebuild
Comment 5 Serge Ivanchenko 2004-11-16 18:45:14 UTC
Created attachment 44125 [details, diff]
patch for libxklavier
Comment 6 Serge Ivanchenko 2004-11-16 18:46:01 UTC
I found the problem, the bug belongs to libxklavier...

What do you think about "free" of static buffer ??

I post a quick fix (strdup the buffer). But I beleve that somebody have to rewrite the code in order to make this library thread safe and get rid of possible memory leaks (I can see them now).
Comment 7 foser (RETIRED) gentoo-dev 2004-11-29 14:18:43 UTC
added the patch to libxklavier-1.04-r1, please test
Comment 8 Mike Gardiner (RETIRED) gentoo-dev 2004-11-29 23:03:50 UTC
Patch fixes for me, Alexey?
Comment 9 Mike Gardiner (RETIRED) gentoo-dev 2004-11-30 01:14:02 UTC
Reopen if this is still a problem, thanks for applying foser.