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

5.0.0 Build Sanity : Memcached constantly crashing with - Caught unhandled std::exception-derived exception. what(): to_privilege: Unknown privilege: Tap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Test Blocker
    • 5.0.0
    • 5.0.0
    • memcached
    • Untriaged
    • Yes

    Description

      Build : 5.0.0-3110 onwards

      There is a regression with build 5.0.0-3110. Memcached is crashing, and following is the stack trace from babysitter.log

      memcached<0.8747.0>: 2017-06-14T20:40:15.904211-07:00 FATAL *** Fatal error encountered during exception handling ***
      memcached<0.8747.0>: 2017-06-14T20:40:15.904279-07:00 FATAL Caught unhandled std::exception-derived exception. what(): to_privilege: Unknown privilege: Tap
      memcached<0.8747.0>: terminate called after throwing an instance of 'std::invalid_argument'
      memcached<0.8747.0>: what(): to_privilege: Unknown privilege: Tap
      memcached<0.8747.0>: 2017-06-14T20:40:15.914539-07:00 FATAL Breakpad caught crash in memcached version 5.0.0-3115. Writing crash dump to /opt/couchbase/var/lib/couchbase/crash/5e05cd03-6d5f-8f5e-5e27db28-799e416a.dmp before terminating.
      memcached<0.8747.0>: 2017-06-14T20:40:15.914598-07:00 FATAL Stack backtrace of crashed thread:
      memcached<0.8747.0>: 2017-06-14T20:40:15.914715-07:00 FATAL /opt/couchbase/bin/memcached() [0x400000+0x36b05]
      memcached<0.8747.0>: 2017-06-14T20:40:15.914743-07:00 FATAL /opt/couchbase/bin/memcached(_ZN15google_breakpad16ExceptionHandler12GenerateDumpEPNS0_12CrashContextE+0x3d4) [0x400000+0x88f74]
      memcached<0.8747.0>: 2017-06-14T20:40:15.914763-07:00 FATAL /opt/couchbase/bin/memcached(_ZN15google_breakpad16ExceptionHandler13SignalHandlerEiP9siginfo_tPv+0x97) [0x400000+0x89287]
      memcached<0.8747.0>: 2017-06-14T20:40:15.914784-07:00 FATAL /lib64/libpthread.so.0() [0x7fdbc4b3d000+0xf130]
      memcached<0.8747.0>: 2017-06-14T20:40:15.914834-07:00 FATAL /lib64/libc.so.6(gsignal+0x39) [0x7fdbc2bfb000+0x355c9]
      memcached<0.8747.0>: 2017-06-14T20:40:15.914879-07:00 FATAL /lib64/libc.so.6(abort+0x148) [0x7fdbc2bfb000+0x36cd8]
      memcached<0.8747.0>: 2017-06-14T20:40:15.914929-07:00 FATAL /lib64/libstdc++.so.6(ZN9gnu_cxx27_verbose_terminate_handlerEv+0x165) [0x7fdbc34d4000+0x609d5]
      memcached<0.8747.0>: 2017-06-14T20:40:15.914973-07:00 FATAL /opt/couchbase/bin/memcached() [0x400000+0x37eda]
      memcached<0.8747.0>: 2017-06-14T20:40:15.915016-07:00 FATAL /lib64/libstdc++.so.6() [0x7fdbc34d4000+0x5e946]
      memcached<0.8747.0>: 2017-06-14T20:40:15.915064-07:00 FATAL /lib64/libstdc++.so.6() [0x7fdbc34d4000+0x5e973]
      memcached<0.8747.0>: 2017-06-14T20:40:15.915106-07:00 FATAL /lib64/libstdc++.so.6() [0x7fdbc34d4000+0x5eb9f]
      memcached<0.8747.0>: 2017-06-14T20:40:15.915129-07:00 FATAL /opt/couchbase/bin/../lib/libmemcached_rbac.so.1.0.0(_ZN2cb4rbac12to_privilegeERKSs+0xfb) [0x7fdbc5dde000+0x45bb]
      memcached<0.8747.0>: 2017-06-14T20:40:15.915144-07:00 FATAL /opt/couchbase/bin/../lib/libmemcached_rbac.so.1.0.0(_ZN2cb4rbac9UserEntry15parsePrivilegesEPK5cJSONb+0xa4) [0x7fdbc5dde000+0x5184]
      memcached<0.8747.0>: 2017-06-14T20:40:15.915160-07:00 FATAL /opt/couchbase/bin/../lib/libmemcached_rbac.so.1.0.0(_ZN2cb4rbac9UserEntryC1ERK5cJSON+0x144) [0x7fdbc5dde000+0x61a4]
      memcached<0.8747.0>: 2017-06-14T20:40:15.915174-07:00 FATAL /opt/couchbase/bin/../lib/libmemcached_rbac.so.1.0.0(_ZN2cb4rbac17PrivilegeDatabaseC1EPK5cJSON+0xe0) [0x7fdbc5dde000+0x6670]
      memcached<0.8747.0>: 2017-06-14T20:40:15.915188-07:00 FATAL /opt/couchbase/bin/../lib/libmemcached_rbac.so.1.0.0(_ZN2cb4rbac21loadPrivilegeDatabaseERKSs+0x95) [0x7fdbc5dde000+0x6aa5]
      memcached<0.8747.0>: 2017-06-14T20:40:15.915205-07:00 FATAL /opt/couchbase/bin/memcached() [0x400000+0x1b974]
      memcached<0.8747.0>: 2017-06-14T20:40:15.915238-07:00 FATAL /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fdbc2bfb000+0x21af5]
      memcached<0.8747.0>: 2017-06-14T20:40:15.915263-07:00 FATAL /opt/couchbase/bin/memcached() [0x400000+0x1467e]

      [ns_server:info,2017-06-14T20:40:15.918-07:00,babysitter_of_ns_1@127.0.0.1:<0.8746.0>:supervisor_cushion:handle_info:58]Cushion managed supervisor for memcached failed:

      {abnormal,134}

      [ns_server:info,2017-06-14T20:40:15.918-07:00,babysitter_of_ns_1@127.0.0.1:<0.8746.0>:supervisor_cushion:die_slowly:80]Service memcached exited on node 'babysitter_of_ns_1@127.0.0.1' in 3.15s

      The last known good build was 5.0.0-3109. So looks like this regression is caused by the following commit :

      • Commit: 45e4b178ae8c50629ad3c75be725cc0076bf6f01 (in build: 3110)
        Author: Trond Norbye
        MB-20940: Remove TAP privilege

      Change-Id: I56fa78e09f4168ee80fa6552816b285999784286
      Reviewed-on: http://review.couchbase.org/79231
      Reviewed-by: Dave Rigby
      Tested-by: Build Bot

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            trond Trond Norbye
            mihir.kamdar Mihir Kamdar (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