<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - print-stack-trace.cc test case print "Dwarf Error: Info pointer extends beyond end of attributes""
   href="https://llvm.org/bugs/show_bug.cgi?id=27279">27279</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>print-stack-trace.cc test case print "Dwarf Error: Info pointer extends beyond end of attributes"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>cycheng@multicorewareinc.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>