Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Dec 6, 2022

This will show the unique id of the full source code when the bug occurred, which can help debugging

@DrahtBot
Copy link
Contributor

DrahtBot commented Dec 6, 2022

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

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK 1440000bytes, theStack, john-moffett
Concept ACK hebasto, dergoegge

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@DrahtBot DrahtBot changed the title util: Include full version id in bug reports util: Include full version id in bug reports Dec 6, 2022
@maflcko
Copy link
Member Author

maflcko commented Dec 6, 2022

For example:

$ ./src/bitcoin-cli -named echo 'arg9=trigger_internal_bug'
error code: -1
error message:
Internal bug detected: "request.params[9].get_str() != "trigger_internal_bug""
rpc/node.cpp:315 (operator())
Bitcoin Core v24.99.0-fa825bd227b9
Please report this issue here: https://github.com/bitcoin/bitcoin/issues

@ghost
Copy link

ghost commented Dec 6, 2022

utACK fa825bd

@hebasto
Copy link
Member

hebasto commented Dec 6, 2022

Concept ACK.

Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK fa825bd

Output diff of the trigger_internal_bug-test between master and PR, once without and once with local changes (files have been created with e.g. ./src/bitcoin-cli -named echo 'arg9=trigger_internal_bug' 2> /tmp/master):

diff --git a/tmp/master b/tmp/pr
index aa5ae158a..a81a965a8 100644
--- a/tmp/master
+++ b/tmp/pr
@@ -2,5 +2,6 @@ error code: -1
 error message:
 Internal bug detected: "request.params[9].get_str() != "trigger_internal_bug""
 rpc/node.cpp:315 (operator())
+Bitcoin Core v24.99.0-fa825bd227b9
 Please report this issue here: https://github.com/bitcoin/bitcoin/issues
diff --git a/tmp/master b/tmp/pr_dirty
index aa5ae158a..60598c2e6 100644
--- a/tmp/master
+++ b/tmp/pr_dirty
@@ -2,5 +2,6 @@ error code: -1
 error message:
 Internal bug detected: "request.params[9].get_str() != "trigger_internal_bug""
 rpc/node.cpp:315 (operator())
+Bitcoin Core v24.99.0-fa825bd227b9-dirty
 Please report this issue here: https://github.com/bitcoin/bitcoin/issues

Copy link
Contributor

@john-moffett john-moffett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK fa825bd

@dergoegge
Copy link
Member

Concept ACK

@maflcko maflcko merged commit 272fb0a into bitcoin:master Dec 7, 2022
@maflcko maflcko deleted the 2212-full-version-id-🍁 branch December 7, 2022 07:54
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Dec 8, 2022
fa825bd util: Include full version id in bug reports (MarcoFalke)

Pull request description:

  This will show the unique id of the full source code when the bug occurred, which can help debugging

ACKs for top commit:
  1440000bytes:
    utACK bitcoin@fa825bd
  theStack:
    ACK fa825bd
  john-moffett:
    ACK fa825bd

Tree-SHA512: a7a775718f5f9796b5cffafbb3ace8adb5c163414ec584a57143157fc9dfb86f799e3b9c8365fcb831ee1e9eafc59d699d1653d772c68392de421b3de74dcd61
hebasto added a commit to hebasto/bitcoin that referenced this pull request Dec 10, 2022
This change is required to make the following commits compatible with
the recent bitcoin#26645.
@hebasto hebasto mentioned this pull request Dec 10, 2022
hebasto added a commit to hebasto/bitcoin that referenced this pull request Dec 12, 2022
After bitcoin#26645, this change is
required to be able to `#include clientversion.h` in the
`libbitcoinconsensus` code without dependency on `util/translation.h`.
hebasto added a commit to hebasto/bitcoin that referenced this pull request Dec 12, 2022
After bitcoin#26645, this change is
required to be able to `#include clientversion.h` in the
`libbitcoinconsensus` code without dependency on `util/translation.h`.
@bitcoin bitcoin locked and limited conversation to collaborators Dec 7, 2023
DashCoreAutoGuix pushed a commit to DashCoreAutoGuix/dash that referenced this pull request Jul 9, 2025
- Modified format_internal_error macro to include PACKAGE_NAME and FormatFullVersion()
- Added clientversion.h include to util/check.h
- Reverted util/check.cpp to original state (no changes needed)

The previous implementation incorrectly added entire functions to the .cpp file
when the change should only modify the existing macro in the header file to
match Bitcoin's functionality while preserving Dash's macro-based structure.

Original commit: fa825bd
PastaPastaPasta added a commit to DashCoreAutoGuix/dash that referenced this pull request Jul 9, 2025
* Fix bitcoin#26645: Include full version id in bug reports

- Modified format_internal_error macro to include PACKAGE_NAME and FormatFullVersion()
- Added clientversion.h include to util/check.h
- Reverted util/check.cpp to original state (no changes needed)

The previous implementation incorrectly added entire functions to the .cpp file
when the change should only modify the existing macro in the header file to
match Bitcoin's functionality while preserving Dash's macro-based structure.

Original commit: fa825bd

* Remove unrelated change in src/util/check.cpp

The change in src/util/check.cpp was unrelated to the Bitcoin commit.
Bitcoin's commit modifies the StrFormatInternalBug function, but Dash
uses a macro-based approach in the header file instead.

The only required change is the format_internal_error macro in src/util/check.h
which correctly includes PACKAGE_NAME and FormatFullVersion().

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude Code <claude@anthropic.com>
Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
PastaPastaPasta added a commit to DashCoreAutoGuix/dash that referenced this pull request Jul 10, 2025
* Fix bitcoin#26645: Include full version id in bug reports

- Modified format_internal_error macro to include PACKAGE_NAME and FormatFullVersion()
- Added clientversion.h include to util/check.h
- Reverted util/check.cpp to original state (no changes needed)

The previous implementation incorrectly added entire functions to the .cpp file
when the change should only modify the existing macro in the header file to
match Bitcoin's functionality while preserving Dash's macro-based structure.

Original commit: fa825bd

* Remove unrelated change in src/util/check.cpp

The change in src/util/check.cpp was unrelated to the Bitcoin commit.
Bitcoin's commit modifies the StrFormatInternalBug function, but Dash
uses a macro-based approach in the header file instead.

The only required change is the format_internal_error macro in src/util/check.h
which correctly includes PACKAGE_NAME and FormatFullVersion().

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude Code <claude@anthropic.com>
Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
PastaPastaPasta added a commit to DashCoreAutoGuix/dash that referenced this pull request Jul 15, 2025
* Fix bitcoin#26645: Include full version id in bug reports

- Modified format_internal_error macro to include PACKAGE_NAME and FormatFullVersion()
- Added clientversion.h include to util/check.h
- Reverted util/check.cpp to original state (no changes needed)

The previous implementation incorrectly added entire functions to the .cpp file
when the change should only modify the existing macro in the header file to
match Bitcoin's functionality while preserving Dash's macro-based structure.

Original commit: fa825bd

* Remove unrelated change in src/util/check.cpp

The change in src/util/check.cpp was unrelated to the Bitcoin commit.
Bitcoin's commit modifies the StrFormatInternalBug function, but Dash
uses a macro-based approach in the header file instead.

The only required change is the format_internal_error macro in src/util/check.h
which correctly includes PACKAGE_NAME and FormatFullVersion().

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude Code <claude@anthropic.com>
Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
PastaPastaPasta added a commit to DashCoreAutoGuix/dash that referenced this pull request Jul 15, 2025
* Fix bitcoin#26645: Include full version id in bug reports

- Modified format_internal_error macro to include PACKAGE_NAME and FormatFullVersion()
- Added clientversion.h include to util/check.h
- Reverted util/check.cpp to original state (no changes needed)

The previous implementation incorrectly added entire functions to the .cpp file
when the change should only modify the existing macro in the header file to
match Bitcoin's functionality while preserving Dash's macro-based structure.

Original commit: fa825bd

* Remove unrelated change in src/util/check.cpp

The change in src/util/check.cpp was unrelated to the Bitcoin commit.
Bitcoin's commit modifies the StrFormatInternalBug function, but Dash
uses a macro-based approach in the header file instead.

The only required change is the format_internal_error macro in src/util/check.h
which correctly includes PACKAGE_NAME and FormatFullVersion().

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude Code <claude@anthropic.com>
Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
PastaPastaPasta added a commit to DashCoreAutoGuix/dash that referenced this pull request Jul 16, 2025
* Fix bitcoin#26645: Include full version id in bug reports

- Modified format_internal_error macro to include PACKAGE_NAME and FormatFullVersion()
- Added clientversion.h include to util/check.h
- Reverted util/check.cpp to original state (no changes needed)

The previous implementation incorrectly added entire functions to the .cpp file
when the change should only modify the existing macro in the header file to
match Bitcoin's functionality while preserving Dash's macro-based structure.

Original commit: fa825bd

* Remove unrelated change in src/util/check.cpp

The change in src/util/check.cpp was unrelated to the Bitcoin commit.
Bitcoin's commit modifies the StrFormatInternalBug function, but Dash
uses a macro-based approach in the header file instead.

The only required change is the format_internal_error macro in src/util/check.h
which correctly includes PACKAGE_NAME and FormatFullVersion().

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude Code <claude@anthropic.com>
Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants