yyzybb537 / libgo

Go-style concurrency in C++11
MIT License
3.18k stars 754 forks source link

MacOS X M1 segmentation fault #286

Open akofer opened 1 year ago

akofer commented 1 year ago

在 MacBook M1 上编译成功 (需要把 third_party 里的 boost.context 更新成最新的 boost1.81,之前是 2018 年的 boost, 那时候 Mac M1 芯片还没发布)。

但是执行 test/golang/test.sh 失败,单独运行 libgo_test 报段错误: $ ./libgo_test std::atomic.add 10000000 9 ns/op 11059 w/s Segmentation fault: 11

用vscode调试截图:

image