Ravencoin: Segmentation fault caused by RPC for assets
Describe the issue
I’m currently working on alternative explorer and while making couple simultaneous requests to listassetbalancesbyaddress
rpc method node goes down with Segmentation fault (core dumped)
. Same behaviour noticed using cli.
After some debugging I figured out that it’s happening after calling FlushStateToDisk()
function in assetdb.cpp file. After going even deeper in rabbit hole I discovered that FlushStateToDisk()
function faling at this point.
Can you reliably reproduce the issue?
Yes, it’s happening each time when I’m making couple listassetbalancesbyaddress
requests with small delay.
If so, please list the steps to reproduce below:
- Launch daemon with assetindex enabled
- Make couple simultaneous
listassetbalancesbyaddress
requests via rpc or cli - Node goes down with
Segmentation fault (core dumped)
error message
Expected behaviour
Node return address asset balances without issues.
Actual behaviour
Node goes down with Segmentation fault (core dumped)
error message.
Machine specs:
- OS: macOS Mojave 10.14.1
- CPU: Intel Core i7 2,2 GHz
- RAM: 16 GB 1600 MHz DDR3
- Disk size: 256 GB
- Disk Type (HD/SDD): SSD
But same error happening on my Ubuntu instance, so it’s not platform specific issue.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 17 (11 by maintainers)
Ok, thanks to @ravenlandpush I figured out my issue. For some reason I used
rpcworkquery
instead ofrpcworkqueue
. Afther setting this flag to 200 (just random picked number) everything works like a charm.Thanks everyone for help, I think this issue can be closed now 😃