mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
print stack, async node.close
This commit is contained in:
parent
5be44741bc
commit
379278ff3a
1 changed files with 3 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/big"
|
"math/big"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
"runtime/debug"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/core/tracing"
|
"github.com/ethereum/go-ethereum/core/tracing"
|
||||||
|
|
@ -89,7 +90,8 @@ func (rt *recoverTracer) safeCall(name string, shutdown bool, fn func()) {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
log.Error(fmt.Sprintf("panic in child tracer during %s: %v", name, r))
|
log.Error(fmt.Sprintf("panic in child tracer during %s: %v", name, r))
|
||||||
if shutdown {
|
if shutdown {
|
||||||
rt.node.Close()
|
debug.PrintStack()
|
||||||
|
go rt.node.Close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue