Skip to content

--compiler-traces loops infinitely if ccache wrappers are in path #26

Closed

Description

@nekopsykose

With, for instance:

$ l /usr/lib/ccache/bin/
lrwxrwxrwx - root root 1 week c++ -> /usr/bin/ccache*
lrwxrwxrwx - root root 1 week cc -> /usr/bin/ccache*
lrwxrwxrwx - root root 1 week clang -> /usr/bin/ccache*
lrwxrwxrwx - root root 1 week clang++ -> /usr/bin/ccache*
lrwxrwxrwx - root root 1 week g++ -> /usr/bin/ccache*
lrwxrwxrwx - root root 1 week gcc -> /usr/bin/ccache*
lrwxrwxrwx - root root 1 week x86_64-pc-linux-gnu-c++ -> /usr/bin/ccache*
lrwxrwxrwx - root root 1 week x86_64-pc-linux-gnu-g++ -> /usr/bin/ccache*
lrwxrwxrwx - root root 1 week x86_64-pc-linux-gnu-gcc -> /usr/bin/ccache*
$ echo $PATH
/usr/lib/ccache/bin:/usr/bin

(a normal way of using ccache)

an infinite loop of ccache -> /tmp/buildprof-compilers*/bin/clang -> ccache occurs.

Activity

  1. LalitMaganti commented on Sep 16, 2026

    @LalitMaganti
    Owner

    Ouch that's an ugly bug - thanks for the report! Will investigate.

  2. added a commit that references this issue on Sep 16, 2026
    66c9ec0
  3. LalitMaganti commented on Sep 16, 2026

    @LalitMaganti
    Owner

    #36 fixes this issue, thanks for reporting!

    I'll put out 0.2.7 shortly!

  4. nekopsykose commented on Sep 16, 2026

    @nekopsykose
    Author

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions