Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-28738

UBSan: nullptr use in GlobalTask (under tests)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.5.0
    • 5.5.0
    • couchbase-bucket
    • Untriaged
    • Unknown

    Description

      Under some of the ep-engine unit tests, UBSsan reports nullptr use in GlobalTask:

              globaltask.cc:53:23: runtime error: member call on null pointer of type 'EventuallyPersistentEngine'
                  #0 0x1007a0809 in GlobalTask::GlobalTask(EventuallyPersistentEngine*, TaskId, double, bool) globaltask.cc:53
      

      This only appears to be an issue in the test code; ep-engine production code always passes a concrete EventuallyPersistentEngine instance.

      Attachments

        For Gerrit Dashboard: MB-28738
        # Subject Branch Project Status CR V

        Activity

          People

            drigby Dave Rigby (Inactive)
            drigby Dave Rigby (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty