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

1/0 and 0/0 abort the program with 'EigenScript value error: division by zero' (ref: inf / nan)

Aperta
#50 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
lua
Ambito
compilers

Direzione di ricerca

Start by running the two-line repro from the issue against eigenscript 0.45.1 and against reference Lua 5.4, and compare with the Tier D gate's output for num_print.lua. Find where the division-by-zero error is raised, and check whether it comes from EigenLua's arithmetic lowering or from the EigenScript runtime, using the earlier read_line removal (EigenScript#1695) as a precedent. Done when a Tier D row covering 1/0, -1/0 and pcall(rawset, {}, 0/0, 1) matches the reference and num_print.lua no longer diverges on line 1.

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

Descrizione

bug eigenscript-gap

Found by the blind critic for fix-small-4. Reproduces on origin/main 9536f4c with eigenscript 0.45.1.

print(1/0, -1/0)
print(pcall(function() return 0/0 end))
  • PUC-Rio 5.4.9: inf -inf / true -nan
  • eigenlua: lua: z2.lua:1: EigenScript value error: division by zero with rc=1. The whole program dies, and pcall cannot catch it.

So float division by zero (and 0/0, which in turn breaks rawset(t, 0/0, v) → table index is NaN) is a fatal VM error, not IEEE inf/nan. num_print.lua already diverges on line 1 (cand= empty), probably for this reason, so the Tier D gate has been reporting it as part of the baseline. Check whether the cause is an EigenScript change, in the same way read_line was removed (EigenScript#1695).

Done when

A Tier D row that prints 1/0, -1/0, and pcall(rawset, {}, 0/0, 1) MATCHes the reference, and num_print.lua no longer diverges on line 1 (or its remaining divergence is attributed to something else).

Lingua principale
Lua
Stelle
0
Fork
0
Merge medio
57m
PR unite (30g)
20

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 InauguralSystems/EigenLua

Tutte le issue di InauguralSystems/EigenLua

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.