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

Open Beginner friendly
#204 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

The traceback points to buildCodeListing in check.cgi and shows the failure while formatting the code_listing.tmpl template in applyTemplate; the issue also attaches the feed that triggers it. Start by reading those functions and reproducing validation with the attached feed. Done means the validator completes a normal run for this feed without a MemoryError.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
135
Forks
67
Avg merge
2d 51m
Merged PRs (30d)
4

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from w3c/feedvalidator

All issues in w3c/feedvalidator

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.