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

From: Garrett Cooper <youshi10_at_u.washington.edu>
Date: Mon, 18 Jun 2007 23:57:30 -0700
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
Received on Tue Jun 19 2007 - 04:57:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:12 UTC