[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Gprof cycle member list sorting bug
From: |
Robert Norton |
Subject: |
Gprof cycle member list sorting bug |
Date: |
Fri, 21 Sep 2007 10:12:49 -0700 |
Hi,
In cg_print.c:sort_members gprof loses a members of the linked list when
sorting! The bug is at cg_print.c:169 (in current HEAD). The guard of
the outer for loop should be just 'doing' not 'doing &&
doing->cg.cyc.next'.
To witness the bug just profile the attached program and look at the
children of the cycle in the call graph view -- only one is present when
there should be two.
Thanks,
Robert
profcycle.c
Description: profcycle.c
- Gprof cycle member list sorting bug,
Robert Norton <=