# Diagnosing Intermittent Crashes in Fastmail's Automated Test Systems

DevFeed: [Diagnosing Intermittent Crashes in Fastmail's Automated Test Systems](<https://devfeed.tech/articles/the-cache-crash-51579.md>)

Original publisher: [Read original article](<https://www.fastmail.com/blog/the-cache-crash/>)

Author: Matthew Horsfall

Published: 2025-09-17T00:00:01Z

Content type: article

Language: en

Sources: [Fastmail Blog](<https://devfeed.tech/sources/fastmail-blog.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [gitlab-ci](<https://devfeed.tech/topics/gitlab-ci.md>), [bug](<https://devfeed.tech/topics/bug.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [GitLab](<https://devfeed.tech/topics/gitlab.md>)

Tags: [automated](<https://devfeed.tech/tags/automated.md>), [bug](<https://devfeed.tech/tags/bug.md>), [ci](<https://devfeed.tech/tags/ci.md>), [crash](<https://devfeed.tech/tags/crash.md>), [developer](<https://devfeed.tech/tags/developer.md>), [free-software](<https://devfeed.tech/tags/free-software.md>), [gitlab-ci](<https://devfeed.tech/tags/gitlab-ci.md>), [technical](<https://devfeed.tech/tags/technical.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

Fastmail describes investigating intermittent crashes that caused failures in its automated test systems. The post explains the testing workflow, including GitLab CI jobs, scheduled virtual-machine runs, and failures involving SIGABRT and SIGSEGV signals. The supplied excerpt ends before the underlying cause is established.

## Source excerpt

Software Freedom Day is this week, and we thought we'd mark the occasion with a post about some of our work on open source software that we maintain. Fastmail believes in being a good internet citizen, and that belief means we participate in the development of free software, both by sharing software that we write and by contributing to the maintenance of free software that we use. This is a highly technical post about how we solved a crash in our automated test systems. You do not need to make any changes to your Fastmail account or your email software, and you can ignore this post if it's not interesting to you! What happens when a mysterious bug causes all your tests to fail once or twice a week? We try to solve these mysteries, even if it takes a year. At Fastmail we have a strong testing culture around our code. When we write a new feature or fix a bug, we include tests to show that our feature works or the bug has actually been fixed. We open a Merge Request, and GitLab CI kicks off a job to run the project's full test suite. We also have a scheduled job that runs once a day, testing our mainline branch. This checks that the tests haven't started failing because of changes to the outside world. The job stands up a virtual machine, installs all of the necessary software, updates configurations, starts the various services that make up Fastmail, and then runs all of the tests. Finally, it shuts down the box and generates some downloadable artifacts with the test results. There are quite a few tests. All told, this process takes about 13 minutes. As a developer, you're hoping to see this: File Count: 441 Assertion Count: 22040 --> Result: PASSED <-- Starting some time in early 2023, we'd occasionally have jobs fail in strange ways. We didn't see failures around the features we were changing. Instead, we'd see a bunch of random tests would fail with the error "Signal: 6" and "Signal: 11": ( STDERR ) job 364 free(): invalid size < REASON > job 364 Test script return