既然有方向了,後續應該會有人去找底層的問題...
先是在 Hacker News 上看到「Speculative fix to crashes from a CPU bug」這個猜測性的修正,這是因為他們發現在 Intel 的 Gemini Lake 低功耗晶片組上會發生很詭異的 crash:
For the last few months Chrome has been seeing many "impossible" crashes on Intel Gemini Lake, family 6 model 122 stepping 1 CPUs. These crashes only happen with 64-bit Chrome and only happen in the prologue of two functions. The crashes come and go across different Chrome versions.
然後依照 crash log 猜測跟 alignment 有關,所以決定用 gcc/clang 都有支援的 __attribute__
強制設定 alignment 來避開,但看起來手上沒有可以重製的環境,所以只能先把實做丟上來...