Skip to content

clang-rename on a non existing file segfaults #36471

@sylvestre

Description

@sylvestre
Bugzilla Link 37123
Version unspecified
OS All

Extended Description

$ clang-rename-7 -offset=0 -new-name=plop asdasd
Error while trying to load a compilation database:
Could not auto-detect compilation database for file "asdasd"
No compilation database found in /tmp or any parent directory
fixed-compilation-database: Error while opening fixed database: No such file or directory
json-compilation-database: Error while opening JSON database: No such file or directory
Running without flags.
warning: /tmp/asdasd: 'linker' input unused [-Wunused-command-line-argument]
error: unable to handle compilation, expected exactly one compiler job in ''
Error while processing /tmp/asdasd.
warning: /tmp/asdasd: 'linker' input unused [-Wunused-command-line-argument]
error: unable to handle compilation, expected exactly one compiler job in ''
Error while processing /tmp/asdasd.
Segmentation fault

Same issue with clang-rename-6.0 & clang-rename-5.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions