Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: php processes lying around on the system

Aperta
#1,728 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
macos, php

Direzione di ricerca

Iniziate riproducendo il problema su macOS Golden Gate con Herd 1.29.0, PHP 8.5 e un sistema ARM64, monitorando al contempo i processi PHP descritti nel report. Non vengono indicati file sorgente o test; investigate perché Herd lascia i processi in esecuzione e verificate che il numero di processi rimanga limitato e che sia possibile creare nuovi processi del terminale senza l'errore forkpty.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

macOS
Platform

macOS

Operating system version

macos golden gate

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.29.0

PHP Version

PHP 8.5

Bug description

[ I am giving this feedback as a response to Apple Feedback ticket related to upcoming macOS ].
in my macOS Golden Gate while working with my projects ever so often I reached a point where almost all the applications stopped working and started giving me unexpected behavior including the terminal when I ran any command on my existing terminal it will get stuck indefinitely.One very clear signal was visible when I open a new tab I will clearly see the error -

[forkpty: Resource temporarily unavailable]
[Could not create a new process and open a pseudo-tty.]

and rebooting the system will fix my problem but I comes back in few ours and I will have to reboot again

as I am running a developer beta of operating system I am expected to have unexpected bugs and behaviors so as my first though I notified Apple feedback team about the issue with my mac data and they replied after analyzing data that there are too many php processes lying around on the system so many that the system becomes unable to create new processed.

this my the response I got from Apple

Thank you for filing this feedback report. We reviewed your report and determined the behavior you experienced is currently functioning as intended.

Please verify why there's a lot of php processes lying around on the system.

forkpty does open + fork. In this case, it seems like fork is failing because the kern.maxprocperuid sysctl has blown past.

Looking at ps.txt in the sysdiagnose, we see a ton of these:

shourya            501     - 19177  3629     4004   0.0  0.0  31  0 488946608   1280 -        ??  S     5:24AM   0:00.05 /Users/shourya/Library/Application Support/Herd/bin/php

And sysctl.txt shows:

$ rg maxprocperuid sysctl.txt
40:kern.maxprocperuid: 1333

We're basically at the limit:

$ rg shourya ps.txt | wc -l
1372

Steps to reproduce

it happens in the macOS Golden Gate with heard running, in parallel I am also running vscode, codex and google chrome

Relevant log output

Lingua principale
Nessun dato sulla lingua
Stelle
124
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di beyondcode/herd-community

Tutte le issue di beyondcode/herd-community

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.