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

[CBM] Segfault in cbbackupmgr if there is an error before snapshot persisted

    XMLWordPrintable

Details

    • Untriaged
    • Centos 64-bit
    • 1
    • Yes

    Description

      Install Couchbase server 6.6.0-7865 on 2 centos 7.6 servers
      Create default bucket and load data.
      While running backup using cbbackupmgr, kill all beam.smp processes and restart couchbase server.
      cbbackupmgr thows out segfault.

      2020-07-08T16:27:50.469-07:00 (Gocbcore) Failed to dispatch DCP buffer ack: write tcp 172.23.106.210:59492->172.23.121.224:11210: write: broken pipe
      2020-07-08T16:27:50.469-07:00 (DCP) (default) (vb 392) Stream closed because all items were streamed, last sequence number: 65
      2020-07-08T16:27:50.472-07:00 (DCP) (default) (vb 391) Stream closed because all items were streamed, last sequence number: 69
      2020-07-08T16:27:50.472-07:00 (Gocbcore) memdClient read failure: EOF
      2020-07-08T16:27:50.472-07:00 (DCP) (default) (vb 394) Creating DCP stream with start seqno 0, end seqno 29, vbuuid 24073527553445, snap start seqno 0, snap end seqno 0
      2020-07-08T16:27:50.472-07:00 (Gocbcore) Pipeline client `172.23.121.224:11210/0xc0000d8320` failed to shut down errored client socket (close tcp 172.23.106.210:59492->172.23.121.224:11210: use of closed network connectio
      n)
      2020-07-08T16:27:50.472-07:00 WARN: (DCP) (default) (vb 394) Received error 'request canceled' on stream -- couchbase.(*DCPAsyncWorker).openStream() at dcp_async_worker.go:170
      2020-07-08T16:27:50.475-07:00 WARN: (DCP) (default) (vb 393) Stream closed due to unexpected error 'EOF | {"bucket":"default","last_dispatched_to":"172.23.121.224:11210","last_dispatched_from":"172.23.106.210:59492","last
      _connection_id":"c0aef5ee32ab2452/802fe4ffd9b93b0d"}' -- couchbase.(*DCPAsyncWorker).End() at dcp_async_worker.go:439
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xa54b86]
       
      goroutine 3103 [running]:
      github.com/couchbase/backup/storage.(*SnapshotFile).Close(0x0, 0xc0000125a0, 0xc0000125a0)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/backup/storage/metafiles.go:252 +0x26
      github.com/couchbase/backup/storage.(*VBucketBackupWriter).closeVBucket(0xc0001fe000, 0xc000330189, 0x1, 0xc000335f90)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/backup/storage/vbucket_backup_writer.go:517 +0x79
      github.com/couchbase/backup/storage.(*VBucketBackupWriter).CloseVBuckets.func1(0xc0002cbc00, 0xc000012540, 0xc0001fe000, 0xc0002fcf00)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/backup/storage/vbucket_backup_writer.go:163 +0x9c
      created by github.com/couchbase/backup/storage.(*VBucketBackupWriter).CloseVBuckets
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/backup/storage/vbucket_backup_writer.go:159 +0x161
      [root@localhost ~]# 
      
      

      I will find the last stable build. This test is similar to test failed in ticket MB-39632

      Attachments

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

        Activity

          People

            carlos.gonzalez Carlos Gonzalez Betancort (Inactive)
            thuan Thuan Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty