Well, @riadfromhabsheim, I tried your fix and, like with all other fixes, I was convinced that it worked for good… But nope, just as I was adding a photo to my Office365 profile, Safari crashed my windowServer again. Swell…
I must confess that I haven't been a good member of the community, though, as an Apple engineer offered to diagnose the issue on my iMac and I haven't replied since. However, it ****** me off that Apple throws old Macs on the trash (vintage as they may be, if they run the latest macOS version they should be properly supported and tested) instead of keeping a few around to test blatantly reproducible and fairly obvious bugs like this, thus relying on their users' valuable time to conduct their testing routines. I mean, I'd love to help you and myself, but I have a thesis to write and work to do, sorry…
This bug went unaddressed for far too long already, to the point that I'm considering buying a used Mid 2011 iMac to get rid of it for good (so far, I've only seen reports of it occurring on 2009 and 2010 machines, but if someone who owns one of those last “fat” models – which are great for me, since they are super easy to crack open to update the processor and WiFi+BT and to install a cheap Fusion Drive config, besides the fact that I already own 32 GB of memory compatible with them – is also suffering from this bug, please do tell me so that I don't end up buying yet another iMac “lemonized” by Apple).
The thing is, even if I find one of those, it's still a big investment and I reckon I'll have some trouble reselling this Late 2009 model to iPhone users (which, let's face it, a sizeable proportion of professional Mac users are), as they, like me, might value iCloud Safari syncing, and I'm far too honest to make a sale without giving out all the necessary warnings and the computer's full history (like the processor and Fusion Drive upgrades that I made, the CPU fan replacement it underwent, etc…).
I mean, seriously, this goes to show just how wrong Apple's internal processes and priorities are set right now.