Running on macOS 10.14.6. Installed using
brew tap mmiranda/mdindex
brew install markdown-index
Ran in directory tree holding a bunch of .md files. Ran for 11 seconds, and then segfaulted:
mbpe-ethernet:dev griscom$ markdown-index
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x110 pc=0x125c5db]
goroutine 1 [running]:
github.com/mmiranda/markdown-index/markdown.(*rawMarkdown).getFirstParagraph.func1({0x13e9390, 0xc00035a750}, 0x0)
/home/runner/work/markdown-index/markdown-index/markdown/markdown.go:176 +0x19b
github.com/yuin/goldmark/ast.walkHelper({0x13e9390, 0xc00035a750}, 0xc0000afba0)
/home/runner/go/pkg/mod/github.com/yuin/[email protected]/ast/ast.go:492 +0x34
github.com/yuin/goldmark/ast.walkHelper({0x13e9810, 0xc00035a6c0}, 0xc0000afba0)
/home/runner/go/pkg/mod/github.com/yuin/[email protected]/ast/ast.go:498 +0x8e
github.com/yuin/goldmark/ast.walkHelper({0x13e96f0, 0xc00035a630}, 0xc0000afba0)
/home/runner/go/pkg/mod/github.com/yuin/[email protected]/ast/ast.go:498 +0x8e
github.com/yuin/goldmark/ast.walkHelper({0x13e8f10, 0xc00035a120}, 0xc0000afba0)
/home/runner/go/pkg/mod/github.com/yuin/[email protected]/ast/ast.go:498 +0x8e
github.com/yuin/goldmark/ast.Walk(...)
/home/runner/go/pkg/mod/github.com/yuin/[email protected]/ast/ast.go:487
github.com/mmiranda/markdown-index/markdown.(*rawMarkdown).getFirstParagraph(0xc000482210)
/home/runner/work/markdown-index/markdown-index/markdown/markdown.go:167 +0x9d
github.com/mmiranda/markdown-index/markdown.buildIndexContent({0x133d50e, 0x12baea5}, {0x0, 0xc00021fda0, 0xc00021fdc8})
/home/runner/work/markdown-index/markdown-index/markdown/markdown.go:269 +0x227
github.com/mmiranda/markdown-index/markdown.Execute({0x1343ed8, 0x11}, {0x133d50e, 0x1})
/home/runner/work/markdown-index/markdown-index/markdown/markdown.go:47 +0x52
github.com/mmiranda/markdown-index/cmd.glob..func1(0x159ca00, {0x133df65, 0x0, 0x0})
/home/runner/work/markdown-index/markdown-index/cmd/root.go:24 +0x35
github.com/spf13/cobra.(*Command).execute(0x159ca00, {0xc000010200, 0x0, 0x0})
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:860 +0x5f8
github.com/spf13/cobra.(*Command).ExecuteC(0x159ca00)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3bc
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/mmiranda/markdown-index/cmd.Execute()
/home/runner/work/markdown-index/markdown-index/cmd/root.go:47 +0x25
main.main()
/home/runner/work/markdown-index/markdown-index/main.go:6 +0x17