# Unhandled exception during os.killpg

## What happened

Issue ansible/ansible#85897 (closed, 14 comments): ### Summary I've been working on this for days! I have a playbook calling on a common role and within the role there is a playbook called add_groups.yml. It says the gid of a list of items in a dictionary the gid is undefined! I turned on: ``` debugger: on_failed ``` It's running on MacOS with Homebrew and I ran Disk Utility and there's nothing wrong with the disk! I even reinstalled Ansible and all of it's dependencies! I've run it on the local machine, another machine and a remote machine over the VPN and it gets the same error! I even ran it with a debug module of the dictionary and it stil

## What works

The PermissionError / os.killpg traceback that surfaces as 'Unexpected Exception, this is probably a bug' was resolved by PR #85907 in ansible-core. Upgrade ansible-core past the version containing that fix and the crash goes away.

## Caveats

This comes from one real issue thread (gh:ansible/ansible#85897); it is the verified fix or approach from that thread, not a general manual. Check your version of Ansible first ,  maintainers often fix the underlying bug in a later release, and the thread may predate it.