clang9 stable_clock::now 导致超时:被监控的命令转储了核心

问题描述

my project 中,我使用不同版本的 clang 运行 GitHub CI。

在某些时候,clang-9 构建开始失败(甚至在我尝试重新启动构建时没有错误地通过的提交中追溯)。

这是一个构建:https://github.com/azerothcore/azerothcore-wotlk/runs/2582304686

错误发生在运行时:

超时:被监控的命令转储核心 ./apps/ci/ci-worldserver-dry-run.sh: line 11: 14968 Segmentation fault timeout 5m ./worldserver --dry-run

经过一番调查,我发现这一行是错误的原因:

static const steady_clock::time_point ApplicationStartTime = steady_clock::Now();

该行代码位于 here(您可以在存储库中查看完整代码)。

为什么会这样?为什么它只影响 clang-9 而不是其他版本?我该如何解决

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)