I'm also affected by this bug, and after some investigation I found out that the only reason you do not see this assert on Ubuntu is because the Ubuntu build disables all asserts by the -DNDEBUG that leaks into CFLAGS from the python build.
I created a small Dockerfile that reliably show how to reproduce the issue on Ubuntu jammy, simply by undefining NDEBUG when building the breezy package:
I'm also affected by this bug, and after some investigation I found out that the only reason you do not see this assert on Ubuntu is because the Ubuntu build disables all asserts by the -DNDEBUG that leaks into CFLAGS from the python build.
I created a small Dockerfile that reliably show how to reproduce the issue on Ubuntu jammy, simply by undefining NDEBUG when building the breezy package:
https:/ /gist.githubuse rcontent. com/zeldin/ 166c88b95af28fe 8b2583ee76cb2e4 70/raw/ 8d3bd2ee68be4a4 f8d38600a37477b 3539279779/ Dockerfile
Hope this helps.