app-backup/dar-2.2.2 compiled with gcc-3.4.3 (dunno if happens with other versions) segfaults when creating backup. Segfaults when compiled with -march=athlon-xp -Os -fomit-frame-pointer. Works ok when compiled without -fomit-frame-pointer Reproducible: Always Steps to Reproduce: 1. emerge =app-backup/dar-2.2.2 2. Issue dar -c /dir/archive -z -b -R /dirforbackup 3. Watch it segfault Actual Results: Dar segfaulted. Expected Results: It should create my backup. Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.3-20050110, glibc-2.3.5- r0, 2.6.11-cko5-ati-iso8859-2-pktwri i686) ================================================================= System uname: 2.6.11-cko5-ati-iso8859-2-pktwri i686 AMD Athlon XP-M Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 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.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -mtune=athlon-xp -pipe -Os -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /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 -mtune=athlon-xp -pipe -Os -fomit-frame-pointer - fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo" LANG="pl_PL.UTF-8" LINGUAS="pl en_US de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X alsa avi bash-completion bitmap-fonts bzip2 cdr crypt cups curl dar64 dga diet dvd dvdread eds emacs emboss encode foomaticdb fortran gd gdbm gif graphviz gstreamer imagemagick imap imlib jpeg lcms leim libg++ libwww lzo mad mbox mmx mmxext mp3 mpeg ncurses nls nptl ogg oggvorbis opengl pdflib perl pic png ppds python quicktime readline rtc sdl slang smtp sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1 type1-fonts unicode vorbis xanim xml2 xosd xv xvid xvnc zlib linguas_pl linguas_en_US linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS
It doesn't even compile when the "static" use flag is set. I'll send additional info when i recompile it with this flag (once again). The ebuild should filter the -fomit-frame-pointer flag !!!!!
Shit. My first bug report and i fucked up. Ok, now i got it ( after several reemerges i finally really know when it segfaults. Dar segfaults when you want to create an archive bigger than 2G, when the dar32 flag is set and compiled with -fomit-frame-pointer. When you want to create an archive =< 2G then it gives the following output: ############################################### # NOT CAUGHT EXCEPTION, # # E X I T I N G ! # # # ############################################### THANKS TO REPORT THE PREVIOUS OUTPUT TO MAINTAINER GIVING A DESCRIPTION OF THE CIRCUMPSTANCES. IF POSSIBLE TRY TO PRODUCE THIS ERROR, A SCENARIO THAT CAN REPRODUCE IT WOULD HELP MUCH IN SOLVING THIS PROBLEM. THANKS Same thing happens with dar64 flag. When compiled whith -fomit-frame-pointer it gives this nice output from above, but when I want to make a archive with slice size higher than dar supports with 64bit integers, then it segfaults too (try -s 4400000P - works for me :). Without dar32 and dar64 use flags, you get only this nice NOT CAUGHT EXCEPTION output above. So if you wanna have a working dar, don't compile it with -fomit-frame-pointer. This -fomit-frame-pointer flag was set from the jackass installation method. Now I'll just stick with -Os -pipe :) The ebuild should filter this flag. Greetz Andrew
how does it behave if you have -pic (taken into account it supports the pic flag). -fomit-frame-pointer only has noticeable effect when you have assembler- inlines, and combining these with PIC can be really wierd.
Created attachment 67033 [details] cd /usr/portage/distfiles/dar-2.2.2 ; make | grep -i pic Shows what is compiled with -fPIC flag ( I did not set anything specific with configure, i did this maually, not with emerge ).
fixed in cvs.