Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116112 - app-backup/kdar chrashes when compiled with '-Os'
Summary: app-backup/kdar chrashes when compiled with '-Os'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-19 17:58 UTC by Ruben Jenster
Modified: 2006-09-03 08:40 UTC (History)
0 users

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


Attachments
kdar-2.0.6.ebuild with filtered flags (kdar-2.0.6.ebuild,703 bytes, text/plain)
2005-12-19 18:00 UTC, Ruben Jenster
Details
kdar-2.0.7.ebuild with filtered flags (kdar-2.0.7.ebuild,705 bytes, text/plain)
2005-12-19 18:01 UTC, Ruben Jenster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ruben Jenster 2005-12-19 17:58:36 UTC
Trying to get kdar working I figured out that kdar shouldn't be compiled with CFLAGS="-Os". At least for me this leads to constant crashes. When trying to open an existing dar archive kdar segfaults with:

*** glibc detected *** double free or corruption (fasttop): 0x085bb110 ***
Der Wecker klingelt

I added 'filter-flags -Os' to the ebuild and kdar works fine now.

Regards,
Ruben
Comment 1 Ruben Jenster 2005-12-19 18:00:38 UTC
Created attachment 75165 [details]
kdar-2.0.6.ebuild  with filtered flags

Maybe one should change the revision number.
Comment 2 Ruben Jenster 2005-12-19 18:01:09 UTC
Created attachment 75166 [details]
kdar-2.0.7.ebuild  with filtered flags
Comment 3 Chris Cartano 2006-01-04 10:39:45 UTC
Kdar also crashes when I open an existing dar file, using both 2.06 and 2.07.  Unfortunately, I am not techy enough to try the new ebuilds that Ruben created.
Chris
Comment 4 Chris Cartano 2006-01-04 14:33:46 UTC
Thanks to Ruben's encouragement, I removed the "-0s" option from CFLAGS and recompiled kdar-2.0.7.ebuild, and it worked.  Thanks for the tip Ruben.  My emerge --info file is below (after I removed "-0s").  Hope this helps...
Chris


Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r3, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm)
Gentoo Base System version 1.12.0_pre12
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-march=athlon-xp -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://gd.tuwien.ac.at/opsys/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/app-backup/kdar"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac aim alsa apm arts audiofile avi berkdb bitmap-fonts bonobo bzip2 cdr clamav crypt cups curl dbus directfb dri dvd dvdread encode esd exif expat fam fbcon ffmpeg flac foomaticdb gdbm ghoto2 gif glut gmp gpm gstreamer gtk2 gtkhtml guile hal idn imagemagick imlib ipv6 java javascript jpeg kde lcms libg++ libwww mad mikmod mmx mng motif mp3 mpeg ncurses nls ogg oggvorbis openal opengl oscar oss pam pcre pda pdflib perl png ppds python qt quicktime readline samba scanner sdl spell sqlite ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis win32codecs xine xml xml2 xmms xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 5 MATSUU Takuto (RETIRED) gentoo-dev 2006-02-11 08:06:01 UTC
fixed in cvs. thanks
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2006-08-16 17:42:27 UTC
filter-flags is not appropriate, as it just removes the flag causing kdar to be built without any -Ox optimization.
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2006-08-16 17:43:42 UTC
Please use  replace-flags "-Os" "-O2"  instead.
Comment 8 MATSUU Takuto (RETIRED) gentoo-dev 2006-09-03 08:40:21 UTC
fixed in cvs.