Skip to content

panic: runtime error caused by restore() #81

@badasr

Description

@badasr

I got the following error:

panic: runtime error: slice bounds out of range

github.com/soniakeys/graph.(*negCyc).restore(0xc00051c0d0, 0xc000144380, 0x8, 0x8)
C:/gopath/pkg/mod/github.com/soniakeys/graph@v0.0.0/dir.go:688 +0x11c
github.com/soniakeys/graph.(*negCyc).zL(0xc00051c0d0, 0xc000000000, 0xc0004746a8, 0x1, 0x1, 0x3fe2138300000008, 0x3fe21383aaa28db8, 0x20, 0x82fce0, 0x8, ...)
C:/gopath/pkg/mod/github.com/soniakeys/graph@v0.0.0/dir.go:710 +0x26e
github.com/soniakeys/graph.(*negCyc).step2(0xc00051c0d0, 0x0, 0xc0004746a8, 0x1, 0x1, 0xc0004974a0)
C:/gopath/pkg/mod/github.com/soniakeys/graph@v0.0.0/dir.go:544 +0xe8
github.com/soniakeys/graph.(*negCyc).all_nc(0xc00051c0d0, 0x0, 0xc0004746a8, 0x1, 0x1, 0xc0004974a0)
C:/gopath/pkg/mod/github.com/soniakeys/graph@v0.0.0/dir.go:529 +0x131
github.com/soniakeys/graph.(*negCyc).step4(0xc00051c0d0, 0xc00011c240, 0x6, 0x8, 0xc000000000, 0xc0004746a8, 0x1, 0x1, 0x8, 0xc00011c240, ...)
C:/gopath/pkg/mod/github.com/soniakeys/graph@v0.0.0/dir.go:604 +0x1d3
github.com/soniakeys/graph.(*negCyc).all_nc(0xc00051c0d0, 0x0, 0x0, 0x0, 0x0, 0xc00051c0d0)
C:/gopath/pkg/mod/github.com/soniakeys/graph@v0.0.0/dir.go:538 +0xe3
github.com/soniakeys/graph.LabeledDirected.NegativeCycles(0xc0003ae240, 0xc, 0xc, 0xc0001843c0, 0xc00015e100)
C:/gopath/pkg/mod/github.com/soniakeys/graph@v0.0.0/dir.go:492 +0x7a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions