Date: Mon, 18 Jun 2007 23:57:30 -0700 From: Garrett Cooper <youshi10@u.washington.edu> To: current@freebsd.org Subject: Re: pkg_add : works fine when compiled normally ; segfaults when gprof'ed Message-ID: <46777E5A.3060703@u.washington.edu> In-Reply-To: <467744AC.3030304@u.washington.edu> References: <467744AC.3030304@u.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Garrett Cooper wrote:
> make.conf:
>
> CFLAGS = -O2 -pipe -fno-strict-aliasing
> CPUTYPE = pentium4
> MAKEOPTS = -j3
>
> .if defined(MK_PROFILED_BIN) && ${MK_PROFILED_BIN} != 0
> CFLAGS += -g -pg
> .endif
>
> When I compile pkg_install, I set MK_PROFILED_BIN to 1.
>
> This is on an i386 system synced and recompiled yesterday. I
> deleted /usr/obj before recompiling everything.
>
> Thanks,
> -Garrett
Compiling with CFLAGS = -g alone doesn't exhibit this problem. Only with
CFLAGS = -pg..
This didn't happen yesterday, but the last time I synced and rebuilt my
server was last week (following ULE scheduler change / locking
improvements).
-Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46777E5A.3060703>
