(gdb) break /home/ubuntu/binutils-gdb/gdb/testsuite/gdb.base/annota1.c:28
Breakpoint 1 at 0x100006e4: file 
/home/ubuntu/binutils-gdb/gdb/testsuite/gdb.base/annota1.c, line 28.

(gdb) run
Starting program: /tmp/foo 
Can't read symbols from system-supplied DSO at 0x3fffb7fa0000: File truncated

Breakpoint 1, main () at 
/home/ubuntu/binutils-gdb/gdb/testsuite/gdb.base/annota1.c:28
28        int my_array[3] = { 1, 2, 3 };  /* break main */


I wonder if the gdb complaint about the kernel VDSO is causing the test to 
fail. The warning is almost certainly a result of
this kernel patch:


commit 24b659a13866b935eca72748ce725279bd3c4466
Author: Anton Blanchard <[email protected]>
Date:   Wed Feb 12 17:18:50 2014 +1100

    powerpc: Use unstripped VDSO image for more accurate profiling data

    We are seeing a lot of hits in the VDSO that are not resolved by perf.
    A while(1) gettimeofday() loop shows the issue:
    
    27.64%  [vdso]  [.] 0x000000000000060c
    22.57%  [vdso]  [.] 0x0000000000000628
    16.88%  [vdso]  [.] 0x0000000000000610
    12.39%  [vdso]  [.] __kernel_gettimeofday
     6.09%  [vdso]  [.] 0x00000000000005f8
     3.58%  test    [.] 00000037.plt_call.gettimeofday@@GLIBC_2.18
     2.94%  [vdso]  [.] __kernel_datapage_offset
     2.90%  test    [.] main
    
    We are using a stripped VDSO image which means only symbols with
    relocation info can be resolved. There isn't a lot of point to
    stripping the VDSO, the debug info is only about 1kB:
    
    4680 arch/powerpc/kernel/vdso64/vdso64.so
    5815 arch/powerpc/kernel/vdso64/vdso64.so.dbg
    
    By using the unstripped image, we can resolve all the symbols in the
    VDSO and the perf profile data looks much better:
    
    76.53%  [vdso]  [.] __do_get_tspec
    12.20%  [vdso]  [.] __kernel_gettimeofday
     5.05%  [vdso]  [.] __get_datapage
     3.20%  test    [.] main
     2.92%  test    [.] 00000037.plt_call.gettimeofday@@GLIBC_2.18

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1365664

Title:
  gdb source test suites are failing in Ubuntu14.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1365664/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to