• Ingo Molnar's avatar
    perf annotate: Fix segmentation fault · 15f3fa4e
    Ingo Molnar authored
    Linus reported this perf annotate segfault:
    
            [torvalds@nehalem git]$ perf annotate unmap_vmas
            Segmentation fault
    
           	#0  map__clone (self=<value optimized out>) at builtin-annotate.c:236
           	#1  thread__fork (self=<value optimized out>) at builtin-annotate.c:372
    
    The bug here was that builtin-annotate.c was a copy of
    builtin-report.c and a threading related fix to builtin-report.c
    didnt get propagated to builtin-annotate.c ...
    Reported-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    15f3fa4e
builtin-annotate.c 28.5 KB