[llvm-bugs] [Bug 27279] New: print-stack-trace.cc test case print "Dwarf Error: Info pointer extends beyond end of attributes"

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 8 03:44:53 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27279

            Bug ID: 27279
           Summary: print-stack-trace.cc test case print "Dwarf Error:
                    Info pointer extends beyond end of attributes"
           Product: compiler-rt
           Version: 3.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: cycheng at multicorewareinc.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The error message occurs when we do clang bootstrap testing.

Reproduce Step:

1. Need a bootstrap version of clang

mkdir stage2 && cd stage2

CLANG_PATH=/path/to/clang/built/by/gcc
CC=$CLANG_PATH/bin/clang
CXX=$CLANG_PATH/bin/clang++

cmake -DCMAKE_C_COMPILER=$CC \
      -DCMAKE_CXX_COMPILER=$CXX \
      -DCMAKE_BUILD_TYPE=Release \
      /path/to/llvm/src

make -j8 check-sanitizer

2. Search the binary "print-stack-trace.cc.tmp" and execute it.

find -name 'print-stack-trace.cc.tmp' -exec {} \;

3. Output on x86:
/usr/bin/addr2line: Dwarf Error: Info pointer extends beyond end of attributes
.. (repeat 14 times)

    #0 __sanitizer_print_stack_trace
/home/cycheng/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc:705
(print-stack-trace.cc.tmp+0x000000478f45)
    #1 main
/home/cycheng/llvm/projects/compiler-rt/test/sanitizer_common/TestCases/print-stack-trace.cc:9
(print-stack-trace.cc.tmp+0x00000049b14f)
    #2 main
/home/cycheng/llvm/projects/compiler-rt/test/sanitizer_common/TestCases/print-stack-trace.cc:13
(print-stack-trace.cc.tmp+0x00000049b14f)
    #3 __libc_start_main /build/glibc-ryFjv0/glibc-2.21/csu/libc-start.c:289
(libc.so.6+0x000000020a3f)
    #4 _start <null> (print-stack-trace.cc.tmp+0x00000041a2f8)

4. Output on PPC:
/usr/bin/addr2line: Dwarf Error: Info pointer extends beyond end of attributes
.. (repeat 14 times)

    #0 0x100a5238 in __sanitizer_print_stack_trace
/home/cycheng/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc:705
    #1 0x100d54cc in FooBarBaz()
/home/cycheng/llvm/projects/compiler-rt/test/sanitizer_common/TestCases/print-stack-trace.cc:9
    #2 0x100d5464 in main
/home/cycheng/llvm/projects/compiler-rt/test/sanitizer_common/TestCases/print-stack-trace.cc:13

5. Platform Information:
   Tested version of llvm/clang/compiler-rt:
   - r265128/r265083/r265378
   - release_38/release_38/release_38

   /usr/bin/addr2line version:
   - on x86: 2.25.1
   - on ppc: 2.25

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160408/3d00612e/attachment.html>


More information about the llvm-bugs mailing list