profiling broken on RELENG_7/i386

Bruce Cran bruce at cran.org.uk
Sun Jul 13 14:32:49 UTC 2008


On Sun, 13 Jul 2008 18:01:12 +0400 (MSD)
Dmitry Morozovsky <marck at rinet.ru> wrote:

> On Sun, 13 Jul 2008, Peter Jeremy wrote:
> 
> PJ> On 2008-Jul-04 13:01:11 +0400, Dmitry Morozovsky <marck at rinet.ru>
> PJ> wrote:
> PJ> >It seems we step on a bug in gcc in RELENG_7/i386
> PJ> >
> PJ> >It is triggered at least by profiling program which uses
> PJ> >getopt(3):
> PJ> 
> PJ> I think it's actually in the profiling initialisation code.  If
> PJ> you try to run sample code under gdb, you can see that .mcount()
> PJ> is not preserving %ecx, though main() assumes it does.
> 
> I see.  However, I'm afraid we need knowledge of some gcc guru to
> bring the fix in.
> 

This is a known bug in 7.x and has apparently been fixed in -CURRENT. 
See http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/119709 for more
details.

-- 
Bruce Cran


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20080713/fddb19d7/signature.pgp


More information about the freebsd-hackers mailing list