Skip to content

Runtime error #1000

@jhautefeuille

Description

@jhautefeuille
  • bettercap v2.32.0
  • Ubuntu 22.04 LTS
  • go version go1.19 linux/amd64

bettercap v2.32.0 (built for linux amd64 with go1.19) [type 'help' for a list of commands]

panic: runtime error: index out of range [0] with length 0
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xd2064f]

goroutine 1 [running]:
github.com/bettercap/bettercap/session.(*Session).Close(0xc0000fee00)
/tmp/bettercap/session/session.go:190 +0xef
panic({0x11513c0, 0xc00003b5d8})
/usr/local/go/src/runtime/panic.go:884 +0x212
github.com/bettercap/bettercap/routing.update()
/tmp/bettercap/routing/update_linux.go:40 +0x5e5
github.com/bettercap/bettercap/routing.Update()
/tmp/bettercap/routing/tables.go:19 +0x7c
github.com/bettercap/bettercap/routing.Gateway({0x11b5914, 0x4}, {0xc000a0f6b0, 0xf})
/tmp/bettercap/routing/tables.go:23 +0x6b
github.com/bettercap/bettercap/network.FindGateway(0xc00021d200)
/tmp/bettercap/network/net_gateway.go:10 +0x3c
github.com/bettercap/bettercap/session.(*Session).Start(0xc0000fee00)
/tmp/bettercap/session/session.go:254 +0x2ce
main.main()
/tmp/bettercap/main.go:49 +0x458

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