<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - LLVM crashed while building xray_trampoline_x86_64 with -gdwarf-5"
   href="https://bugs.llvm.org/show_bug.cgi?id=41950">41950</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM crashed while building xray_trampoline_x86_64 with -gdwarf-5
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>cmtice@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21975" name="attach_21975" title=".S file generated by LLVM to go with bug report">attachment 21975</a> <a href="attachment.cgi?id=21975&action=edit" title=".S file generated by LLVM to go with bug report">[details]</a></span>
.S file generated by LLVM to go with bug report

When building LLVM itself (inside Chrome OS), using LLVM r353983, using
-gdwarf-5, LLVM died:

/usr/bin/x86_64-pc-linux-gnu-clang  -DXRAY_HAS_EXCEPTIONS=1 -DXRAY_SUPPORTED=1
-D_GNU_SOURCE -D__STDC_CO\
NSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Iprojects/compiler-rt/lib/xray -I/var/tmp/portage/sys-de\
vel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/compiler-rt/lib/xray
-I/usr/include/libxml2 -\
Iinclude
-I/var/tmp/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/llvm/includ\
e
-I/var/tmp/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/compiler-rt/lib/xr\
ay/..
-I/var/tmp/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/compiler-rt/li\
b/xray/../../include -O2 -pipe -fno-sanitize=vptr -Wno-backend-plugin -fPIC  
-fprofile-instr-use=/var/tmp/portage/s\
ys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm.profdata  -m64 -fPIC
-fno-builtin -fno-exceptions -fomit-frame-p\
ointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack
-fvisibility=hidden -fno-lto -O3 -gline-tables-\
only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor
-fno-rtti -MD -MT projects/compiler-rt/\
lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_trampoline_x86_64.S.o -MF
projects/compiler-rt/lib/xray/CMakeFiles/RTXray\
.x86_64.dir/xray_trampoline_x86_64.S.o.d -o
projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_trampoli\
ne_x86_64.S.o -c
/var/tmp/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/compi\
ler-rt/lib/xray/xray_trampoline_x86_64.S
FAILED:
projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_trampoline_x86_64.S.o
/usr/bin/x86_64-pc-linux-gnu-clang  -DXRAY_HAS_EXCEPTIONS=1 -DXRAY_SUPPORTED=1
-D_GNU_SOURCE -D__STDC_CONSTANT_MACRO\
S -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/compiler-rt/lib/xray
-I/var/tmp/portage/sys-devel/llvm-9.0\
_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/compiler-rt/lib/xray
-I/usr/include/libxml2 -Iinclude -I/\
var/tmp/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/llvm/include
-I/var/tmp\
/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/compiler-rt/lib/xray/..
-I/var\
/tmp/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/compiler-rt/lib/xray/../..\
/include -O2 -pipe -fno-sanitize=vptr -Wno-backend-plugin -fPIC  
-fprofile-instr-use=/var/tmp/portage/sys-devel/llv\
m-9.0_pre353983_p20190325-r14/work/llvm.profdata  -m64 -fPIC -fno-builtin
-fno-exceptions -fomit-frame-pointer -funw\
ind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden
-fno-lto -O3 -gline-tables-only -Wno-gn\
u -Wno-variadic-macros -Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti -MD
-MT projects/compiler-rt/lib/xray/CMa\
keFiles/RTXray.x86_64.dir/xray_trampoline_x86_64.S.o -MF
projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/\
xray_trampoline_x86_64.S.o.d -o
projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_trampoline_x86_64.S.\
o -c
/var/tmp/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/compiler-rt/lib/x\
ray/xray_trampoline_x86_64.S
Stack dump:
0.      Program arguments: /usr/bin/clang-9 -cc1as -triple x86_64-pc-linux-gnu
-filetype obj -main-file-name xray_tr\
ampoline_x86_64.S -target-cpu x86-64 -I projects/compiler-rt/lib/xray -I
/var/tmp/portage/sys-devel/llvm-9.0_pre3539\
83_p20190325-r14/work/llvm-9.0_pre353983_p20190325/compiler-rt/lib/xray -I
/usr/include/libxml2 -I include -I /var/t\
mp/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/llvm/include
-I /var/tmp/por\
tage/sys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/compiler-rt/lib/xray/..
-I /var/tm\
p/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/compiler-rt/lib/xray/../../in\
clude -fdebug-compilation-dir
/var/tmp/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_pre353983_p2\
0190325-abi_x86_64.amd64 -dwarf-debug-producer Chromium OS
9.0_pre353983_p20190325-r12 clang version 9.0.0 (/var/cac\
he/chromeos-cache/distfiles/host/egit-src/llvm-project
de7a0a152648d1a74cf4319920b1848aa00d1ca3) (based on LLVM 9.0.\
0svn) -I projects/compiler-rt/lib/xray -I
/var/tmp/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/work/llvm-9.0_\
pre353983_p20190325/compiler-rt/lib/xray -I /usr/include/libxml2 -I include -I
/var/tmp/portage/sys-devel/llvm-9.0_p\
re353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/llvm/include -I
/var/tmp/portage/sys-devel/llvm-9.0_pre3539\
83_p20190325-r14/work/llvm-9.0_pre353983_p20190325/compiler-rt/lib/xray/.. -I
/var/tmp/portage/sys-devel/llvm-9.0_pr\
e353983_p20190325-r14/work/llvm-9.0_pre353983_p20190325/compiler-rt/lib/xray/../../include
-debug-info-kind=limited \
-dwarf-version=5 -mrelocation-model pic -o
projects/compiler-rt/lib/xray/CMakeFiles/RTXray.x86_64.dir/xray_trampolin\
e_x86_64.S.o
/var/tmp/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/temp/xray_trampoline_x86_64-1b43d7.s
#0 0x0000000002dd6488 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/bin/clang-9+0x2dd6488)
 #1 0x0000000002dd6906 (/usr/bin/clang-9+0x2dd6906)
 #2 0x00007fe5f02c3540 __restore_rt (/lib64/libpthread.so.0+0x12540)
 #3 0x00007fe5ef1b999e (/lib64/libc.so.6+0x15a99e)
 #4 0x0000000002aa2ccf llvm::MCObjectStreamer::EmitBytes(llvm::StringRef)
(/usr/bin/clang-9+0x2aa2ccf)
 #5 0x0000000002a8bff7 (/usr/bin/clang-9+0x2a8bff7)
 #6 0x0000000002a8be9c
llvm::MCDwarfLineTableHeader::emitV5FileDirTables(llvm::MCStreamer*,
llvm::Optional<llvm::MCD\
warfLineStr>&, llvm::StringRef) const (/usr/bin/clang-9+0x2a8be9c)
 #7 0x0000000002a8b873 llvm::MCDwarfLineTableHeader::Emit(llvm::MCStreamer*,
llvm::MCDwarfLineTableParams, llvm::Arr\
ayRef<char>, llvm::Optional<llvm::MCDwarfLineStr>&) const
(/usr/bin/clang-9+0x2a8b873)
 #8 0x0000000002a8ae5b llvm::MCDwarfLineTable::EmitCU(llvm::MCObjectStreamer*,
llvm::MCDwarfLineTableParams, llvm::O\
ptional<llvm::MCDwarfLineStr>&) const (/usr/bin/clang-9+0x2a8ae5b)
 #9 0x0000000002a8ad07 llvm::MCDwarfLineTable::Emit(llvm::MCObjectStreamer*,
llvm::MCDwarfLineTableParams) (/usr/bin\
/clang-9+0x2a8ad07)
#10 0x0000000002aa57f3 llvm::MCObjectStreamer::FinishImpl()
(/usr/bin/clang-9+0x2aa57f3)
#11 0x0000000002ad10fb (/usr/bin/clang-9+0x2ad10fb)
#12 0x0000000001ab9d7b cc1as_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/bin/clang-9+0x1ab9d7b)
#13 0x0000000001aacfee main (/usr/bin/clang-9+0x1aacfee)
#14 0x00007fe5ef080a8e __libc_start_main (/lib64/libc.so.6+0x21a8e)
#15 0x0000000001aa702a _start (/usr/bin/clang-9+0x1aa702a)
clang-9: error: unable to execute command: Segmentation fault
clang-9: error: clang integrated assembler command failed due to signal (use -v
to see invocation)
Chromium OS 9.0_pre353983_p20190325-r12 clang version 9.0.0
(/var/cache/chromeos-cache/distfiles/host/egit-src/llvm-\
project de7a0a152648d1a74cf4319920b1848aa00d1ca3) (based on LLVM 9.0.0svn)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-9: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash backtrace,\
 preprocessed source, and associated run script.
clang-9: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-9: note: diagnostic msg:
/var/tmp/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/temp/xray_trampoline_x86_64-2c1fbd.S
clang-9: note: diagnostic msg:
/var/tmp/portage/sys-devel/llvm-9.0_pre353983_p20190325-r14/temp/xray_trampoline_x86_64-2c1fbd.sh
clang-9: note: diagnostic msg:

********************

I will attach the two files mentioned above.</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>