pkg_add : works fine when compiled normally ; segfaults when gprof'ed

Garrett Cooper youshi10 at u.washington.edu
Tue Jun 19 06:57:32 UTC 2007


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


More information about the freebsd-current mailing list