Skip to content

Conversation

hebasto
Copy link
Member

@hebasto hebasto commented Apr 16, 2020

There are conditions when the HAVE_THREAD_LOCAL macro is undefined what causes the -logthreadnames option does not work -- instead of thread names empty strings [] only are printed in the debug.log file.

This PR does not exposes the -logthreadnames option in such cases.

Refs:

@laanwj
Copy link
Member

laanwj commented Apr 16, 2020

ACK 2ea5807

I'd prefer the option to just work in gitian builds, but this is a good and simple workaround.

@maflcko
Copy link
Member

maflcko commented Apr 20, 2020

Can you explain how the patch is supposed to work? Making an argument hidden in the help does not at all influence how it is parsed. The [] are still printed

@hebasto hebasto force-pushed the 200416-logthreads branch from 2ea5807 to b91e4ae Compare April 20, 2020 11:20
@hebasto
Copy link
Member Author

hebasto commented Apr 20, 2020

Updated 2ea5807 -> b91e4ae (pr18665.01 -> pr18665.02, diff):

Can you explain how the patch is supposed to work? Making an argument hidden in the help does not at all influence how it is parsed. The [] are still printed

@hebasto hebasto changed the title Do not expose -logthreadnames when it does not work Do not expose and consider -logthreadnames when it does not work Apr 20, 2020
@maflcko
Copy link
Member

maflcko commented Apr 20, 2020

ACK b91e4ae, looked at the diff, didn't test

@laanwj laanwj merged commit acb4fa0 into bitcoin:master Apr 22, 2020
@hebasto hebasto deleted the 200416-logthreads branch April 22, 2020 13:30
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Apr 23, 2020
…it does not work

b91e4ae Do not expose and consider -logthreadnames when it does not work (Hennadii Stepanov)

Pull request description:

  There are conditions when the `HAVE_THREAD_LOCAL` macro is undefined what causes the `-logthreadnames` option does not work -- instead of thread names empty strings `[]` only are printed in the `debug.log` file.

  This PR does not exposes the `-logthreadnames` option in such cases.

  Refs:
  - bitcoin#16059
  - bitcoin#18652

ACKs for top commit:
  MarcoFalke:
    ACK b91e4ae, looked at the diff, didn't test

Tree-SHA512: 3bd58e5ea603c69686589ddc94d6fa441cab4f712004378f2f1661e12638804ca03cfb6426e6393e55b6a095b325f3161d3c5371af05d7fc79d6d328227bf40c
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Apr 23, 2020
@fanquake fanquake mentioned this pull request Apr 23, 2020
laanwj added a commit that referenced this pull request May 11, 2020
7f7548d rpc: Do not advertise dumptxoutset as a way to flush the chainstate (MarcoFalke)
a9ca65b Fix naming of macOS SDK and clarify version (Andrew Chow)
54d2063 Do not expose and consider -logthreadnames when it does not work (Hennadii Stepanov)
6986b26 build: fix ASLR for bitcoin-cli on Windows (fanquake)
1d1e358 build: Set libevent minimum version to 2.0.21 (Hennadii Stepanov)
842b13a Avoid non-trivial global constants in SHA-NI code (Pieter Wuille)
ade4185 gitian: Add missing automake package to gitian-win-signer.yml (Andrew Chow)

Pull request description:

  Currently backports the following to the 0.20 branch:

  * #18598 - gitian: Add missing automake package to gitian-win-signer.yml
  * #18702 - build: fix ASLR for bitcoin-cli on Windows
  * #18676 - build: Check libevent minimum version in configure script
  * #18665 - Do not expose and consider -logthreadnames when it does not work
  * #18553 - Avoid non-trivial global constants in SHA-NI code
  * #18589 - Fix naming of macOS SDK and clarify version

ACKs for top commit:
  laanwj:
    ACK 7f7548d

Tree-SHA512: 2cba748414a440e3fb901940085a7ae059e8b926c9187fbbbdeb7846a32e7374f318cc21e499c911ff803c42aef2c844b04af10b87f9c5a2b3edf6deb03ebb04
backpacker69 referenced this pull request in peercoin/peercoin Mar 28, 2021
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Aug 24, 2021
Summary:
> There are conditions when the HAVE_THREAD_LOCAL macro is undefined what causes the -logthreadnames option does not work -- instead of thread names empty strings [] only are printed in the debug.log file.
>
> This PR does not exposes the -logthreadnames option in such cases.

This is a backport of [[bitcoin/bitcoin#18665 | core#18665]]

Test Plan: `ninja all check-all`

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D9918
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
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.

4 participants