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

build-namelist hangs (infinite loop) on #-commented line in user_nl_cam

Aperta Adatta ai principianti
#1,701 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

@jtruesdal ci sta già lavorando.

Dal 6/10/2026.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
84/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
perl
Ambito
build-system

Direzione di ricerca

Inizia da bld/perl5lib/Build/Namelist.pm, in particolare da _parse_next e dallo stato varorvalue. Riproduci il problema con l’input namelist mostrato tramite Build::Namelist->new, quindi verifica che un commento # dopo un’assegnazione produca lo stesso errore pulito "expect a variable" invece di rimanere bloccato in _parse.

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

Descrizione

bug misc tag Must have CESM3
What happened?

A line in user_nl_cam commented with # instead of ! causes build-namelist to hang with no output when it follows a variable assignment. Found on cam6_4_203.

What are the steps to reproduce the bug?

&a x=1
#y = 'f.nc'
/

Passing this through Build::Namelist->new never returns. In _parse_next (bld/perl5lib/Build/Namelist.pm), in the varorvalue state neither the variable nor the value regex consumes the # line, and $expect is never set to error, so _parse loops on the same text indefinitely.

If the # line is instead the first line after the group name, a clean "expect a variable" error is raised, so the expected behavior is the same error in the varorvalue case. Under CIME this appears as case.build stalling at "Create namelist for component cam."

What CAM tag were you using?

my stormspeed branch based off of cam6_4_203

What machine were you running CAM on?

CISL machine (e.g. derecho)

What compiler were you using?

Intel

Path to a case directory, if applicable

No response

Will you be addressing this bug yourself?

Any CAM SE can do this

Extra info

I was running on my StormSPEED branch but haven't modified any of the perl code.

Lingua principale
Nessun dato sulla lingua
Stelle
93
Fork
186
Merge medio
4g 21h
PR unite (30g)
18

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 ESCOMP/CAM

Tutte le issue di ESCOMP/CAM

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.