I suspect it is a bug related to pointers.. Ubuntu builds are built with GCC, MacOS builds are built with clang, Windows builds with MSVC. These kinds of things sometimes behave differently depending on the compiler and the platform.
I will need to debug this on a Linux machine.
Updating my Win/Linux dual boot box to Win 11 meant I had to blow away my Ubuntu partition. I have some RHEL / SLES VM's, but I haven't taken the time to build up an Ubuntu one yet.
So, maybe this bug will show on one of those VM's, but no matter what, it will take a while for me to be able to dig into this.
Rob