Concurrency is hard. Thread unsafe operations that end up getting executed in multi-threaded contexts are a huge source of heisenbugs
https://www.bloomberg.com/news/articles/2019-06-28/boeing-s-... (paywalled)
https://archive.is/vdg9S (paywall workaround)
Note that there were several articles about it around the time, the above one is just the first reasonable seeming one from a quick search.
"the bug was missed because it only presented when many aircraft at the same time were using the system"
Obviously sessions should be independent and not sharing data, but that's why it was a bug.