Menu

#10 misng function calls in report

open
nobody
5
2005-01-24
2005-01-24
Anonymous
No

I run simple test with calls

main-->g
\->f->g

and callgrind detects that g has call count 2 but fails
to show all callers: only shows f, misses main.

versions used:
valgrind-2.2.0
callgrind-0.9.10
kcachegrind-0.4.5

on Linux:
Linux xxx.xxx.com 2.4.20-30.7.legacy #1 Fri Feb 20
10:46:44 PST 2004 i686 unknown

Discussion

  • Nobody/Anonymous

    simple .c test with 2 functions

     
  • Nobody/Anonymous

    Logged In: NO

    Actually after rerunning exactly the same case I see that
    now it's correct. No change was made.

    Many diffs in callgrind.outXXX file compared with failed case.

    I am confused now.

     
  • Nobody/Anonymous

    Logged In: NO

    Sorry for many commants, but:

    different runs of kcachegrind off the same file
    cachegrind.outXXX give different pictures: sometimes one
    call to g missing one lft, sometimes g is completely
    missing, sometimes it's correct (both calls visible).

    Something is fishy in the kcachegrind interface I think.

    Yuri (yuri at DELETEtsoftALL.comCAPITALS)

     
  • Nobody/Anonymous

    Logged In: NO

    Sorry for many commants, but:

    different runs of kcachegrind off the same file
    cachegrind.outXXX give different pictures: sometimes one
    call to g missing one lft, sometimes g is completely
    missing, sometimes it's correct (both calls visible).

    Something is fishy in the kcachegrind interface I think.

    Yuri (yuri at DELETEtsoftALL.comCAPITALS)

     
  • Nobody/Anonymous

    Logged In: NO

    PLEASE DISREGARD and close: it was my misunderstanding.

    Sorry.

    Yuri

     
  • Nobody/Anonymous

    Logged In: NO

    I can confirm this bug with
    Valgrind 2.4.0.rc4
    callgrind-0.9.10
    KCachegrind-0.4.5kde

    The size of my application is ~4MB (with -g1) to ~8M (with -g3)

    When I run cachegrind alone with my application, all
    funtions seems to be there in the report file. With
    callgrind report files, there are functions missing.

    I can send report files on request.

    Lehtonen, Matti
    m-Matti-a.Lehtonen <-> IKI.Fi

     
  • Nobody/Anonymous

    Logged In: NO

    I have traced this bug and it seems that string compression
    is causing this. When optin --compress-strings=no is used,
    all functions are reported.

    Lehtonen, Matti
    m-Matti-a.Lehtonen <-> IKI.Fi

     
  • Nobody/Anonymous

    Logged In: NO

    damn ... false alarm .. .still missing, ignore previous message

    Lehtonen, Matti
    m-Matti-a.Lehtonen <-> IKI.Fi

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.