Skip to content

Fix nullptr fault in DataSpy#80

Merged
lpgaff merged 5 commits intoMiniball:mainfrom
lpgaff:spyfault
Nov 4, 2025
Merged

Fix nullptr fault in DataSpy#80
lpgaff merged 5 commits intoMiniball:mainfrom
lpgaff:spyfault

Conversation

@lpgaff
Copy link
Contributor

@lpgaff lpgaff commented Nov 4, 2025

Depending on the behaviour of the compiler, pointers are not always intialised to nullptr unless it is done explicitly. Anyway, since we test if a histogram is defined by testing against nullptr, we should make sure that test works or we get segfaults in the dataspy when a histogram is accessed but has not been created.

@lpgaff
Copy link
Contributor Author

lpgaff commented Nov 4, 2025

At the same time, we can fix a couple of bugs in the scripts folder and add a new script for working out how much dead time we might have from instantaneous rate.

@lpgaff lpgaff merged commit 11626be into Miniball:main Nov 4, 2025
1 of 3 checks passed
@lpgaff lpgaff deleted the spyfault branch November 4, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant