We're updating the issue view to help you get more done.Learn more

Segmentation fault while triggering a webhook

More details on this Forum thread: https://forum.mattermost.org/t/segmentation-fault-while-triggering-webhook/6354

Summary
Server consistently shuts down with SIGSEGV when triggering a specific webook.

Steps to reproduce
Mattermost 5.4.0

Expected behavior
Successful webhook post, or error in log

Observed behavior
Several attempts to post messages via the webhook failed because the destination hostname could not be resolved. Those errors were visible in the log.
After that, there was nothing else in the log immediately prior to the event. Presumably another trigger word was encountered, and then we saw:

Dec 14 03:23:57 <server> start-mattermost.sh: panic: runtime error: invalid memory address or nil pointer dereference
Dec 14 03:23:57 <server> start-mattermost.sh:
Dec 14 03:23:57 <server> start-mattermost.sh: goroutine 50655814 :
Dec 14 03:23:57 <server> start-mattermost.sh: github.com/mattermost/mattermost-server/app.(*App).TriggerWebhook.func1.1()
Dec 14 03:23:57 <server> start-mattermost.sh: /home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/app/webhook.go:108 +0xfd
Dec 14 03:23:57 <server> start-mattermost.sh: github.com/mattermost/mattermost-server/app.(*App).Go.func1(0xc00f3e18b0, 0xc000100580)
Dec 14 03:23:57 <server> start-mattermost.sh: /home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/app/app.go:505 +0x27
Dec 14 03:23:57 <server> start-mattermost.sh: created by github.com/mattermost/mattermost-server/app.(*App).Go
Dec 14 03:23:57 <server> start-mattermost.sh: /home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/app/app.go:504 +0x52

This crash was repeated a further two times.

Status

Mana

2

Assignee

Lev Brouk

Reporter

Amy Blais

Mattermost Team

ABC

Sprint

None

QA Assignee

Lindy Isherwood

QA Test Steps

No testing needed See https://mattermost.atlassian.net/browse/MM-13598. No testing required.

QA Testing Areas

Plugins