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

cbanalyze-core is hanging

    XMLWordPrintable

Details

    • Triaged
    • 1
    • Unknown

    Attachments

      1. a.core
        1.73 MB
      2. a.core.log
        11 kB
      3. c24a8d4a-b705-4cba-8e4b8291-5bdbb1bf.dmp
        1.77 MB
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

      Activity

        drigby Dave Rigby added a comment -

        Can you direct me at details of how you're invoking cbanalyse_core, and what the stdout / stderr from it was?

        drigby Dave Rigby added a comment - Can you direct me at details of how you're invoking cbanalyse_core, and what the stdout / stderr from it was?

        Here are the steps Dave Rigby:

        1. /opt/couchbase/bin/minidump-2-core c24a8d4a-b705-4cba-8e4b8291-5bdbb1bf.dmp > a.core
        2. /opt/couchbase/bin/tools/cbanalyze-core a.core
          It is creating a.core.log file but it seems to be stuck/hung
          a.core.log a.core c24a8d4a-b705-4cba-8e4b8291-5bdbb1bf.dmp
        ritesh.agarwal Ritesh Agarwal added a comment - Here are the steps Dave Rigby : /opt/couchbase/bin/minidump-2-core c24a8d4a-b705-4cba-8e4b8291-5bdbb1bf.dmp > a.core /opt/couchbase/bin/tools/cbanalyze-core a.core It is creating a.core.log file but it seems to be stuck/hung a.core.log a.core c24a8d4a-b705-4cba-8e4b8291-5bdbb1bf.dmp
        drigby Dave Rigby added a comment -

        From the cbanalyse_core stdout it looks like GDB encountered an error with one or more of the commands:

        Thread 51 (LWP 125485):
        #0  0x00007f747d6f7f83 in pread64 () from /lib64/libpthread.so.0
        #1  0x000000000093fa3b in magma::BasicFile::Read(long, unsigned long, char*, unsigned long*) ()
        #2  0x00000000009a87da in magma::FileWithStats::Read(long, unsigned long, char*, unsigned long*) ()
        #3  0x00000000009431b7 in magma::BufferedFileReader::Read(magma::File*, long, unsigned long, magma::Slice&, unsigned long&) ()
        #4  0x000000000094e3f5 in magma::ReadAndTransform(magma::File*, long, unsigned long, std::function<magma::Status (char const*, unsigned long, std::unique_ptr<char [], std::default_delete<char []> >&, unsigned long&)>, std::unique_ptr<char [], std::default_delete<char []> >&, unsigned long&, unsigned long&, magma::BufferedFileReader*) ()
        /tmp/gdb-commands.56625:1: Error in sourced command file:
        Cannot access memory at address 0x7f73f07dd4c8
        Missing separate debuginfos, use: debuginfo-install couchbase-server-7.1.0-1061.x86_64
        [?1034h(gdb) 
        

        drigby Dave Rigby added a comment - From the cbanalyse_core stdout it looks like GDB encountered an error with one or more of the commands: Thread 51 (LWP 125485): #0 0x00007f747d6f7f83 in pread64 () from /lib64/libpthread.so.0 #1 0x000000000093fa3b in magma::BasicFile::Read(long, unsigned long, char*, unsigned long*) () #2 0x00000000009a87da in magma::FileWithStats::Read(long, unsigned long, char*, unsigned long*) () #3 0x00000000009431b7 in magma::BufferedFileReader::Read(magma::File*, long, unsigned long, magma::Slice&, unsigned long&) () #4 0x000000000094e3f5 in magma::ReadAndTransform(magma::File*, long, unsigned long, std::function<magma::Status (char const*, unsigned long, std::unique_ptr<char [], std::default_delete<char []> >&, unsigned long&)>, std::unique_ptr<char [], std::default_delete<char []> >&, unsigned long&, unsigned long&, magma::BufferedFileReader*) () /tmp/gdb-commands.56625:1: Error in sourced command file: Cannot access memory at address 0x7f73f07dd4c8 Missing separate debuginfos, use: debuginfo-install couchbase-server-7.1.0-1061.x86_64 [?1034h(gdb)
        drigby Dave Rigby added a comment -

        I did look into this further in July; IIRC there are some issues in how cbanalyze_core invokes gdb; if GDB encounters an error in one of the commands the entire script hangs.

        I started some experiments in passing the commands to GDB directly on the command-line; however I can't find the WIP right now.

        drigby Dave Rigby added a comment - I did look into this further in July; IIRC there are some issues in how cbanalyze_core invokes gdb; if GDB encounters an error in one of the commands the entire script hangs. I started some experiments in passing the commands to GDB directly on the command-line; however I can't find the WIP right now.

        People

          drigby Dave Rigby
          ritesh.agarwal Ritesh Agarwal
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

            Created:
            Updated:

            Gerrit Reviews

              There are no open Gerrit changes

              PagerDuty