Feed validator crashes with "Memory error" when validating https://www.tidyverse.org/index.xml

Aperta Adatta ai principianti
#204 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Il traceback punta a buildCodeListing in check.cgi e mostra che l’errore si verifica durante la formattazione del template code_listing.tmpl in applyTemplate; l’issue allega anche il feed che lo provoca. Inizia leggendo queste funzioni e riproducendo la validazione con il feed allegato. Il lavoro è concluso quando il validatore completa una normale esecuzione per questo feed senza MemoryError.

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

Descrizione

bug

Describe the bug
When attempting to validate https://www.tidyverse.org/index.xml, Feed validator crashes with "Memory error" and shows a stacktrace.

To Reproduce
URL that triggered the bug: https://www.tidyverse.org/index.xml

Expected behavior
A normal feed validation run

Additional context
Stacktrack, screenshot, and a copy of the feed follow:

MemoryError 	Python 3.13.5: /usr/bin/python3
Wed Dec 2 08:12:12 2026

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
 /usr/local/feedvalidator/check.cgi in <module>
    343                 print('%s: %s' % (header, value))
    344             print()
=>  345         for output in checker_app(os.environ, start_response):
    346             print(output)
    347     else:
output = '</ul>', checker_app = <function checker_app>, os = <module 'os' (frozen)>, os.environ = environ({'HTTPS': 'on', 'SSL_SERVER_S_DN_CN': '*...NAME': '/feed/check.cgi', 'LC_CTYPE': 'C.UTF-8'}), start_response = <function start_response>
 /usr/local/feedvalidator/check.cgi in checker_app(environ=environ({'HTTPS': 'on', 'SSL_SERVER_S_DN_CN': '*...NAME': '/feed/check.cgi', 'LC_CTYPE': 'C.UTF-8'}), start_response=<function start_response>)
    318 
    319                     # print code listing
=>  320                         yield buildCodeListing(validationData['events'], validationData['rawdata'], url)
    321 
    322                 # As long as there were no errors, show that the feed is valid
global buildCodeListing = <function buildCodeListing>, validationData = {'events': [<feedvalidator.logging.NotHtml object>, <feedvalidator.logging.ContainsRelRef object>, <feedvalidator.logging.SAXError object>], 'feedType': 2, 'output': [<feedvalidator.logging.NotHtml object at 0xffff...dator.logging.SAXError object at 0xffff7fb11010>], 'rawdata': '<?xml version="1.0" encoding="utf-8" standalone=...;/a>.&lt;/p></description></item></channel></rss>', 'specialCase': None, 'url': 'https://www.tidyverse.org/index.xml'}, url = 'https://www.tidyverse.org/index.xml'
 /usr/local/feedvalidator/check.cgi in buildCodeListing(events=[<feedvalidator.logging.NotHtml object>, <feedvalidator.logging.ContainsRelRef object>, <feedvalidator.logging.SAXError object>], rawdata='<?xml version="1.0" encoding="utf-8" standalone=...;/a>.&lt;/p></description></item></channel></rss>', url='https://www.tidyverse.org/index.xml')
     76         linenum += 1
     77     codelisting = "".join(codelines)
=>   78     return applyTemplate('code_listing.tmpl', {"codelisting":codelisting, "url":escapeURL(url)})
     79 
     80 def yieldEventList(output):
global applyTemplate = <function applyTemplate>, codelisting = '<li><a name="l1" id="l1"><code class="a">&lt;?xm...&gt;&lt;/channel&gt;&lt;/rss&gt;</code></a></li>\n', global escapeURL = <function escapeURL>, url = 'https://www.tidyverse.org/index.xml'
 /usr/local/feedvalidator/check.cgi in applyTemplate(templateFile='code_listing.tmpl', params={'CSSURL': 'css', 'codelisting': '<li><a name="l1" id="l1"><code class="a">&lt;?xm...&gt;&lt;/channel&gt;&lt;/rss&gt;</code></a></li>\n', 'url': 'https://www.tidyverse.org/index.xml'})
     31     params['CSSURL'] = CSSURL
     32     fsock = open(os.path.join(WEBDIR, 'templates', templateFile))
=>   33     data = fsock.read() % params
     34     fsock.close()
     35     return data
data undefined, fsock = <_io.TextIOWrapper name='/usr/local/feedvalidato...tes/code_listing.tmpl' mode='r' encoding='utf-8'>, fsock.read = <built-in method read of _io.TextIOWrapper object>, params = {'CSSURL': 'css', 'codelisting': '<li><a name="l1" id="l1"><code class="a">&lt;?xm...&gt;&lt;/channel&gt;&lt;/rss&gt;</code></a></li>\n', 'url': 'https://www.tidyverse.org/index.xml'}

MemoryError:
      add_note = <built-in method add_note of MemoryError object>
      args = ()
      with_traceback = <built-in method with_traceback of MemoryError object> 
Screenshot 2026-12-02 at 08-12-55 Feed Validator Results https __www tidyverse org_index xml

https___tidyverse.org_index.xml

Lingua principale
Python
Stelle
135
Fork
67
Merge medio
2g 51m
PR unite (30g)
4

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 w3c/feedvalidator

Tutte le issue di w3c/feedvalidator

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.