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

Reduce functions calling emit() lead to a crash

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.0.1
    • Fix Version/s: 2.1.0
    • Component/s: view-engine
    • Security Level: Public
    • Labels:
      None

      Description

      From http://www.couchbase.com/forums/thread/couchbase-2-0-systematic-crash-specific-reduce-function-beam-smp-general-protection-error0-li

      Reduce functions calling emit internally cause a dangling pointer being derreferenced, which in turn leads to a crash.

        Issue Links

        # Subject Project Status CR V
        For Gerrit Dashboard: &For+MB-7764=message:MB-7764

          Activity

          Show
          FilipeManana Filipe Manana (Inactive) added a comment - http://review.couchbase.org/#/c/24648/
          Hide
          thuan Thuan Nguyen added a comment -

          Integrated in github-couchdb-preview #566 (See http://qa.hq.northscale.net/job/github-couchdb-preview/566/)
          MB-7764 Don't crash if reduce function calls emit() (Revision c3c0cfb9fec7e8125a5d5895fd3d5d683e3b3f78)
          MB-7764 Add test for reduce functions that don't return (Revision fd661bf5daad9c02d407df44d9f818ba582cd10a)

          Result = SUCCESS
          Filipe David Borba Manana :
          Files :

          • src/mapreduce/test/02-reduce.t
          • src/mapreduce/mapreduce.cc

          Filipe David Borba Manana :
          Files :

          • src/mapreduce/test/02-reduce.t
          Show
          thuan Thuan Nguyen added a comment - Integrated in github-couchdb-preview #566 (See http://qa.hq.northscale.net/job/github-couchdb-preview/566/ ) MB-7764 Don't crash if reduce function calls emit() (Revision c3c0cfb9fec7e8125a5d5895fd3d5d683e3b3f78) MB-7764 Add test for reduce functions that don't return (Revision fd661bf5daad9c02d407df44d9f818ba582cd10a) Result = SUCCESS Filipe David Borba Manana : Files : src/mapreduce/test/02-reduce.t src/mapreduce/mapreduce.cc Filipe David Borba Manana : Files : src/mapreduce/test/02-reduce.t
          Hide
          FilipeManana Filipe Manana (Inactive) added a comment -

          Applied to 2.0.2 and master

          Show
          FilipeManana Filipe Manana (Inactive) added a comment - Applied to 2.0.2 and master
          Hide
          maria Maria McDuff (Inactive) added a comment -

          iryna, pls verify/close against current 2.02. build. thanks.

          Show
          maria Maria McDuff (Inactive) added a comment - iryna, pls verify/close against current 2.02. build. thanks.
          Hide
          iryna iryna added a comment -

          verified build 2.0.2-755-rel

          Show
          iryna iryna added a comment - verified build 2.0.2-755-rel

            People

            • Assignee:
              iryna iryna
              Reporter:
              FilipeManana Filipe Manana (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes