Segmentation fault in stalwart-migrate

Hi @enaut, this one is on our side. It’s the same arm64 crash as in the other topic, and it has nothing to do with your config or the 0.16 version you migrate from, so the upgrade to 0.16.27 couldn’t have helped.

The cause is how our aarch64 release binaries were compiled: RocksDB’s write queue uses an atomic operation that, in this build, can fail spuriously under concurrent writes, and RocksDB then dereferences a NULL pointer. That’s why it dies a few seconds into the account pass with nothing in the log.

It’s fixed for the next weekly Stalwart release and the next stalwart-migrate release. Your state in /var/lib/stalwart-migrate-v1 stays valid, so rerunning the same command with the new binary continues from there. If you don’t want to wait, a stalwart-migrate built from source on the server itself doesn’t have the problem; see Building from source (keep the default enterprise feature, since your status shows the enterprise edition).