Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A crash happens when running HDWallet tests #19

Open
TheQuantumPhysicist opened this issue May 26, 2020 · 0 comments
Open

A crash happens when running HDWallet tests #19

TheQuantumPhysicist opened this issue May 26, 2020 · 0 comments

Comments

@TheQuantumPhysicist
Copy link
Contributor

TheQuantumPhysicist commented May 26, 2020

Apart from issue #17, HDWallet tests are causing a memory violation crash. Use the command ./src/test/test_ghost --run_test=*wallet*/* to reproduce the problem. Due to #17, you can't run the relevant test in an isolated manner.

The crash is happening in: src/validation.cpp:442.

In this line: mempool.removeForReorg(&::ChainstateActive().CoinsTip(), ::ChainActive().Tip()->nHeight + 1, STANDARD_LOCKTIME_VERIFY_FLAGS);

The test new_ext_key has the problem. The issue is that ::ChainActive().Tip() is returning null. This is because there are no blocks generated in the test.

Requirement: The tests should run without errors and in both undefined behavior sanitizer and address sanitizer.

@TheQuantumPhysicist TheQuantumPhysicist changed the title A crash happens when running tests A crash happens when running HDWallet tests May 26, 2020
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

No branches or pull requests

1 participant