Profiling on RELENG_7 (and probably HEAD)?
Bruce Cran
bruce at cran.org.uk
Wed Oct 24 16:49:01 PDT 2007
Ivan Voras wrote:
> Hi,
>
> I tried to profile an applications but there's a problem - the
> application crashes in getopt(). I've constructed a simple test case
> that demonstrates this:
> [...]
> The same test case works on a 6.x machine. Am I missing something or is
> profiling broken?
>
Yes, applications compiled with -pg are broken on i386 platforms. See
the threads "gcc profiling broken" from 24th October, and "gcc 4.2
profiling breaks argv" from 3rd August. A PR should probably be
submitted for it, especially since it's going to start affecting a lot
of people.
--
Bruce
More information about the freebsd-current
mailing list