Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 69194

Summary: app-arch/p7zip segfaults when linked using -static flag
Product: Gentoo Linux Reporter: ak <4nykey>
Component: Current packagesAssignee: Radoslaw Stachowiak (RETIRED) <radek>
Status: RESOLVED FIXED    
Severity: normal CC: flash3001
Priority: High    
Version: unspecified   
Hardware: x86   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description ak 2004-10-27 16:03:23 UTC
7za (app-arch/p7zip) gives segmentation fault on execution, removing -static makes it work.

arch: ~x86
gcc: sys-devel/gcc-3.4.2-r2
glibc: sys-libs/glibc-2.3.4.20041006
Comment 1 ak 2004-10-27 16:10:02 UTC
additional info, just in case:

Portage 2.0.51-r2 (gcc34-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.9-rc4-xx3 i686)
=================================================================
System uname: 2.6.9-rc4-xx3 i686 AMD Duron(tm) processor
Gentoo Base System version 1.5.3
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,sys-devel/binutils-2.15.92.0.2-r2
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon -mtune=athlon -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-O3 -march=athlon -mtune=athlon -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -ftracer -pipe -fvisibility-inlines-hidden"
FEATURES="autoaddcvs candy ccache confcache distlocks prelink sandbox"
MAKEOPTS="-j2"
Comment 2 Roc Vallès 2004-10-31 08:12:07 UTC
It segfaults here building 4.10, no matter if I limit my cflags to O2, and using gcc 3.3.4-r1 all of the times (doesn't build in 3.4). I don't use static. If I rebuild the old one, 0.91, it works perfectly.
Comment 3 ak 2004-10-31 11:41:56 UTC
I don't use static either. It's just that Makefile sets it explicitly.
Comment 4 Radoslaw Stachowiak (RETIRED) gentoo-dev 2004-10-31 12:39:47 UTC
Could You please try to build application from sources?
Because it looks like its not gentoo packaging problem but the app itself, and should be reported back to developer on sf.net
Comment 5 ak 2004-10-31 14:22:00 UTC
I have tried building it from sources, same effect (ie segfault).
Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2004-11-06 07:56:28 UTC
i can confirm that it doesn't segfault if you remove -static
Comment 7 Radoslaw Stachowiak (RETIRED) gentoo-dev 2004-11-11 11:37:42 UTC
commited -r1 ebuild into portage.
added IUSE into it, so default now is to dynamic linkage, but with "static" USE you got old behaviour. closing bug now, but please report in case of problems.