Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: runtime error: index out of range #33

Closed
jungle-boogie opened this issue Nov 30, 2015 · 7 comments
Closed

panic: runtime error: index out of range #33

jungle-boogie opened this issue Nov 30, 2015 · 7 comments

Comments

@jungle-boogie
Copy link

This crash mean much to you?

goroutine 1 [running]:
flag.init()
/usr/local/go/src/flag/flag.go:840 +0x11a
github.com/spf13/pflag.init()
/home/caddy/go/src/github.com/spf13/pflag/uint8.go:91 +0x59
github.com/spf13/viper.init()
/home/caddy/go/src/github.com/spf13/viper/viper.go:1026 +0x42
github.com/spf13/hugo/create.init()
/home/caddy/go/src/github.com/spf13/hugo/create/content.go:165 +0x42
github.com/spf13/hugo/commands.init()
/home/caddy/go/src/github.com/spf13/hugo/commands/version.go:76 +0x5e
github.com/hacdias/caddy-hugo/utils.init()
/home/caddy/go/src/github.com/hacdias/caddy-hugo/utils/utils.go:208 +0x42
github.com/hacdias/caddy-hugo.init()
/home/caddy/go/src/github.com/hacdias/caddy-hugo/hugo.go:135 +0x4c
github.com/mholt/caddy/config.init()
/tmp/custombuild_5197_315274122/src/github.com/mholt/caddy/config/directives.go:52 +0x4f
main.init()
/tmp/custombuild_5197_315274122/src/github.com/mholt/caddy/main.go:174 +0x47

full log:
http://termbin.com/gpms

Go to http://jungleboogie.me:2021/ and see the error. If you refresh, you'll notice that everything below main.init() changes between refreshes.

also see gohugoio/hugo#1649

@moorereason
Copy link

I can't get to the termbin site. The stack trace for goroutine 1 is the one that's causing the panic. Everything after that will change depending on what other goroutines are active at the time of the panic. Ignore the other stuff.

I downloaded Caddy+hugo+search from the Caddy download page and was unable to make it panic with the Caddyfile you posted on the original Hugo issue. I added a hugo /path/to/a/hugo/site directive to the config, and the Hugo integration works fine. I can see my Hugo site and get to the admin panel.

@jungle-boogie
Copy link
Author

Hi @moorereason,

Are you using inetd for caddy? I am.

Without search and/or hugo, I get a panic on plain caddy:
http://jungleboogie.me:2022/

Here's the report for plain caddy: caddyserver/caddy#374

@hacdias
Copy link
Member

hacdias commented Dec 1, 2015

I can't reproduce the error as well and as you said, you still receive the panic without hugo and search, so the problem can't be generated in caddy-hugo, right? O.o

@mholt
Copy link

mholt commented Dec 1, 2015

Yeah, this looks like something in Caddy or Go itself. I actually suspect a bug in the standard library.

@mholt mholt closed this as completed Dec 1, 2015
@hacdias
Copy link
Member

hacdias commented Dec 1, 2015

Thanks @mholt!

@jungle-boogie
Copy link
Author

@hacdias,

Right, the error occurs without hugo or search.

hugo & search: http://jungleboogie.me:2021/
just caddy .76: http://jungleboogie.me:2022/

Thanks!

Hi @mholt,

Will you file the report upstream to go?

@mholt
Copy link

mholt commented Dec 1, 2015

Let's continue this over in caddyserver/caddy#374 - I just updated my comments there.

hacdias added a commit that referenced this issue May 21, 2019
)
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants