Skip to content

Compiler leaks one temp file per compile for pcre2/openssl/zlib link flags in /tmp #482

Closed

Description

@blacktrs

Problem

Every compile leaves small pid-named files in /tmp: manticore_pcre2_.txt, manticore_openssl_.txt, manticore_lib_z_.txt (src/Manticore/Main.php, pcre2_link_flags and its siblings write the output of pcre2-config / pkg-config to a file, read it, and never unlink it).

Impact

On a dev machine that builds a lot (suite runs, bin/build, fixpoint) /tmp collected ~130,000 such files (~170 MB of data, far more in inodes/blocks) before a manual sweep. Nothing ever cleans them.

Expected

Link-flag probes leave nothing behind: unlink the list file after reading it, or capture the command output without a file.

Notes

Observed 2026-10-25. Other leftovers seen in /tmp at the same time, worth checking for the same cause: manticore_lib_sqlite_, manticore_buildf_, manticore_afiles_, manticore_stdlib_.

Activity

  1. added
    bug
    on Oct 25, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions