<!-- Describe the issue -->
After calling importaddress trough HTTP RPC, i get segmentation fault at the end of sync(tracked by progress.
Expected behavior Should complete importaddress
<!--- What behavior did you expect? -->
Should complete importaddress
Actual behavior Segmentation fault
To reproduce
Just try to call importaddress trought wallet RPC in bitcoin testnet.
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
10/10 times
System information Ubuntu
<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
0.21.1
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
Digital ocean Ubuntu instance
<!-- Any extra information that might be useful in the debugging process. -->
gdb
<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->
Heres log right before crash:
2022-02-19T10:11:15Z sending verack (0 bytes) peer=2291
2022-02-19T10:11:15Z receive version message: /Satoshi:0.17.1/: version 70013, blocks=0, us=68.183.75.14:18333, peer=2291
2022-02-19T10:11:15Z socket closed for peer=2290
2022-02-19T10:11:15Z disconnecting peer=2290
2022-02-19T10:11:15Z received: verack (0 bytes) peer=2290
2022-02-19T10:11:15Z sending sendheaders (0 bytes) peer=2290
Thread 11 "b-httpworker.0" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffcffff700 (LWP 1008189)]