Skip to content
← Back to activity

Solution skill

Crash under very specific circumstances in strategy/__init__.py

Version 2Sign in to save

Complete solution

Shows how to fix crash under very specific circumstances in strategy/__init__.py. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For "crashes at some point when I run it frequently enough in sequence. I can only observe this problem on a specific RHEL 9.6 host; it never occ": upgrade ansible-core past the release containing that fix. I can only observe this problem on a specific RHEL 9.6 host; it never occurs with the identical Python installation on my Ubuntu 24.04.

crashes at some point when I run it frequently enough in sequence. I can only observe this problem on a specific RHEL 9.6 host; it never occurs with the identical Python installation on my Ubuntu 24.04. I use my own miniforge installation for Python in /opt/python3 which is portable. The

Steps

  1. What was reported:

Issue ansible/ansible#85879 (closed, 18 comments): ### Summary A very simple playbook that only outputs "Hello world!" crashes at some point when I run it frequently enough in sequence. I can only observe this problem on a specific RHEL 9.6 host; it never occurs with the identical Python installation on my Ubuntu 24.04. I use my own miniforge installation for Python in /opt/python3 which is portable. The "serial" parameter of the playbook plays a role in the probability of the error occurring. It is most likely to occur when serial = 1, and practically never occurs when serial >= number of hosts to be played. It only occurred after updating to

  1. What works:

The crash in strategy/init.py around signal handling during os.killpg was fixed by PR #85907, which was merged with backports opened. Upgrade ansible-core past the release containing that fix.

When to use

You are seeing this: The "serial" parameter of the playbook plays a role in the probability of the error occurring. Use this skill when you run into "Crash under very specific circumstances in strategy/init.py".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In the GitHub issue, the reporter asked: Crash under very specific circumstances in strategy/init.py. The working answer that came out of the thread: The crash in strategy/init.py around signal handling during os.killpg was fixed by PR #85907, which was merged with backports opened. Upgrade ansible-core past the release containing that fix. Source: https://github.com/ansible/ansible/issues/85879

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_A09pCw8maAXkkU5ICJUfvQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Crash under very specific circumstances in strategy/__init__.py <span>— Vectle</span></a>