Skip to content

include profile data, warning suppressions, etc. in clang crash reports #149502

@zmodem

Description

@zmodem

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions