Uploaded image for project: 'Mattermost'
  1. MM-13659

Segmentation fault while triggering a webhook

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Done
    • Fix Version/s: None
    • Labels:
      None
    • Mana:
      2
    • Sprint:
      Mattermost Sprint 46
    • Mattermost Team:
      ABC
    • QA Test Steps:
      Hide
      No testing needed See https://mattermost.atlassian.net/browse/MM-13598.
      No testing required.
      Show
      No testing needed See https://mattermost.atlassian.net/browse/MM-13598 . No testing required.
    • QA Testing Areas:
      Plugins

      Description

      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[114318]: panic: runtime error: invalid memory address or nil pointer dereference
      Dec 14 03:23:57 <server> start-mattermost.sh[114318]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0xeb8acd]
      Dec 14 03:23:57 <server> start-mattermost.sh[114318]: goroutine 50655814 [running]:
      Dec 14 03:23:57 <server> start-mattermost.sh[114318]: github.com/mattermost/mattermost-server/app.(*App).TriggerWebhook.func1.1()
      Dec 14 03:23:57 <server> start-mattermost.sh[114318]: /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[114318]: github.com/mattermost/mattermost-server/app.(*App).Go.func1(0xc00f3e18b0, 0xc000100580)
      Dec 14 03:23:57 <server> start-mattermost.sh[114318]: /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[114318]: created by github.com/mattermost/mattermost-server/app.(*App).Go
      Dec 14 03:23:57 <server> start-mattermost.sh[114318]: /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.

        Attachments

          Activity

            People

            • Assignee:
              lev Lev Brouk
              Reporter:
              amy.blais Amy Blais
              QA Assignee:
              Lindy Isherwood
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: