Skip to content

Disable core dumps in the development container #64

Done

Description

@niden

Is your feature request related to a problem? Please describe.

Some Infection mutants make stripSlashes() call itself with no end. PHP then crashes. The container has no limit on the core file size (ulimit -c is unlimited), and the kernel core_pattern is core. So each crash writes a core.<pid> file into /srv, which is the repository root on the host. A composer infection run leaves about six of these files.

Infection counts these crashes as killed mutants, so the MSI does not change. The files are only clutter, but they are large and git shows them as untracked.

Describe the solution you'd like

Set the core file size limit to 0 for the app service in docker-compose.yml:

    ulimits:
      core: 0

Describe alternatives you've considered

Add /core.* to .gitignore. Git then hides the files, but they still fill the disk.

Additional context

Development environment only. No change to the library.

Activity

  1. added
    enhancement
    on Dec 4, 2026
  2. self-assigned this
    on Dec 4, 2026
  3. added theissue type on Dec 4, 2026
  4. added a commit that references this issue on Dec 4, 2026
  5. niden commented on Dec 4, 2026

    @niden
    SponsorMemberAuthor

    Resolved in #65

  6. moved this from Backlog to Implemented in Phalcon v5on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

Projects

  • Status
    Implemented

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions