diagnostic tools: output most recent trace logs on crash
stellar-core is the reference implementation for the peer to peer agent that manages the Stellar network
Brought to you by:
liefstorer
Originally posted by: graydon
An interesting thing here is that .. spdlog has a facility for this, and it looks like we're not using it. They call it a "backtrace" (not the best term) but it's a ring buffer you can attach to the sink network, see
spdlog::enable_backtraceandspdlog::dump_backtrace.What's weird is that I totally knew that existed when I added spdlog and, I suspect, I might even have chosen it partly for that facility .. and yet we do not use it currently. Did I forget to enable it when landing? Was there a reason it doesn't work with our crash-handler? I am unclear on this. It seems like it should already be turned on if it can be.
Originally posted by: MonsieurNicolas
We probably would need a new log partition for this and then decide which things we'd like to dump in there (so that particular exercise may be quite time consuming).
I think trace level for everything (like transactions) adds a lot of overhead to nodes, even if they don't end up in log files:
it's a lot of allocations/string operations so we'd have to be careful with this.
Originally posted by: MonsieurNicolas
may be related to [#3980] that we probably need to do first
Related
Tickets: #3980