Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1628

CbcPillowfight segfaults when passing non-existing collection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • tools
    • 7.6.0-2054
    • 0

    Description

      Build: 7.6.0-2054

      Case 1:

      • Create couchbase bucket
      • Drop _default collection using REST endpoint
      • Start cbcpillowfight

      Case 2:

      • Create couchbase bucket
      • Start cbcpillowfight on non-existing collection using '-collection' flag

       

      Case 1 outcome:

      1. /opt/couchbase/bin/cbc-pillowfight -U couchbase://localhost/default -m 64 -M 64 -I 2000 -u Administrator -P password
        Running. Press Ctrl-C to terminate...
        Timeout during population phase, adjust operation timeout, effective "operation_timeout=2.5" (in seconds).
        In this case it seems like unknown collection was specified. Check cluster configuration and retry.
         *** Error in `/opt/couchbase/bin/cbc-pillowfight': free(): invalid pointer: 0x00007f94a80002a8 ***
        ======= Backtrace: =========
        /lib64/libc.so.6(+0x7c619)[0x7f94ae26e619]
        /opt/couchbase/bin/../lib/libcouchbase.so.8(lcbtrace_span_finish+0x3c)[0x7f94afcedffc]
        /opt/couchbase/bin/../lib/libcouchbase.so.8(+0x73b13)[0x7f94afc65b13]
        /opt/couchbase/bin/../lib/libcouchbase.so.8(+0x74df1)[0x7f94afc66df1]
        /opt/couchbase/bin/../lib/libcouchbase.so.8(+0xf0b87)[0x7f94afce2b87]
        /opt/couchbase/bin/../lib/libcouchbase.so.8(+0xf1a04)[0x7f94afce3a04]
        /opt/couchbase/bin/../lib/libcouchbase.so.8(lcb_destroy+0x2ab)[0x7f94afc7c65b]
        /opt/couchbase/bin/cbc-pillowfight[0x40ee4c]
        /lib64/libc.so.6(+0x38a69)[0x7f94ae22aa69]
        /lib64/libc.so.6(+0x38ab5)[0x7f94ae22aab5]
        /opt/couchbase/bin/cbc-pillowfight[0x40e355]
        /opt/couchbase/bin/../lib/libcouchbase.so.8(+0x73c2b)[0x7f94afc65c2b]
        /opt/couchbase/bin/../lib/libcouchbase.so.8(+0x74df1)[0x7f94afc66df1]
        /opt/couchbase/bin/../lib/libcouchbase.so.8(+0xf0b87)[0x7f94afce2b87]
        /opt/couchbase/bin/../lib/libcouchbase.so.8(+0xf0e10)[0x7f94afce2e10]
        /opt/couchbase/bin/../lib/libcouchbase.so.8(+0x4a6b0)[0x7f94afc3c6b0]
        /opt/couchbase/bin/../lib/libcouchbase.so.8(+0x2c1b7)[0x7f94afc1e1b7]
        /opt/couchbase/bin/../lib/libcouchbase.so.8(lcb_wait+0xe6)[0x7f94afceab26]
        /opt/couchbase/bin/cbc-pillowfight[0x40e482]
        /lib64/libpthread.so.0(+0x7e25)[0x7f94ae5bce25]
        /lib64/libc.so.6(clone+0x6d)[0x7f94ae2ea34d]
        ======= Memory map: ========
        00400000-00407000 r--p 00000000 fd:01 102057865                          /opt/couchbase/bin/cbc-pillowfight
        00407000-0043b000 r-xp 00007000 fd:01 102057865                          /opt/couchbase/bin/cbc-pillowfight
        0043b000-0044a000 r--p 0003b000 fd:01 102057865                          /opt/couchbase/bin/cbc-pillowfight
        0044a000-0044b000 r--p 00049000 fd:01 102057865                          /opt/couchbase/bin/cbc-pillowfight
        0044b000-0044c000 rw-p 0004a000 fd:01 102057865                          /opt/couchbase/bin/cbc-pillowfight
        0044c000-0044d000 rw-p 00000000 00:00 0
        012b5000-01398000 rw-p 00000000 00:00 0                                  [heap]
        7f94a8000000-7f94a809b000 rw-p 00000000 00:00 0
        7f94a809b000-7f94ac000000 ---p 00000000 00:00 0
        7f94ad7de000-7f94ad7df000 ---p 00000000 00:00 0
        7f94ad7df000-7f94adfdf000 rw-p 00000000 00:00 0
        7f94adfdf000-7f94adfeb000 r-xp 00000000 fd:01 67173415                   /usr/lib64/libnss_files-2.17.so
        7f94adfeb000-7f94ae1ea000 ---p 0000c000 fd:01 67173415                   /usr/lib64/libnss_files-2.17.so
        7f94ae1ea000-7f94ae1eb000 r--p 0000b000 fd:01 67173415                   /usr/lib64/libnss_files-2.17.so
        7f94ae1eb000-7f94ae1ec000 rw-p 0000c000 fd:01 67173415                   /usr/lib64/libnss_files-2.17.so
        7f94ae1ec000-7f94ae1f2000 rw-p 00000000 00:00 0
        7f94ae1f2000-7f94ae3aa000 r-xp 00000000 fd:01 67173397                   /usr/lib64/libc-2.17.so
        7f94ae3aa000-7f94ae5aa000 ---p 001b8000 fd:01 67173397                   /usr/lib64/libc-2.17.so
        7f94ae5aa000-7f94ae5ae000 r--p 001b8000 fd:01 67173397                   /usr/lib64/libc-2.17.so
        7f94ae5ae000-7f94ae5b0000 rw-p 001bc000 fd:01 67173397                   /usr/lib64/libc-2.17.so
        7f94ae5b0000-7f94ae5b5000 rw-p 00000000 00:00 0
        7f94ae5b5000-7f94ae5cc000 r-xp 00000000 fd:01 67173423                   /usr/lib64/libpthread-2.17.so
        7f94ae5cc000-7f94ae7cb000 ---p 00017000 fd:01 67173423                   /usr/lib64/libpthread-2.17.so
        7f94ae7cb000-7f94ae7cc000 r--p 00016000 fd:01 67173423                   /usr/lib64/libpthread-2.17.so
        7f94ae7cc000-7f94ae7cd000 rw-p 00017000 fd:01 67173423                   /usr/lib64/libpthread-2.17.so
        7f94ae7cd000-7f94ae7d1000 rw-p 00000000 00:00 0
        7f94ae7d1000-7f94ae8d2000 r-xp 00000000 fd:01 67173405                   /usr/lib64/libm-2.17.so
        7f94ae8d2000-7f94aead1000 ---p 00101000 fd:01 67173405                   /usr/lib64/libm-2.17.so
        7f94aead1000-7f94aead2000 r--p 00100000 fd:01 67173405                   /usr/lib64/libm-2.17.so
        7f94aead2000-7f94aead3000 rw-p 00101000 fd:01 67173405                   /usr/lib64/libm-2.17.so
        7f94aead3000-7f94aeb77000 r--p 00000000 fd:01 35278779                   /opt/couchbase/lib/libstdc++.so.6.0.32
        7f94aeb77000-7f94aec93000 r-xp 000a4000 fd:01 35278779                   /opt/couchbase/lib/libstdc++.so.6.0.32
        7f94aec93000-7f94aed21000 r--p 001c0000 fd:01 35278779                   /opt/couchbase/lib/libstdc++.so.6.0.32
        7f94aed21000-7f94aed2c000 r--p 0024d000 fd:01 35278779                   /opt/couchbase/lib/libstdc++.so.6.0.32
        7f94aed2c000-7f94aed2f000 rw-p 00258000 fd:01 35278779                   /opt/couchbase/lib/libstdc++.so.6.0.32
        7f94aed2f000-7f94aed33000 rw-p 00000000 00:00 0
        7f94aed33000-7f94aed3e000 r-xp 00000000 fd:01 35278767                   /opt/couchbase/lib/libsnappy.so.1.1.10
        7f94aed3e000-7f94aef3d000 ---p 0000b000 fd:01 35278767                   /opt/couchbase/lib/libsnappy.so.1.1.10
        7f94aef3d000-7f94aef3e000 r--p 0000a000 fd:01 35278767                   /opt/couchbase/lib/libsnappy.so.1.1.10
        7f94aef3e000-7f94aef3f000 rw-p 0000b000 fd:01 35278767                   /opt/couchbase/lib/libsnappy.so.1.1.10
        7f94aef3f000-7f94aef46000 r-xp 00000000 fd:01 67173427                   /usr/lib64/librt-2.17.so
        7f94aef46000-7f94af145000 ---p 00007000 fd:01 67173427                   /usr/lib64/librt-2.17.so
        7f94af145000-7f94af146000 r--p 00006000 fd:01 67173427                   /usr/lib64/librt-2.17.so
        7f94af146000-7f94af147000 rw-p 00007000 fd:01 67173427                   /usr/lib64/librt-2.17.so
        7f94af147000-7f94af204000 r--p 00000000 fd:01 35256268                   /opt/couchbase/lib/libcrypto.so.3
        7f94af204000-7f94af541000 r-xp 000bd000 fd:01 35256268                   /opt/couchbase/lib/libcrypto.so.3
        7f94af541000-7f94af623000 r--p 003fa000 fd:01 35256268                   /opt/couchbase/lib/libcrypto.so.3
        7f94af623000-7f94af67f000 r--p 004db000 fd:01 35256268                   /opt/couchbase/lib/libcrypto.so.3
        7f94af67f000-7f94af682000 rw-p 00537000 fd:01 35256268                   /opt/couchbase/lib/libcrypto.so.3
        7f94af682000-7f94af685000 rw-p 00000000 00:00 0
        7f94af685000-7f94af6a5000 r--p 00000000 fd:01 35278775                   /opt/couchbase/lib/libssl.so.3
        7f94af6a5000-7f94af702000 r-xp 00020000 fd:01 35278775                   /opt/couchbase/lib/libssl.so.3
        7f94af702000-7f94af722000 r--p 0007d000 fd:01 35278775                   /opt/couchbase/lib/libssl.so.3
        7f94af722000-7f94af72b000 r--p 0009c000 fd:01 35278775                   /opt/couchbase/lib/libssl.so.3Aborted

       

      Case 2 outcome:

      1. /opt/couchbase/bin/cbc-pillowfight  -m 64 -M 64 -I 2000 -u Administrator -P password -U couchbase://localhost/travel-sample --collection _default.colec111
        Running. Press Ctrl-C to terminate...
        Timeout during population phase, adjust operation timeout, effective "operation_timeout=2.5" (in seconds).
        In this case it seems like unknown collection was specified. Check cluster configuration and retry.
         Segmentation fault

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            ashwin.govindarajulu Ashwin Govindarajulu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty