during nightly build baas-integration-tests under ubuntu2004-ubsan reported an issue.
Core version
Core version: 13.22.0
Relevant lines from the log file:
[2023/10/06 00:04:46.966] 4: 13.076 s: DiscardLocal: open realm after client reset failure
[2023/10/06 00:04:47.810] 4: 14.406 s: flx: client reset
[2023/10/06 00:04:53.896] 4: ../src/realm/sync/noinst/client_history_impl.cpp:1202:45: runtime error: reference binding to null pointer of type 'realm::Group'
[2023/10/06 00:04:53.897] 4: SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/realm/sync/noinst/client_history_impl.cpp:1202:45 in
so the test must be next after: 'flx: client reset' -c 'Recover: schema indexes match in before and after states'
The stack trace is missing from ubsan report sadly, but from what i can tell it can only happen from this code path