In GitLab by @perarnau on Jan 6, 2021, 11:39 @Kerilk noted that aml_errno is not thread-private, meaning that multiple threads accessing aml in parallel can end up reading each other's errors.