Skip to content

SIGSEGV using official docker image, part II #14536

@mfg92

Description

@mfg92

What version of Hugo are you using (hugo version)?

docker image ghcr.io/gohugoio/hugo:v0.156.0

Does this issue reproduce with the latest release?

Yes

This is a follow-up to issue #14372. One bug was fixed for that issue, unfortunately another SIGSEGV appeared (see also my note over there).

To be sure that this issue is still present I have tested it today with the official docker image in version 0.156.0 on Ubuntu 22.4. I get this stacktrace after a few seconds:

hugo-1  | Start building sites …
hugo-1  | hugo v0.156.0+extended+withdeploy linux/amd64 BuildDate=unknown VendorInfo=docker
hugo-1  |
hugo-1  | Built in 4188 ms
hugo-1  | panic: runtime error: invalid memory address or nil pointer dereference
hugo-1  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x3b60a6e]
hugo-1  |
hugo-1  | goroutine 1 [running]:
hugo-1  | github.com/gohugoio/hugo/internal/warpc.(*Dispatchers).Close(0x2bca932?)
hugo-1  |       /go/src/github.com/gohugoio/hugo/internal/warpc/warpc.go:813 +0xee
hugo-1  | github.com/gohugoio/hugo/deps.(*Deps).Close(0xa6a1730d800)
hugo-1  |       /go/src/github.com/gohugoio/hugo/deps/deps.go:397 +0x4d
hugo-1  | github.com/gohugoio/hugo/hugolib.(*HugoSites).Close(...)
hugo-1  |       /go/src/github.com/gohugoio/hugo/hugolib/hugo_sites.go:252
hugo-1  | github.com/gohugoio/hugo/commands.(*rootCommand).Close.func1({0x5eac60?, 0x0?}, 0xa6a16c7d440?)
hugo-1  |       /go/src/github.com/gohugoio/hugo/commands/commandeer.go:162 +0x25
hugo-1  | github.com/bep/lazycache.(*Cache[...]).DeleteFunc(0xee2040, 0xe419c8)
hugo-1  |       /go/pkg/mod/github.com/bep/lazycache@v0.8.1/lazycache.go:71 +0x19e
hugo-1  | github.com/gohugoio/hugo/commands.(*rootCommand).Close(0x5219ff0?)
hugo-1  |       /go/src/github.com/gohugoio/hugo/commands/commandeer.go:160 +0x2a
hugo-1  | github.com/gohugoio/hugo/commands.Execute({0xa6a16c38010, 0x6, 0x6})
hugo-1  |       /go/src/github.com/gohugoio/hugo/commands/commandeer.go:71 +0x419
hugo-1  | main.main()
hugo-1  |       /go/src/github.com/gohugoio/hugo/main.go:28 +0x5b
hugo-1 exited with code 2 (restarting)

Building the same site on windows using hugo_extended_0.156.0_windows-amd64 works, so it still seems to be a docker image issue.

So, I am currently stuck with version v0.152.2, as this is the last version for which the Docker image worked for me.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions