fuzz: several improvements to scriptpubkeyman harness #34969

Open
brunoerg wants to merge 7 commits from 2026-03-fuzz-spkm-improvements into master AGit
brunoerg commented 2026-03-31 19:10:58 +00:00 (Migrated from github.com)

The scriptpubkeyman harness is slow - I'm getting under 40 exec/s on my personal server. This PR solves the following issues that may be affecting the performance:

  • There are redundant IsMine calls
  • ConsumeCoins always create up to 10'000 coins which may cause slowness.
  • There are some expensive ops in a loop - e.g. One of the slow units I got on my server is about a repeated sequence of GetNewDestination calls (see flamegraph below).
  • We're always calling GetDescriptorString unconditionally. It looks like an inofensive function but this is extremely costly due to calls to ToNormalizedString/ToPrivateString functions that touch key operations.
  • Not related to slowness, but there is a bug on harness because we are aborting the execution when we cannot update the wallet descriptor, we can just skip and continue.

spkm-updated

The scriptpubkeyman harness is slow - I'm getting under 40 exec/s on my personal server. This PR solves the following issues that may be affecting the performance: - There are redundant `IsMine` calls - `ConsumeCoins` always create up to 10'000 coins which may cause slowness. - There are some expensive ops in a loop - e.g. One of the slow units I got on my server is about a repeated sequence of `GetNewDestination` calls (see flamegraph below). - We're always calling `GetDescriptorString` unconditionally. It looks like an inofensive function but this is extremely costly due to calls to `ToNormalizedString`/`ToPrivateString` functions that touch key operations. - Not related to slowness, but there is a bug on harness because we are aborting the execution when we cannot update the wallet descriptor, we can just skip and continue. ![spkm-updated](https://git.fish.foo/attachments/57d31f8f-d450-4827-a43a-3bcef92d60fc)
DrahtBot commented 2026-03-31 19:11:13 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK pablomartin4btc

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #35444 (wallet: make descriptor SPKM mutex non-recursive by w0xlt)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/34969 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/34969.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/34969#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [pablomartin4btc](https://github.com/bitcoin/bitcoin/pull/34969#pullrequestreview-6163849507) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#35444](https://github.com/bitcoin/bitcoin/pull/35444) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35444.svg"></sub> (wallet: make descriptor SPKM mutex non-recursive by w0xlt) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3-->
andrewtoth commented 2026-03-31 21:04:26 +00:00 (Migrated from github.com)

Getting decent throughput when running on my laptop:

$ FUZZ=scriptpubkeyman ./build_fuzz_nosan/bin/fuzz ../qa-assets/fuzz_corpora/scriptpubkeyman/
...
#3326974	REDUCE cov: 14175 ft: 84867 corp: 5289/37Mb lim: 998620 exec/s: 1319 rss: 262Mb L: 15776/882699 MS: 1 EraseBytes-
#3327186	REDUCE cov: 14175 ft: 84867 corp: 5289/37Mb lim: 998620 exec/s: 1319 rss: 262Mb L: 961/882699 MS: 2 ChangeBit-EraseBytes-
#3328687	REDUCE cov: 14175 ft: 84867 corp: 5289/37Mb lim: 998620 exec/s: 1319 rss: 262Mb L: 1249/882699 MS: 1 EraseBytes-
...

How is your server configured? Do you see a big speedup after applying this patch?

Getting decent throughput when running on my laptop: ```bash $ FUZZ=scriptpubkeyman ./build_fuzz_nosan/bin/fuzz ../qa-assets/fuzz_corpora/scriptpubkeyman/ ... #3326974 REDUCE cov: 14175 ft: 84867 corp: 5289/37Mb lim: 998620 exec/s: 1319 rss: 262Mb L: 15776/882699 MS: 1 EraseBytes- #3327186 REDUCE cov: 14175 ft: 84867 corp: 5289/37Mb lim: 998620 exec/s: 1319 rss: 262Mb L: 961/882699 MS: 2 ChangeBit-EraseBytes- #3328687 REDUCE cov: 14175 ft: 84867 corp: 5289/37Mb lim: 998620 exec/s: 1319 rss: 262Mb L: 1249/882699 MS: 1 EraseBytes- ... ``` How is your server configured? Do you see a big speedup after applying this patch?
brunoerg commented 2026-04-01 01:11:42 +00:00 (Migrated from github.com)

Getting decent throughput when running on my laptop:

What are the specs? How did you build it? Building with --preset=libfuzzer on my Ubuntu machine (AMD Ryzen 9 7900 / 32GB RAM), I get around 20 exec/s. With this PR, on same machine, I could reach similar coverage from master with an avg of 150 exec/s.

> Getting decent throughput when running on my laptop: What are the specs? How did you build it? Building with `--preset=libfuzzer` on my Ubuntu machine (AMD Ryzen 9 7900 / 32GB RAM), I get around 20 exec/s. With this PR, on same machine, I could reach similar coverage from master with an avg of 150 exec/s.
andrewtoth commented 2026-04-01 03:07:54 +00:00 (Migrated from github.com)

I'm on a i9-14900 with 96 GB RAM.

I was running with only fuzzer sanitizer. When --preset=libfuzzer that uses undefined,address,fuzzer. With those I get a lot slower. It started at at 39 but after a few minutes was up to 128 exec/s. I checked out this PR and then it started at 128 and after a few minutes was up to 385 exec/s. Not bad!

Running with only fuzzer sanitizer on this branch however didn't seem to speed up it was around 1100 exec/s.

I'm on a i9-14900 with 96 GB RAM. I was running with only fuzzer sanitizer. When `--preset=libfuzzer` that uses `undefined,address,fuzzer`. With those I get a lot slower. It started at at 39 but after a few minutes was up to 128 exec/s. I checked out this PR and then it started at 128 and after a few minutes was up to 385 exec/s. Not bad! Running with only `fuzzer` sanitizer on this branch however didn't seem to speed up it was around 1100 exec/s.
brunoerg commented 2026-04-01 12:13:36 +00:00 (Migrated from github.com)

I'm on a i9-14900 with 96 GB RAM.

I was running with only fuzzer sanitizer. When --preset=libfuzzer that uses undefined,address,fuzzer. With those I get a lot slower. It started at at 39 but after a few minutes was up to 128 exec/s. I checked out this PR and then it started at 128 and after a few minutes was up to 385 exec/s. Not bad!

Running with only fuzzer sanitizer on this branch however didn't seem to speed up it was around 1100 exec/s.

Ah, got it. This is expected, because ASan instruments most memory accesses in instrumented code and tracks heap allocations, while UBSan adds runtime checks for selected undefined behaviors. So operations like GetScriptPubKeys(), ConsumeCoins(), and some string operations, such as GetDescriptorString() can become more expensive under these sanitizers.

> I'm on a i9-14900 with 96 GB RAM. > > I was running with only fuzzer sanitizer. When `--preset=libfuzzer` that uses `undefined,address,fuzzer`. With those I get a lot slower. It started at at 39 but after a few minutes was up to 128 exec/s. I checked out this PR and then it started at 128 and after a few minutes was up to 385 exec/s. Not bad! > > Running with only `fuzzer` sanitizer on this branch however didn't seem to speed up it was around 1100 exec/s. Ah, got it. This is expected, because ASan instruments most memory accesses in instrumented code and tracks heap allocations, while UBSan adds runtime checks for selected undefined behaviors. So operations like GetScriptPubKeys(), ConsumeCoins(), and some string operations, such as GetDescriptorString() can become more expensive under these sanitizers.
maflcko (Migrated from github.com) reviewed 2026-04-10 10:53:40 +00:00
maflcko (Migrated from github.com) commented 2026-04-10 10:53:40 +00:00

1d826e5b8c49f8ebb8acd84c50861ea65c4129f8: Can you explain this a bit better? Sure, it may be internally covered in MarkUnusedAddresses, but the goal of fuzz tests is not only to cover code, but also to assert on results or assumptions

1d826e5b8c49f8ebb8acd84c50861ea65c4129f8: Can you explain this a bit better? Sure, it may be internally covered in `MarkUnusedAddresses`, but the goal of fuzz tests is not only to cover code, but also to assert on results or assumptions
brunoerg (Migrated from github.com) reviewed 2026-04-13 13:48:21 +00:00
brunoerg (Migrated from github.com) commented 2026-04-13 13:48:21 +00:00

I've changed this commit to say that it's removing excessive IsMine calls (e.g. calling it for every single spk from GetScriptPubKeys. In a later commit, I add the assert back but in a smoothly way.

I've changed this commit to say that it's removing excessive `IsMine` calls (e.g. calling it for every single spk from `GetScriptPubKeys`. In a later commit, I add the assert back but in a smoothly way.
DrahtBot commented 2026-04-30 19:58:07 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task iwyu: https://github.com/bitcoin/bitcoin/actions/runs/25183113515/job/73833297823
LLM reason (✨ experimental): CI failed because the IWYU include/format check for src/util/feefrac.h generated a failure (^^^ ⚠️ Failure generated from IWYU).

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `iwyu`: https://github.com/bitcoin/bitcoin/actions/runs/25183113515/job/73833297823</sub> <sub>LLM reason (✨ experimental): CI failed because the IWYU include/format check for `src/util/feefrac.h` generated a failure (`^^^ ⚠️ Failure generated from IWYU`).</sub> <details><summary>Hints</summary> Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example: * Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch. * A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test. * An intermittent issue. Leave a comment here, if you need help tracking down a confusing failure. </details>
brunoerg commented 2026-05-05 14:42:52 +00:00 (Migrated from github.com)

Rebased

Rebased
ekzyis commented 2026-06-13 18:25:12 +00:00 (Migrated from github.com)

Building with --preset=libfuzzer on my Ubuntu machine (AMD Ryzen 9 7900 / 32GB RAM), I get around 20 exec/s

I get around 2000 exec/s on master (4c99ed1076) and 40786bb2f8 with --preset=libfuzzer.

I also fuzzed the scriptpubkeyman target for 10 minutes on both commits, and got a similar amount of runs:

$ tail -1 fuzz-scriptpubkeyman-4c99ed1076.txt
Done 1191929 runs in 601 second(s)
$ tail -1 fuzz-scriptpubkeyman-40786bb2f8.txt
Done 1195257 runs in 601 second(s)

Intel(R) Xeon(R) CPU E3-1275 v6 @ 4.20GHz with 64GB RAM

I thought maybe the latest changes to the harness since your comments changed performance:

$ git log --oneline --since=2026-04-01 master -- src/wallet/test/fuzz/scriptpubkeyman.cpp
c6f225c757c Merge bitcoin/bitcoin#28333: wallet: Construct ScriptPubKeyMans with all data rather than loaded progressively
c568624ff29 psbt: Return std::optional from PrecomputePSBTData
c01c7f068c5 psbt: Remove default constructor
6538f691357 fuzz: Skip adding descriptor to wallet if it cannot be expanded
0301c758ea0 wallet migration, fuzz: Migrate hd seed once
dc4a5d1270f refactor: use PSBTFillOptions for filling and signing

I checked out c6f225c757 and c6f225c757^. Same performance with around 2000 exec/s:

$ tail -1 fuzz-scriptpubkeyman-5486ef8cc2.txt
Done 1198053 runs in 601 second(s)
$ tail -1 fuzz-scriptpubkeyman-c6f225c757.txt
Done 1124156 runs in 601 second(s)

So not sure where the low exec/s on your machines are coming from.

> Building with --preset=libfuzzer on my Ubuntu machine (AMD Ryzen 9 7900 / 32GB RAM), I get around 20 exec/s I get around 2000 exec/s on master (4c99ed1076) and 40786bb2f8 with --preset=libfuzzer. I also fuzzed the scriptpubkeyman target for 10 minutes on both commits, and got a similar amount of runs: ``` $ tail -1 fuzz-scriptpubkeyman-4c99ed1076.txt Done 1191929 runs in 601 second(s) $ tail -1 fuzz-scriptpubkeyman-40786bb2f8.txt Done 1195257 runs in 601 second(s) ``` Intel(R) Xeon(R) CPU E3-1275 v6 @ 4.20GHz with 64GB RAM I thought maybe the latest changes to the harness since your comments changed performance: ``` $ git log --oneline --since=2026-04-01 master -- src/wallet/test/fuzz/scriptpubkeyman.cpp c6f225c757c Merge bitcoin/bitcoin#28333: wallet: Construct ScriptPubKeyMans with all data rather than loaded progressively c568624ff29 psbt: Return std::optional from PrecomputePSBTData c01c7f068c5 psbt: Remove default constructor 6538f691357 fuzz: Skip adding descriptor to wallet if it cannot be expanded 0301c758ea0 wallet migration, fuzz: Migrate hd seed once dc4a5d1270f refactor: use PSBTFillOptions for filling and signing ``` I checked out c6f225c757c and c6f225c757c^. Same performance with around 2000 exec/s: ``` $ tail -1 fuzz-scriptpubkeyman-5486ef8cc2.txt Done 1198053 runs in 601 second(s) $ tail -1 fuzz-scriptpubkeyman-c6f225c757.txt Done 1124156 runs in 601 second(s) ``` So not sure where the low exec/s on your machines are coming from.
brunoerg commented 2026-06-16 11:55:30 +00:00 (Migrated from github.com)

I get around 2000 exec/s on master (github.com/bitcoin/bitcoin@4c99ed1076) and github.com/bitcoin/bitcoin@40786bb2f8 with --preset=libfuzzer.

Running from our corpus?

> I get around 2000 exec/s on master (https://github.com/bitcoin/bitcoin/commit/4c99ed10766c7fac1353d1402d1b99de4c656c08) and https://github.com/bitcoin/bitcoin/commit/40786bb2f8c01fe80f96b9e1dce610d043b800f2 with --preset=libfuzzer. Running from our corpus?
ekzyis commented 2026-06-26 16:15:17 +00:00 (Migrated from github.com)

Running from our corpus?

Oh, no. With the scriptpubkeyman corpus from qa-assets, I get about 200–300 exec/s on the same machine. Thanks, this clears up my confusion! Sorry for the noise

> Running from our corpus? Oh, no. With the scriptpubkeyman corpus from qa-assets, I get about 200–300 exec/s on the same machine. Thanks, this clears up my confusion! Sorry for the noise
DrahtBot commented 2026-07-14 18:55:59 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
brunoerg commented 2026-07-15 16:10:36 +00:00 (Migrated from github.com)

Rebased

Rebased
pablomartin4btc (Migrated from github.com) reviewed 2026-08-11 01:45:53 +00:00
pablomartin4btc (Migrated from github.com) left a comment

Concept ACK

A real improvement — the early return bug fix and moving expensive ops (GetDescriptorString, GetNewDestination) out of the hot path are the right calls.

Left a comment inline on the assertion coverage (not blocking).

Concept ACK A real improvement — the early return [bug](https://github.com/bitcoin/bitcoin/blob/757aa573c458a1225ec0da89278fc7b0217f46b6/src/wallet/test/fuzz/scriptpubkeyman.cpp#L108-L109) fix and moving expensive ops (`GetDescriptorString`, `GetNewDestination`) out of the hot path are the right calls. Left a comment inline on the assertion coverage (not blocking).
pablomartin4btc (Migrated from github.com) commented 2026-08-11 01:28:30 +00:00

Following up on @maflcko's concern about assertions: the assert is restored in the last commit but only for one randomly picked script from GetScriptPubKeys(). The original code asserted IsMine for every script in the set — a stronger invariant that would catch a bug where some (but not all) returned scripts fail IsMine.

Also, the inverse direction check from the old code is gone entirely: if (IsMine(random_script)) → assert(GetScriptPubKeys().contains(script)). That covered the other direction of the invariant — a bug where IsMine claims ownership of a script that isn't listed in GetScriptPubKeys().

Since spks is already computed once outside the loop, the full assertion can be kept cheaply:

for (const CScript& spk : spks) {
    assert(spk_manager->IsMine(spk));
}

The expensive part was calling GetScriptPubKeys() repeatedly in the loop — iterating over the already-computed spks is negligible.

Following up on @maflcko's concern about assertions: the assert is restored in the last commit but only for one randomly picked script from `GetScriptPubKeys()`. The original code asserted `IsMine` for *every* script in the set — a stronger invariant that would catch a bug where some (but not all) returned scripts fail `IsMine`. Also, the inverse direction check from the old code is gone entirely: `if (IsMine(random_script)) → assert(GetScriptPubKeys().contains(script))`. That covered the other direction of the invariant — a bug where `IsMine` claims ownership of a script that isn't listed in `GetScriptPubKeys()`. Since `spks` is already computed once outside the loop, the full assertion can be kept cheaply: ```cpp for (const CScript& spk : spks) { assert(spk_manager->IsMine(spk)); } ``` The expensive part was calling `GetScriptPubKeys()` repeatedly in the loop — iterating over the already-computed `spks` is negligible.
pablomartin4btc (Migrated from github.com) commented 2026-08-10 17:08:20 +00:00

minor nit: redundant default construction + assignment...

            auto tx_to = {*opt_tx_to};
minor nit: redundant default construction + assignment... ```suggestion auto tx_to = {*opt_tx_to}; ```
brunoerg (Migrated from github.com) reviewed 2026-08-19 13:04:58 +00:00
brunoerg (Migrated from github.com) commented 2026-08-19 13:04:58 +00:00

Yes, I agree. Just changed it to full assertion since it's cheap.

Yes, I agree. Just changed it to full assertion since it's cheap.
brunoerg (Migrated from github.com) reviewed 2026-08-19 13:05:09 +00:00
brunoerg (Migrated from github.com) commented 2026-08-19 13:05:09 +00:00

will leave as-is for now.

will leave as-is for now.
First-time contributor

Base: a773e1e33b349dc819b5a0edc1c7a4839dc73b48
Head: 0b0df80ba02863fd95128822558625a4c2367d15

Findings

Major

The conditional result cannot bind to auto& (src/wallet/test/fuzz/scriptpubkeyman.cpp:144, head)

PickValue returns a reference to an element, while ConsumeScript returns a CScript by value. The conditional expression therefore yields a value, which cannot bind to the non-const auto&; this prevents the fuzz target from compiling. Store the result by value or split the alternatives into branches.

Design and approach

Retain bounded stateful operation sequencing (src/wallet/test/fuzz/scriptpubkeyman.cpp:123, head)

Previously, GetNewDestination and MarkUnusedAddresses were selectable on each iteration of a loop bounded at 20 iterations, allowing valid ranged descriptors to encounter repeated calls in different orders. Now destination generation happens at most once before spks is captured, and MarkUnusedAddresses happens at most once afterward. Both mutate keypool state: GetNewDestination tops up the pool and increments next_index, while MarkUnusedAddresses can advance it and top up. Could the expensive branches remain gated while a smaller bounded sequence preserves coverage of these state transitions? The profile motivates reducing hot-path work but does not establish that losing this stateful exploration is acceptable.

Full review report

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:1e40d4c29146a38cb238a037edaa35c22b13996a5383ed7a85e089a15d569009:c9412d948811529792d161d97aa6951829440e3d548b7c576bb8d4df4183e0d0 --> Base: `a773e1e33b349dc819b5a0edc1c7a4839dc73b48` Head: `0b0df80ba02863fd95128822558625a4c2367d15` ##### Findings **Major** **The conditional result cannot bind to `auto&`** (src/wallet/test/fuzz/scriptpubkeyman.cpp:144, head) `PickValue` returns a reference to an element, while `ConsumeScript` returns a `CScript` by value. The conditional expression therefore yields a value, which cannot bind to the non-const `auto&`; this prevents the fuzz target from compiling. Store the result by value or split the alternatives into branches. ##### Design and approach **Retain bounded stateful operation sequencing** (src/wallet/test/fuzz/scriptpubkeyman.cpp:123, head) Previously, `GetNewDestination` and `MarkUnusedAddresses` were selectable on each iteration of a loop bounded at 20 iterations, allowing valid ranged descriptors to encounter repeated calls in different orders. Now destination generation happens at most once before `spks` is captured, and `MarkUnusedAddresses` happens at most once afterward. Both mutate keypool state: `GetNewDestination` tops up the pool and increments `next_index`, while `MarkUnusedAddresses` can advance it and top up. Could the expensive branches remain gated while a smaller bounded sequence preserves coverage of these state transitions? The profile motivates reducing hot-path work but does not establish that losing this stateful exploration is acceptable. [Full review report](<https://review.fish.foo/traces/34969-0b0df80ba02863fd95128822558625a4c2367d15-1262-2.html>)
pablomartin4btc (Migrated from github.com) reviewed 2026-12-03 04:47:34 +00:00
pablomartin4btc (Migrated from github.com) left a comment

ACK 0b0df80ba0

Since my last review, only a rebase plus the last commit, which now asserts the full IsMine/GetScriptPubKeys invariant in both directions using the precomputed spks set, thanks for taking that! Also nice catch on asserting the inverse direction before MarkUnusedAddresses(), since it may TopUp().

ACK 0b0df80ba02863fd95128822558625a4c2367d15 Since my last review, only a rebase plus the last commit, which now asserts the full `IsMine`/`GetScriptPubKeys` invariant in both directions using the precomputed `spks` set, thanks for taking that! Also nice catch on asserting the inverse direction before `MarkUnusedAddresses()`, since it may `TopUp()`.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!34969
No description provided.