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

couchbase server crashes in mapDoc at mapreduce.cc:184 (kernel: beam.smp[4552]: segfault ) if map view function produces run time errors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: view-engine
    • Security Level: Public
    • Labels:
      None
    • Environment:
      Version: 2.0.0 community edition (build-1723)
      CentOS release 5.4 (Final)
      64-bit

      Description

      With a view that has a syntax error, I was able to crash the node by trying to execute it through the web UI. Once crashed, it never restarted.

      View code is:
      function (doc, meta) {
      if (jsonType == "player")

      { emit(doc.level, meta.id); }

      }

      Note that should have been doc.jsonType.

      Will attach logs shortly.

      1. gdb_a_a_bt.out-MB6807.txt
        23 kB
        Matt Ingenthron
      2. OOW_node1.logs.txt.gz
        3.41 MB
        Matt Ingenthron
      3. OOW-node2.logs.txt.gz
        9.44 MB
        Matt Ingenthron
      4. OOW-node2-afterCrashing.logs.txt.gz
        9.46 MB
        Matt Ingenthron
      5. OOW-node3.logs.txt.gz
        5.71 MB
        Matt Ingenthron
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        Matt,

        can you also provide the rightscale or amazon ami for this environment so that we can use that to veirfy the fix after its merged

        Show
        farshid Farshid Ghods (Inactive) added a comment - Matt, can you also provide the rightscale or amazon ami for this environment so that we can use that to veirfy the fix after its merged
        Hide
        ingenthr Matt Ingenthron added a comment -

        No. Per our discussion yesterday, I shut the systems down.

        I can help you recreate the environment when it's ready to test. It's really just cluster three nodes together (I'd have to look up the AMI) and then put a bunch of workload on with gamesim. At some point, plug in that view code and see it crash.

        Show
        ingenthr Matt Ingenthron added a comment - No. Per our discussion yesterday, I shut the systems down. I can help you recreate the environment when it's ready to test. It's really just cluster three nodes together (I'd have to look up the AMI) and then put a bunch of workload on with gamesim. At some point, plug in that view code and see it crash.
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in github-couchdb-preview #511 (See http://qa.hq.northscale.net/job/github-couchdb-preview/511/)
        MB-6807 Account for exception stringification failure (Revision 2db28bf5ddadb4f50ba0ad29f24939342142249e)
        MB-6807 Fix some harmless warnings (Revision 314270cbd8dd5336e5591ee60315d6cdd8c41c73)

        Result = SUCCESS
        Farshid Ghods :
        Files :

        • src/mapreduce/mapreduce.cc
        • src/mapreduce/test/01-map.t

        Farshid Ghods :
        Files :

        • src/mapreduce/Makefile.am
        • src/mapreduce/mapreduce.cc
        Show
        thuan Thuan Nguyen added a comment - Integrated in github-couchdb-preview #511 (See http://qa.hq.northscale.net/job/github-couchdb-preview/511/ ) MB-6807 Account for exception stringification failure (Revision 2db28bf5ddadb4f50ba0ad29f24939342142249e) MB-6807 Fix some harmless warnings (Revision 314270cbd8dd5336e5591ee60315d6cdd8c41c73) Result = SUCCESS Farshid Ghods : Files : src/mapreduce/mapreduce.cc src/mapreduce/test/01-map.t Farshid Ghods : Files : src/mapreduce/Makefile.am src/mapreduce/mapreduce.cc
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        Assigned to deep for verification on builds 1819+

        Show
        farshid Farshid Ghods (Inactive) added a comment - Assigned to deep for verification on builds 1819+
        Hide
        deepkaran.salooja Deepkaran Salooja added a comment -

        verified with build 2.0.2-764-rel

        Show
        deepkaran.salooja Deepkaran Salooja added a comment - verified with build 2.0.2-764-rel

          People

          • Assignee:
            deepkaran.salooja Deepkaran Salooja
            Reporter:
            ingenthr Matt Ingenthron
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes