Fatal Python error: Cannot recover from stack overflow

I just encountered the following error inside a browser view while waiting for the response of an HTTP request (external service).

The error is reproducible after restarts.

I have seen a similar error some time ago with Python 3.6 in another project. It disappeared after switching to Python 3.7.

Anyone seen this too?

Serving on http://0.0.0.0:20080
2019-05-29 13:48:13,849 INFO    [onkopedia.policy:1311][waitress] Conversion of onkopedia/de/editorial-board/e45764cc-7c9e-11e9-80f5-0050563d0e5e to DOCX started
2019-05-29 13:48:14,196 INFO    [onkopedia.policy:1430][waitress] Fetching DOCX authentication token from Plone cache
Fatal Python error: Cannot recover from stack overflow.

Current thread 0x00007f1d18236700 (most recent call first):
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/plone.dexterity-2.9.0-py3.6.egg/plone/dexterity/schema.py", line 55 in decorator
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/plone.synchronize-1.0.3-py3.6.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/plone.dexterity-2.9.0-py3.6.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/hooks.py", line 119 in adapter_hook
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/five.intid-1.2.2-py3.6.egg/five/intid/keyreference.py", line 73 in __init__
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.security-4.3.1-py3.6-linux-x86_64.egg/zope/security/adapter.py", line 84 in __call__
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/hooks.py", line 119 in adapter_hook
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.intid-4.3.0-py3.6.egg/zope/intid/__init__.py", line 99 in getId
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/five.intid-1.2.2-py3.6.egg/five/intid/intid.py", line 41 in getId
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/z3c.relationfield-0.8.0-py3.6.egg/z3c/relationfield/event.py", line 66 in updateRelations
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/_api.py", line 124 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/event.py", line 36 in objectEventNotify
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/_api.py", line 124 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/event.py", line 27 in dispatch
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.event-4.4-py3.6.egg/zope/event/__init__.py", line 32 in notify
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zopyx.plone.persistentlogger-0.4.7.8-py3.6.egg/zopyx/plone/persistentlogger/logger.py", line 86 in log
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/onkopedia.policy/onkopedia/policy/subscribers/connector.py", line 61 in notify_message
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/_api.py", line 124 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/event.py", line 27 in dispatch
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.event-4.4-py3.6.egg/zope/event/__init__.py", line 32 in notify
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zopyx.plone.persistentlogger-0.4.7.8-py3.6.egg/zopyx/plone/persistentlogger/logger.py", line 86 in log
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/onkopedia.policy/onkopedia/policy/subscribers/connector.py", line 61 in notify_message
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/_api.py", line 124 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/event.py", line 27 in dispatch
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.event-4.4-py3.6.egg/zope/event/__init__.py", line 32 in notify
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zopyx.plone.persistentlogger-0.4.7.8-py3.6.egg/zopyx/plone/persistentlogger/logger.py", line 86 in log
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/onkopedia.policy/onkopedia/policy/subscribers/connector.py", line 61 in notify_message
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/_api.py", line 124 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/event.py", line 27 in dispatch
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.event-4.4-py3.6.egg/zope/event/__init__.py", line 32 in notify
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zopyx.plone.persistentlogger-0.4.7.8-py3.6.egg/zopyx/plone/persistentlogger/logger.py", line 86 in log
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/onkopedia.policy/onkopedia/policy/subscribers/connector.py", line 61 in notify_message
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/_api.py", line 124 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/event.py", line 27 in dispatch
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.event-4.4-py3.6.egg/zope/event/__init__.py", line 32 in notify
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zopyx.plone.persistentlogger-0.4.7.8-py3.6.egg/zopyx/plone/persistentlogger/logger.py", line 86 in log
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/onkopedia.policy/onkopedia/policy/subscribers/connector.py", line 61 in notify_message
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/_api.py", line 124 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/event.py", line 27 in dispatch
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.event-4.4-py3.6.egg/zope/event/__init__.py", line 32 in notify
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zopyx.plone.persistentlogger-0.4.7.8-py3.6.egg/zopyx/plone/persistentlogger/logger.py", line 86 in log
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/onkopedia.policy/onkopedia/policy/subscribers/connector.py", line 61 in notify_message
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/_api.py", line 124 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/event.py", line 27 in dispatch
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.event-4.4-py3.6.egg/zope/event/__init__.py", line 32 in notify
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zopyx.plone.persistentlogger-0.4.7.8-py3.6.egg/zopyx/plone/persistentlogger/logger.py", line 86 in log
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/onkopedia.policy/onkopedia/policy/subscribers/connector.py", line 61 in notify_message
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/_api.py", line 124 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/event.py", line 27 in dispatch
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.event-4.4-py3.6.egg/zope/event/__init__.py", line 32 in notify
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zopyx.plone.persistentlogger-0.4.7.8-py3.6.egg/zopyx/plone/persistentlogger/logger.py", line 86 in log
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/onkopedia.policy/onkopedia/policy/subscribers/connector.py", line 61 in notify_message
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/_api.py", line 124 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/event.py", line 27 in dispatch
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.event-4.4-py3.6.egg/zope/event/__init__.py", line 32 in notify
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zopyx.plone.persistentlogger-0.4.7.8-py3.6.egg/zopyx/plone/persistentlogger/logger.py", line 86 in log
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/onkopedia.policy/onkopedia/policy/subscribers/connector.py", line 61 in notify_message
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/_api.py", line 124 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/event.py", line 27 in dispatch
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.event-4.4-py3.6.egg/zope/event/__init__.py", line 32 in notify
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zopyx.plone.persistentlogger-0.4.7.8-py3.6.egg/zopyx/plone/persistentlogger/logger.py", line 86 in log
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/onkopedia.policy/onkopedia/policy/subscribers/connector.py", line 61 in notify_message
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/_api.py", line 124 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/event.py", line 27 in dispatch
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.event-4.4-py3.6.egg/zope/event/__init__.py", line 32 in notify
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zopyx.plone.persistentlogger-0.4.7.8-py3.6.egg/zopyx/plone/persistentlogger/logger.py", line 86 in log
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/onkopedia.policy/onkopedia/policy/subscribers/connector.py", line 61 in notify_message
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/_api.py", line 124 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.component-4.5-py3.6.egg/zope/component/event.py", line 27 in dispatch
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.event-4.4-py3.6.egg/zope/event/__init__.py", line 32 in notify
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zopyx.plone.persistentlogger-0.4.7.8-py3.6.egg/zopyx/plone/persistentlogger/logger.py", line 86 in log
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/onkopedia.policy/onkopedia/policy/subscribers/connector.py", line 61 in notify_message
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 607 in subscribers
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/zope.interface-4.6.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 442 in subscribers
  ...

Thread 0x00007f1d276e6700 (most recent call first):
  File "/usr/lib64/python3.6/selectors.py", line 445 in select
  File "/usr/lib64/python3.6/asyncio/base_events.py", line 1396 in _run_once
  File "/usr/lib64/python3.6/asyncio/base_events.py", line 422 in run_forever
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/ZEO-5.2.1-py3.6.egg/ZEO/asyncio/client.py", line 861 in run
  File "/usr/lib64/python3.6/threading.py", line 864 in run
  File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap

Thread 0x00007f1d3d5c14c0 (most recent call first):
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/waitress-1.2.1-py3.6.egg/waitress/wasyncore.py", line 152 in poll
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/waitress-1.2.1-py3.6.egg/waitress/wasyncore.py", line 222 in loop
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/waitress-1.2.1-py3.6.egg/waitress/server.py", line 307 in run
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/waitress-1.2.1-py3.6.egg/waitress/__init__.py", line 17 in serve
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/plone.recipe.zope2instance/src/plone/recipe/zope2instance/ctl.py", line 896 in serve_paste
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/src/plone.recipe.zope2instance/src/plone/recipe/zope2instance/ctl.py", line 918 in serve
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/Zope-4.0b10-py3.6.egg/Zope2/Startup/serve.py", line 194 in serve
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/Zope-4.0b10-py3.6.egg/Zope2/Startup/serve.py", line 204 in run
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/Zope-4.0b10-py3.6.egg/Zope2/Startup/serve.py", line 216 in main
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/eggs/Zope-4.0b10-py3.6.egg/Zope2/Startup/serve.py", line 219 in <module>
  File "/home/ajung/sandboxes/onkopedia_buildout-plone5/parts/wsgi.py/bin/interpreter", line 306 in <module>

The issue is also reproducible with Python 3.7.3

Similar situation with a different browser view leads to a similar error

2019-06-03 14:32:03,909 WARNING [waitress:354][waitress] application-written content was ignored due to HTTP response that may not contain a message-body: (204 No Content)
Fatal Python error: Cannot recover from stack overflow.

Current thread 0x00007fde6e318700 (most recent call first):
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/interface.py", line 525 in __hash__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/adapter.py", line 680 in _lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 58 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 281 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/schema.py", line 58 in decorator
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.synchronize-1.0.3-py3.7.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/utils.py", line 15 in get_parent
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 114 in _recurse_to_site
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 159 in _wrap
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 60 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 281 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/schema.py", line 58 in decorator
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.synchronize-1.0.3-py3.7.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/utils.py", line 15 in get_parent
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 114 in _recurse_to_site
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 159 in _wrap
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 60 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 281 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/schema.py", line 58 in decorator
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.synchronize-1.0.3-py3.7.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/utils.py", line 15 in get_parent
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 114 in _recurse_to_site
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 159 in _wrap
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 60 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 281 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/schema.py", line 58 in decorator
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.synchronize-1.0.3-py3.7.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/utils.py", line 15 in get_parent
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 114 in _recurse_to_site
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 159 in _wrap
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 60 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 281 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/schema.py", line 58 in decorator
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.synchronize-1.0.3-py3.7.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/utils.py", line 15 in get_parent
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 114 in _recurse_to_site
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 159 in _wrap
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 60 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 281 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/schema.py", line 58 in decorator
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.synchronize-1.0.3-py3.7.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/utils.py", line 15 in get_parent
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 114 in _recurse_to_site
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 159 in _wrap
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 60 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 281 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/schema.py", line 58 in decorator
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.synchronize-1.0.3-py3.7.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/utils.py", line 15 in get_parent
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 114 in _recurse_to_site
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 159 in _wrap
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 60 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 281 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/schema.py", line 58 in decorator
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.synchronize-1.0.3-py3.7.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/utils.py", line 15 in get_parent
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 114 in _recurse_to_site
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 159 in _wrap
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 60 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 281 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/schema.py", line 58 in decorator
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.synchronize-1.0.3-py3.7.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/utils.py", line 15 in get_parent
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 114 in _recurse_to_site
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 159 in _wrap
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 60 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 281 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/schema.py", line 58 in decorator
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.synchronize-1.0.3-py3.7.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/utils.py", line 15 in get_parent
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 114 in _recurse_to_site
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 159 in _wrap
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 60 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 281 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/schema.py", line 58 in decorator
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.synchronize-1.0.3-py3.7.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/utils.py", line 15 in get_parent
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 114 in _recurse_to_site
  ...

Thread 0x00007fde6eb19700 (most recent call first):
  File "/home/ajung/.pyenv/versions/3.7.3/lib/python3.7/threading.py", line 296 in wait
  File "/home/ajung/.pyenv/versions/3.7.3/lib/python3.7/queue.py", line 170 in get
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/waitress-1.2.1-py3.7.egg/waitress/task.py", line 73 in handler_thread
  File "/home/ajung/.pyenv/versions/3.7.3/lib/python3.7/threading.py", line 865 in run
  File "/home/ajung/.pyenv/versions/3.7.3/lib/python3.7/threading.py", line 917 in _bootstrap_inner
  File "/home/ajung/.pyenv/versions/3.7.3/lib/python3.7/threading.py", line 885 in _bootstrap

Thread 0x00007fde7d48a700 (most recent call first):
  File "/home/ajung/.pyenv/versions/3.7.3/lib/python3.7/selectors.py", line 468 in select
  File "/home/ajung/.pyenv/versions/3.7.3/lib/python3.7/asyncio/base_events.py", line 1739 in _run_once
  File "/home/ajung/.pyenv/versions/3.7.3/lib/python3.7/asyncio/base_events.py", line 539 in run_forever
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/ZEO-5.2.1-py3.7.egg/ZEO/asyncio/client.py", line 861 in run
  File "/home/ajung/.pyenv/versions/3.7.3/lib/python3.7/threading.py", line 865 in run
  File "/home/ajung/.pyenv/versions/3.7.3/lib/python3.7/threading.py", line 917 in _bootstrap_inner
  File "/home/ajung/.pyenv/versions/3.7.3/lib/python3.7/threading.py", line 885 in _bootstrap

Thread 0x00007fde92b83700 (most recent call first):
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/waitress-1.2.1-py3.7.egg/waitress/wasyncore.py", line 152 in poll
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/waitress-1.2.1-py3.7.egg/waitress/wasyncore.py", line 222 in loop
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/waitress-1.2.1-py3.7.egg/waitress/server.py", line 307 in run
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/waitress-1.2.1-py3.7.egg/waitress/__init__.py", line 17 in serve
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.recipe.zope2instance-6.2.0-py3.7.egg/plone/recipe/zope2instance/ctl.py", line 896 in serve_paste
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.recipe.zope2instance-6.2.0-py3.7.egg/plone/recipe/zope2instance/ctl.py", line 918 in serve
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Zope-4.0b10-py3.7.egg/Zope2/Startup/serve.py", line 194 in serve
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Zope-4.0b10-py3.7.egg/Zope2/Startup/serve.py", line 204 in run
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Zope-4.0b10-py3.7.egg/Zope2/Startup/serve.py", line 216 in main
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Zope-4.0b10-py3.7.egg/Zope2/Startup/serve.py", line 219 in <module>
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/parts/instance/bin/interpreter", line 304 in <module>


I've seen it before, but unsure what's happening so far.

I'm guessing that https://github.com/plone/plone.dexterity/blob/cffe9254836ec64e55c0855a75e7854939af2a45/plone/dexterity/schema.py#L232 is trying to get _p_mtime from the schema, which triggers a schema lookup which triggers the SCHEMA.modified again.

Maybe https://github.com/plone/plone.dexterity/blob/cffe9254836ec64e55c0855a75e7854939af2a45/plone/dexterity/content.py#L344 should be changed to check for _p_* as well?

The issue occurs with Python 3.6.7 + 3.7.3 (installed using pyenv) and a self-compiled Python 3.7.3 on my box running Fedora core 26.

I cannot reproduce the issue using the same Plone buildout on a more recent Ubuntu 18 installation with Python 3.6.7 (system python).

So apparently the issue is somehow dependent from the underlaying OS - weird.

The iteration in my second case is here:

  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/interface.py", line 525 in __hash__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/adapter.py", line 680 in _lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 58 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 282 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/schema.py", line 58 in decorator
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.synchronize-1.0.3-py3.7.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/utils.py", line 15 in get_parent
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 114 in _recurse_to_site
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 159 in _wrap
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 60 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 282 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/schema.py", line 58 in decorator
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.synchronize-1.0.3-py3.7.egg/plone/synchronize/decorator.py", line 9 in synchronized_function
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/plone.dexterity-2.9.0-py3.7.egg/plone/dexterity/content.py", line 127 in __get__
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/utils.py", line 15 in get_parent
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 114 in _recurse_to_site
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 159 in _wrap
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/five.localsitemanager-3.2.2-py3.7.egg/five/localsitemanager/registry.py", line 60 in _uncached_lookup
  File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.interface-4.6.0-py3.7-linux-x86_64.egg/zope/interface/registry.py", line 282 in queryUtility

The recursion fun start in /zope/interface/adapter.py", line 680 in _lookup
with the lookup for "InterfaceClass plone.dexterity.interfaces.IDexterityFTI" on a folder object.

My two (long) tracebacks are completely different - with the same outcome -> complete Plone crash

Possibly some weird interfaction with collective.lineage. As part of the migration process we used to use collective.lineage - in particular the enable_subsite() function. After dropping collective.lineage all together we problem disappeared...this all makes no sense but it is as it is :man_shrugging:

Connecting with the GitHub issue

Plone Foundation Code of Conduct