<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/149502>149502</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
include profile data, warning suppressions, etc. in clang crash reports
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:driver
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
zmodem
</td>
</tr>
</table>
<pre>
Currently there are a bunch of compiler inputs which don't get included in Clang crash reports. For example:
```
$ cat /tmp/a.c
#pragma clang __debug crash
$ build/bin/clang -c /tmp/a.c -fprofile-use=a.profdata --warning-suppression-mappings=suppress.txt
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
[...]
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/a-3c1def.c
clang: note: diagnostic msg: /tmp/a-3c1def.sh
clang: note: diagnostic msg:
********************
```
In this case, `/tmp/a-3c1def.sh` and `/tmp/a-3c1def.c` may not be enough to reproduce the problem (on another machine for example). It would be great if the profile, warning suppressions, and all other inputs could also be copied to the `-fcrash-diagnostics-dir` and the run script updated accordingly.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykVE1v5DYM_TXyhbAhy-OM5-DDbBLvBgiaYDdFjwtZom21smToI9n01xfyeDK7bVoULaDBwKL4SD4-knuvRoPYkvoDqW8yHsNkXfv7bCXOWW_la3sdnUMT9CuECR0CTz_ooxET2AGEnRel0YEySwweXiYlJpDWELYPMGIAZYSOEiUoA9eamxGE434Ch4t1wRfQWQf4jc-LRlIdCV3PFd0OPRK2A8EDENaFeSGs44VYr6vF8XHmIFbUr18l9nFD39z6qLQkrOuVIaw7vcvFD0iQD4uzg9KYR4-kuuFF-pY8cMjzF-6MMmPu47I49F5Zk898WZQZPaluztdF-BYIPT7e3x6_3IKP_azCytK4lQnBwhTC4lOFrEspxdEXWj_PhXUjYR1wI89cJao3lnoufguOCyTsGhaHi7MCvUcJ3kZ3uk6e3HsrFA8owUUDXji1hCLRUH8oioLUN5f8jk9Px-tP8PTpFrqH-_uHX-5--gjd3f3tF3h6WK8__PwRPt8-Pnx-OnXk8b3AjSfs8PfB3x44BG3FauXhhLd2glRHMDakpoNUfDTWByVg9qvl0qO8EqXEYW36f3Jc5fBvPE_SY__j_Em59HhnIEzKg-B-7VUyvJfgFV2ZfNcsknXmryl16BHQ2DhOSVJrW2QUJ8UszvYaZyCssQa4sWliYeZiUgZh-G7M2KGAuwAvNmqZEEeHPIAazjBpHFK2m_zhO_n7N8VpDacI2-iLFY1rbxOksItCmZJMmOSK5sOq6PzCu8-lcufK06uLeCAu8qQYIayTyoz6tchkW8lDdeAZtuW-Zs2OlpRmU3slmx7LoUSK-7Kq6n1dNULsmubQi8PQ7DPVMspqui-bktFyR4s93VViVw5S1ld9Qw9kR3HmSr9NZKa8j9iWu0NNWaZ5j9qvW5Kxs5KkU8_oCGNpc7o2eeZpqsmOauXDZbqzoILG9jzcG7-QVsw_kYxBFGlpir8uzSw63f64T0YVptgXws6EdSny9pcvzv6KIhDWrSV5wrqtqueW_REAAP__z53vhg">