Skip to content

UBsan warning from ClientHistory::update_from_ref_and_version in client reset tests #7041

@kiburtse

Description

@kiburtse

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions