The case of the application that used thread local storage it never allocated (devblogs.microsoft.com)
from tedu@inks.tedunangst.com to inks@inks.tedunangst.com on 15 Mar 2024 22:42
https://inks.tedunangst.com/l/5087

Upon closer inspection, the real problem was not that the application’s TLS was being corrupted. The problem was that the application was using TLS slots it never allocated, so it was inadvertently using somebody else’s TLS slots as its own. And of course, when the true owner updated the TLS value, the application interpreted that as corruption.

#bugfix #concurrency #development #malloc #programming #windows

#bugfix #concurrency #development #inks #malloc #programming #windows

threaded - newest