build2: Frequent random crashes on recent staged builds
I’ve been seeing fairly frequent bpkg terminated abnormally: access violation errors recently. Most frequently during sync it appears. Generally though they will not reproduce - running the exact same command again immediately will usually succeed.
I’ve now managed to capture a crash dump of one. It appears that sp was nullptr here: https://github.com/build2/bpkg/blob/master/bpkg/pkg-build.cxx#L5967
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 26 (13 by maintainers)
I eventually managed to get an asan-enabled build working. Thus far, the issue has not shown up since using it, just as it stubbornly refuses to when launching
bvia the debugger. I’ll keep trying…So this is based on the output I’m seeing in the shell, of the form given in the OP. I’ve seen it for both
bandbpkgfor certain (fairly often), possibly also forbdep, although of course there’s no way to be certain they’re all the same underlying issue. And I don’t know exactly how the shell/OS reports this stuff in relation to child processes, but yeah it would seem that unless it’s saying something very confusing, then indeed crashes are occurring in more than one of the executables.I have occasionally been building my project on Linux (only through WSL, however). Recently not so often since the clang/libc++ modules desync issue; that said, I’ve at least attempted to do so a number of times and as yet have not witnessed any crash on Linux.
Yes, the crash occurs across multiple machines. I may not have tried the JIT debugger on another machine though, which is a good point. I’ll try that.
Not yet, no. If I continue to fail to make any progress on getting a crash dump then I’ll try something like this.
Thanks for the report!
Will be fixed in the next staged version.