<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62794>62794</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
stage2 clang++ crashes while building llvm-profdata.cpp
</td>
</tr>
<tr>
<th>Labels</th>
<td>
build-problem,
PGO
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
started recently on Linux, not arch specific (I see it on amd64 & s390x)
```
/build/source/build-llvm/./bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/llvm-profdata -I/build/source/llvm/tools/llvm-profdata -Iinclude -I/build/source/llvm/include -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/source/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/build/source/= -no-canonical-prefixes -O2 -DNDEBUG -g1 -fno-exceptions -funwind-tables -std=c++17 -MD -MT tools/llvm-profdata/CMakeFiles/llvm-profdata.dir/llvm-profdata.cpp.o -MF tools/llvm-profdata/CMakeFiles/llvm-profdata.dir/llvm-profdata.cpp.o.d -o tools/llvm-profdata/CMakeFiles/llvm-profdata.dir/llvm-profdata.cpp.o -c /build/source/llvm/tools/llvm-profdata/llvm-profdata.cpp
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /build/source/build-llvm/./bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/llvm-profdata -I/build/source/llvm/tools/llvm-profdata -Iinclude -I/build/source/llvm/include -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/source/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/build/source/= -no-canonical-prefixes -O2 -DNDEBUG -g1 -fno-exceptions -funwind-tables -std=c++17 -MD -MT tools/llvm-profdata/CMakeFiles/llvm-profdata.dir/llvm-profdata.cpp.o -MF tools/llvm-profdata/CMakeFiles/llvm-profdata.dir/llvm-profdata.cpp.o.d -o tools/llvm-profdata/CMakeFiles/llvm-profdata.dir/llvm-profdata.cpp.o -c /build/source/llvm/tools/llvm-profdata/llvm-profdata.cpp
1. <eof> parser at end of file
2. Optimizer
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 clang++ 0x000055ae0a22a90b
1 clang++ 0x000055ae0a228904
2 clang++ 0x000055ae0a19f578
3 libpthread.so.0 0x00007f619e3e0140
4 clang++ 0x000055ae09c12382
5 clang++ 0x000055ae09cbd4ae
6 clang++ 0x000055ae096225e3
7 clang++ 0x000055ae09623e32
8 clang++ 0x000055ae096224f5
9 clang++ 0x000055ae096242a8
10 clang++ 0x000055ae0969c30e
11 clang++ 0x000055ae096ba466
12 clang++ 0x000055ae096bcfde
13 clang++ 0x000055ae0a2817b9
14 clang++ 0x000055ae0a2868b6
15 clang++ 0x000055ae0a2895cb
16 clang++ 0x000055ae0a2d4ff3
17 clang++ 0x000055ae0b7a9821
18 clang++ 0x000055ae0b57a872
19 clang++ 0x000055ae0d6f215b
20 clang++ 0x000055ae0b577fd2
21 clang++ 0x000055ae0d6f59d5
22 clang++ 0x000055ae0b578022
23 clang++ 0x000055ae0d6f3630
24 clang++ 0x000055ae0b7a642e
25 clang++ 0x000055ae0b2d8f02
26 clang++ 0x000055ae09d5967f
27 clang++ 0x000055ae0a45c7cc
28 clang++ 0x000055ae0a45ee5c
29 clang++ 0x000055ae0b2a3179
30 clang++ 0x000055ae0c376589
31 clang++ 0x000055ae0ac10bf9
32 clang++ 0x000055ae0ab95799
33 clang++ 0x000055ae0acc79d3
34 clang++ 0x000055ae090b57d6
35 clang++ 0x000055ae090b0c84
36 clang++ 0x000055ae0a9f41d9
37 clang++ 0x000055ae0a19f933
38 clang++ 0x000055ae0a9f4547
39 clang++ 0x000055ae0a9bdc27
40 clang++ 0x000055ae0a9be65d
41 clang++ 0x000055ae0a9cd97c
42 clang++ 0x000055ae090b341b
43 clang++ 0x000055ae08ff510f
44 libc.so.6 0x00007f619de9dd0a __libc_start_main + 234
45 clang++ 0x000055ae090ace7a
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
Debian clang version 17.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /build/source/build-llvm/./bin
clang++: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/llvm-profdata-f28d55.cpp
clang++: note: diagnostic msg: /tmp/llvm-profdata-f28d55.sh
clang++: note: diagnostic msg:
********************
```
Log:
https://llvm-jenkins.debian.net/job/llvm-toolchain-bullseye-binaries/architecture=amd64,distribution=bullseye,label=amd64/562/consoleFull
I don't have a nice backtrace for now.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWc1u2zoWfhplQ9CQqP9FFqkdtwaSOkjcCe5sDIo8ktlSpIaknGSefkBJTtLbuM69080FGhh2TH38eHh-eWhqrWgUwHmQfgjSxRnt3U6bc_sk92CdgbNK86dz66hxwJEBBsrJJ6QVuhKqfwzIHCntEDVsh2wHTNSCoYAUK2QBkHAeSVueJSggGbJxGT4GpAzCRRBeBFk4vcav4ztZVr2QPCBLq3vD4DCApdy3AVnO_IBQAVkySVUTkA8B-YDwYvvx85ft3frL7fzSf9vebRbz7Xz9-W5z8Xmzvb6Y367vXh4s17fXFz8OX62uVy-jK6e1tAFZ-qVxZ3TNqaMIr94SchLv2BShmOw5_HzyM6i2jrJvfr4D5rTB1hmtGoTva21a6hC-B2O0CeLFOIAtsN4I94TwvdK4V70FjpluW6o4lkIBpqbpW1B-LqcOsBMt-J0v17eb1fKPSXdBvCAI1zerOcK10thCS5UTDAvlwHTaCie0QrjeCysqIYV7wkL5BSzeCc5BvZLt1TrPY71qemo4cEz3VEg6cSh4QPieSumhj87Q7zbSUUNbcGAQvn8wwoFXiFCNRfieUevwf3rqZ7bCWqEaXAuQHAslnKBS_BeMRbgDPuxkJJZaNcObZxidqCy8wjrq8CCA37pA-F60nRRMOFxTKd3O6L7Z-Ul6DwY4tg_CsR3mUNNeupFcaXhk0DnsnjoYhhTeC-N6KjF32u-CgwQH-I0ntm8asA57fiO8N9yPm8VMqz0YO-jfb1UC5X5cKA7K0dEw98xRjlv6VAHule27Tg-xi2suaKO0dYJZzLT0i9V1r5if5_3Hf1qPo46-_l4LCbgzUItH3NIuiBcng_QQBVOILq2jDRBcCWWDePFe6LvXDuIFwkpjRpVWglE5TQGL8JogvPi8uPzw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