Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61273 - xcompmgr seg fault randomly
Summary: xcompmgr seg fault randomly
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-22 10:30 UTC by Ahmed Farid
Modified: 2004-08-22 16:25 UTC (History)
0 users

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


Attachments
xcompmgr.c-segfault-fix.patch (xcompmgr.c-segfault-fix.patch,911 bytes, text/plain)
2004-08-22 10:32 UTC, Ahmed Farid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmed Farid 2004-08-22 10:30:20 UTC
It tries to free() an already free'ed pointer and that really pisses it off..
man C is lame :P /me starts the holy war against C
I included a patch to fix that (i submitted it upstream as well but until it gets included please add this to the portage version.

Reproducible: Always
Steps to Reproduce:
1.run xcompmgr
2.enjoy eye candy for a while

Actual Results:  
after 5 - 10 mins it auto seg faults 

Expected Results:  
it should live happily ever after without crashing! 

Portage 2.0.51_pre20 (default-linux/x86/2004.2/gcc34, gcc-3.4.1, 
glibc-2.3.4.20040808-r0, 2.6.8-rc4-mm1 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz) 
================================================================= 
System uname: 2.6.8-rc4-mm1 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz 
Gentoo Base System version 1.5.3 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.14.90.0.8-r1 
Headers:  sys-kernel/linux26-headers-2.6.7-r4 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="no" 
CFLAGS="-march=pentium4 -mtune=pentium4 -O2 -ftracer -pipe -fomit-frame-pointer 
-mfpmath=sse -ffast-math" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /etc/X11/ /etc/make.conf /etc/modules.autoload.d/ /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/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="-march=pentium4 -mtune=pentium4 -O2 -ftracer -pipe 
-fomit-frame-pointer -mfpmath=sse -ffast-math-fvisibility-inlines-hidden" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache psyco sandbox sfperms" 
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://ftp.easynet.nl/mirror/gentoo/ 
ftp://mirror.scarlet-internet.nl/pub/gentoo http://mirror.gentoo.no/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-portage /var/www/localhost/htdocs/fluidportage/trunk" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 X alsa apache2 arts atm avi berkdb bidi bzlib cdr chroot crypt cups 
curl curlwrapper dba encode extensions fbcon final flac flash fmod foomaticdb 
freetype ftp gcj gd gdbm gif gimpprint gpm gtk gtk2 imagemagick imlib2 innodb 
javascript jpeg justify kde libcaca libwww mad maildir mailwrapper matroska 
ming mmap mmx mng mono motif moznoirc moznomail mozp3p mozsvg mpeg mpeg4 mysql 
ncurses network nptl ntpl offensive oggvorbis openal opengl oss pam pcap pcre 
perl pic png posix ppds pthreads pwdb python qt quicktime readline rtc sdl 
spell sse ssl svg theora threads tiff tokenizer truetype usb xml2 xmms xv xvid 
zlib"
Comment 1 Ahmed Farid 2004-08-22 10:32:25 UTC
Created attachment 37953 [details]
xcompmgr.c-segfault-fix.patch

A simple patch to check if the pointer is valid or not before freeing it.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2004-08-22 16:25:30 UTC
-r1 is already patched