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

Setting log_directory to /dev/null can cause mesa to fail

Aperta
#976 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
fortran
Ambito
hpc

Direzione di ricerca

Inizia con la suite di test $MESA_DIR/star/test_suite/make_zams e la relativa sezione di controlli inlist_zams, quindi riproduci il problema usando log_directory='/dev/null'. Il lavoro è completo quando l’esecuzione arriva al termine senza errori indirizzando l’output a /dev/null, mentre i casi che in seguito richiedono un file .mod non disponibile rimangono compresi e testati.

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

Descrizione

bug

The bug
setting a directory such as log_directory to /dev/null can cause mesa to fail or output errors when attempting to save to null file.

Reproduce

  1. use a copy of $MESA_DIR/star/test_suite/make_zams (or most other test_suites)
  2. add log_directory='/dev/null' into &controls section of inlist_zams
  3. clean, make, and run the make_zams test suite
  4. reach "finished doing relax num steps"
  5. See errors: "failed to open /dev/null/history.data" and "failed to create zams.mod when running inlist_zams_header"

Expected behavior
MESA exits safely with no fail or error condition. This would be unique to using /dev/null since it is intended for cases where a program is supposed to give an output without issue. Files would not "fail" to be created since /dev/null would allow MESA to think the files were saved. A test_suite like 1M_pre_ms_to_wd would still fail when it attempts to load a .mod file that was never saved.

Versions

  • MESA version: r25.12.1
  • MESA SDK version: mesasdk-x86_64-linux-25.12.1
  • OS: RHEL 9.7 & Fedora Workstation 43

Additional context
This is more of a feature request since it would primarily be used in a debugging or testing phases when a terminal output is enough, but it would helpful to avoid adding a bunch of controls to the inlist to turn off the logs or other directories. Using /dev/null would also be more natural for new MESA users that are already familiar with a UNIX system.

Lingua principale
Fortran
Stelle
255
Fork
82
Merge medio
2g 17h
PR unite (30g)
13

Preparare l'ambiente

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 MESAHub/mesa

Tutte le issue di MESAHub/mesa

Issue simili

Altre issue su HPC

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.