Skip to content

Cannot run GDB with geth #14788

@compasses

Description

@compasses

System information

Geth
Version: 1.6.7-unstable
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.8.3
Operating System: linux

Expected behaviour

can debug with gdb to inspect some information

Actual behaviour

build with * go build -gcflags "-N -l" *
receive segmentation fault:

Steps to reproduce the behaviour

Backtrace

Reading symbols from ./geth...done.
Loading Go Runtime support.
(gdb) r
Starting program: /home/jet/go/src/github.com/ethereum/go-ethereum/cmd/geth/geth 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff75e7700 (LWP 6707)]
[New Thread 0x7ffff6de6700 (LWP 6708)]
[New Thread 0x7ffff65e5700 (LWP 6709)]
[New Thread 0x7ffff5de4700 (LWP 6710)]

Thread 1 "geth" received signal SIGSEGV, Segmentation fault.
0x000000000060b063 in github.com/ethereum/go-ethereum/vendor/github.com/go-stack/stack.findSigpanic.func1 (p=0x0, &fn=0xc42004dbe8, 
    ~r0=0) at /home/jet/go/src/github.com/ethereum/go-ethereum/vendor/github.com/go-stack/stack/stack.go:228
228			return *p
(gdb) 

[backtrace]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions