Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #7802: autodoc: EOFError is raised on parallel build #7818

Merged
merged 2 commits into from Jun 13, 2020

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Jun 11, 2020

Feature or Bugfix

  • Bugfix

Purpose

sphinx-build has crashed with EOFError when autodoc raises a warning
having exc_info under parallel mode. In parallel mode, all messages
are pickled to transfer logs to parent process. But the warning is
not picklable because it contains a traceback object.

This removes exc_info from warning messages to prevent crashes.

cc: @eric-wieser

refs: #7802

sphinx-build has crashed with EOFError when autodoc raises a warning
having exc_info under parallel mode.  In parallel mode, all messages
are pickled to transfer logs to parent process.  But the warning is
not picklable because it contains a traceback object.

This removes exc_info from warning messages to prevent crashes.
@tk0miya tk0miya merged commit 46f79c5 into sphinx-doc:3.1.x Jun 13, 2020
@tk0miya tk0miya deleted the 7802_EOFError_on_parallel_build branch June 13, 2020 06:22
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant