Skip to content

Conversation

@luke-jr
Copy link
Member

@luke-jr luke-jr commented Sep 20, 2015

Travis is failing this weirdly, and I'm not sure why. Working on troubleshooting it, but I need to go to bed... so tomorrow I guess.

@luke-jr luke-jr force-pushed the backport-bugfixes-to-0.11-20150920 branch from e69eae9 to ac9cb8e Compare September 20, 2015 07:42
@luke-jr luke-jr changed the title Backport bugfixes to 0.11 DO NOT MERGE: Backport bugfixes to 0.11 Sep 20, 2015
@jonasschnelli
Copy link
Contributor

Not sure about fd9e6c8509354ba0e88a664127416bc0ae5d647b ("tests: Remove old sh-based test framework"), don't see a urgent need for backporting this. I think - once finalized/merged – we might add #6694 to this PR.

@luke-jr luke-jr force-pushed the backport-bugfixes-to-0.11-20150920 branch from ac9cb8e to 783ee5b Compare September 20, 2015 07:53
@luke-jr
Copy link
Member Author

luke-jr commented Sep 20, 2015

I was including fd9e6c8509354ba0e88a664127416bc0ae5d647b because the tests removed are broken and don't work. But I don't feel strongly either way.

@luke-jr luke-jr changed the title DO NOT MERGE: Backport bugfixes to 0.11 Backport bugfixes to 0.11 Sep 20, 2015
@luke-jr luke-jr force-pushed the backport-bugfixes-to-0.11-20150920 branch 2 times, most recently from 58be301 to f28d292 Compare September 21, 2015 05:09
@laanwj
Copy link
Member

laanwj commented Sep 21, 2015

Concept ACK
I thnk this needs bfadae3 to avoid the travis issue

@laanwj laanwj added the Bug label Sep 21, 2015
@luke-jr luke-jr force-pushed the backport-bugfixes-to-0.11-20150920 branch 3 times, most recently from 98f173d to bc59522 Compare September 22, 2015 00:42
theuni and others added 17 commits September 22, 2015 00:43
This removes the `conflictedbalance.sh` test as well, but that test has
been broken for a long time and isn't part of any scripts.
What it does is, IMO, sufficiently tested by other tests.
- rpcwallet: No need to lock twice here
- openssl: Clang doesn't understand selective lock/unlock here. Ignore it.
- CNode: Fix a legitimate (though very unlikely) locking bug.
This is pretty trivial, but if there's an error here we'll leak a file
descriptor. Changed it to always close the file.
Checking libcrypto for a function after we've already found a (possibly
different) libcrypto is not what we want to do here.

pkg-config might've found a cross lib while AC_CHECK_LIB may find a different
or native one.

Run a link-test against the lib that's already been found instead.
Fix the cases where LogPrint[f] was accidentally called without line
terminator, which resulted in concatenated log lines.

(see e.g. bitcoin#6492)
Don't prune until any wallet rescanning has taken place to avoid
potentially pruning blocks that the wallet rescan may need.
Handle the case where no chain tip is available, in InvalidChainFound(). This fixes a null pointer deference when running unit tests, if the genesis block or block validation code is broken.
Add error checking to CLevelDBWrapper for errors from
leveldb::DestroyDB().  Without it, if unlink() or DeleteFileW() fail to
delete files, they will fail silent.  If they fail to delete any files,
CLevelDBWrapper will silently open and read the existing database.

Typically any permissions issues would be caught by leveldb as it churns
through many files as part of its compaction process, but it is
conceivable that this could cause problems on Windows with anti-virus
and indexing software.
morcos and others added 6 commits September 22, 2015 00:43
When running the rpc tests in Wine, nodes often fail to listen on localhost
due to a stale socket from a previous run. This aligns the behavior with other
platforms.
The value of new arg ttl is set to 2 as it's recommended default.
@luke-jr luke-jr force-pushed the backport-bugfixes-to-0.11-20150920 branch from c817862 to 1f4d7cf Compare September 22, 2015 00:43
@laanwj laanwj merged commit 45bfa13 into bitcoin:0.11 Sep 23, 2015
laanwj added a commit that referenced this pull request Sep 23, 2015
45bfa13 PARTIAL: typofixes (found by misspell_fixer) (Veres Lajos)
21c406e add support for miniupnpc api version 14 (Pavel Vasin)
13bd5a7 rpc-tests: re-enable rpc-tests for Windows (Cory Fields)
ccc4ad6 net: Set SO_REUSEADDR for Windows too (Cory Fields)
1f6772e add unit test for CNetAddr::GetGroup. (Alex Morcos)
13642a5 Fix masking of irrelevant bits in address groups. (Alex Morcos)
6b51b9b Replace boost::reverse_lock with our own. (Casey Rodarmor)
626c5e6 Make sure we re-acquire lock if a task throws (Casey Rodarmor)
4877053 Add missing files to files.md (fanquake)
f171fee Handle leveldb::DestroyDB() errors on wipe failure (Adam Weiss)
c5b89fe Fix race condition on test node shutdown (Casey Rodarmor)
4a37410 Handle no chain tip available in InvalidChainFound() (Ross Nicoll)
f6d29a6 Use unique name for AlertNotify tempfile (Casey Rodarmor)
e6adac7 Delay initial pruning until after wallet init (Adam Weiss)
e0020d4 Make sure LogPrint strings are line-terminated (J Ross Nicoll)
7ff9d12 Make sure LogPrintf strings are line-terminated (Wladimir J. van der Laan)
5a39133 build: fix libressl detection (Cory Fields)
f6355e6 Avoid leaking file descriptors in RegisterLoad (Casey Rodarmor)
60457d3 locking: fix a few small issues uncovered by -Wthread-safety (Cory Fields)
a496e11 Remove bash test note from rpc-tests readme (fanquake)
49c6a64 tests: Remove old sh-based test framework (Wladimir J. van der Laan)
a37567d Add autogen.sh to source tarball. (randy-waterhouse)
1f4d7cf travis: for travis generating an extra build (Cory Fields)
str4d pushed a commit to str4d/zcash that referenced this pull request Sep 29, 2016
Now that BIP66 passed, OpenSSL is no longer directly part of the
consensus. What matters is that DER signatures are correctly parsed, and
secp256k1 crypto is implemented correctly (as well as the other
functions we use from OpenSSL, such as random number generation)

This means that effectively, using LibreSSL is not a larger risk than
using another version of OpenSSL.

Remove the specific check for LibreSSL.

Includes the still-relevant part of zcash#6729: make sure CHECK_HEADER is
called using the right CXXFLAGS, not CFLAGS (as AC_LANG is c++).

Zcash Note:
This includes a code removal from d9add71
that was omitted from 5a39133 during
backporting of bitcoin/bitcoin#6501 to 0.11.* in bitcoin/bitcoin#6703
zkbot added a commit to zcash/zcash that referenced this pull request Feb 15, 2017
zkbot added a commit to zcash/zcash that referenced this pull request Feb 20, 2017
zkbot added a commit to zcash/zcash that referenced this pull request Mar 3, 2017
Bitcoin 0.12 test PRs 1

Cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#6337
- bitcoin/bitcoin#6390
- bitcoin/bitcoin#5515
- bitcoin/bitcoin#6287 (partial, remainder included in bitcoin/bitcoin#6703)
- bitcoin/bitcoin#6465

Part of #2074.
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.