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

ASan heap-user-after-free during node.send_single_many_peers #1361

Closed
rkeene opened this issue Nov 8, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@rkeene
Copy link
Contributor

commented Nov 8, 2018

[ RUN      ] node.send_single_many_peers
=================================================================
==26183==ERROR: AddressSanitizer: heap-use-after-free on address 0x60b000118740 at pc 0x000000e9ba3e bp 0x7f00568e9270 sp
 0x7f00568e9268
READ of size 8 at 0x60b000118740 thread T2499 (Announce loop)

Use at (Announce loop thread):

    #5 0x17300cb in rai::active_transactions::announce_votes(std::unique_lock<std::mutex>&) /home/rkeene/devel/raiblocks/
rai/node/node.cpp:2837

Freed at (main thread):

    #11 0x17313a2 in rai::active_transactions::stop() /home/rkeene/devel/raiblocks/rai/node/node.cpp:3010

Allocated at (Block processing thread):

    #9 0x1731dbe in rai::active_transactions::add(std::pair<std::shared_ptr<rai::block>, std::shared_ptr<rai::block> >, std::function<void (std::shared_ptr<rai::block>)> const&) /home/rkeene/devel/raiblocks/rai/node/node.cpp:3042

@rkeene rkeene added this to the V17.0 milestone Nov 8, 2018

@rkeene

This comment has been minimized.

Copy link
Contributor Author

commented Nov 8, 2018

Fix committed to master in [c8245e8]

@rkeene

This comment has been minimized.

Copy link
Contributor Author

commented Nov 8, 2018

Test now passes.

@rkeene rkeene closed this Nov 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.