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

[ThreadSanitizer] Multiple data races in couchstore and couchdb

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 3.1.4, 4.1.0, 4.5.0, 5.0.0
    • storage-engine, view-engine
    • None
    • Untriaged
    • Unknown

    Description

      Pretty certain this is entirely within view engine code (Ignore the python test errors)

      http://cv.jenkins.couchbase.com/view/Commit%20Validation/view/couchstore/job/couchstore-threadsanitizer-master/1/console

      00:03:29.127 ============================================
      00:03:29.127 ===          Run unit tests              ===
      00:03:29.127 ============================================
      00:03:29.127 # make test ARGS=-j4 --output-on-failure --no-compress-output -T Test
      00:03:29.138 Running tests...
      00:03:29.142    Site: da96e41851ce
      00:03:29.142    Build name: Linux-clang++-3.6
      00:03:29.146 Create new tag: 20160404-0958 - Experimental
      00:03:29.146 Test project /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/build/couchstore
      00:03:29.150       Start  1: couchstore-localdoc
      00:03:29.151       Start  2: couchstore-corrupt
      00:03:29.153       Start  3: couchstore-bulk
      00:03:29.154       Start  4: couchstore-changes-since-filter
      00:03:29.356  1/21 Test  #4: couchstore-changes-since-filter .....   Passed    0.20 sec
      00:03:29.356  2/21 Test  #1: couchstore-localdoc .................   Passed    0.21 sec
      00:03:29.357       Start  5: couchstore-compact
      00:03:29.357       Start  6: couchstore-dropdel
      00:03:30.532  3/21 Test  #3: couchstore-bulk .....................   Passed    1.08 sec
      00:03:30.549       Start  7: couchstore-largefile
      00:03:34.890  4/21 Test  #2: couchstore-corrupt ..................   Passed    5.54 sec
      00:03:34.890       Start  8: couchstore-large
      00:03:47.611  5/21 Test  #7: couchstore-largefile ................   Passed   16.76 sec
      00:03:47.611       Start  9: couchstore-purge
      00:03:47.958 
       6/21 Test  #9: couchstore-purge ....................***Failed    0.05 sec
      00:03:47.959 Traceback (most recent call last):
      00:03:47.959   File "/home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/tests/purge.py", line 1, in <module>
      00:03:47.959     from couchstore import CouchStore, DocumentInfo
      00:03:47.959   File "/home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/python/couchstore.py", line 42, in <module>
      00:03:47.959     raise ImportError("Failed to locate suitable couchstore shared library")
      00:03:47.959 ImportError: Failed to locate suitable couchstore shared library
      00:03:47.959 
      00:03:47.960       Start 10: couchstore-rewind
      00:03:48.302  7/21 Test #10: couchstore-rewind ...................***Failed    0.04 sec
      00:03:48.303 Traceback (most recent call last):
      00:03:48.303   File "/home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/tests/rewind.py", line 1, in <module>
      00:03:48.303     from couchstore import CouchStore, DocumentInfo
      00:03:48.303   File "/home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/python/couchstore.py", line 42, in <module>
      00:03:48.303     raise ImportError("Failed to locate suitable couchstore shared library")
      00:03:48.303 ImportError: Failed to locate suitable couchstore shared library
      00:03:48.303 
      00:03:48.303       Start 11: couchstore-changecount
      00:03:48.648  8/21 Test #11: couchstore-changecount ..............***Failed    0.04 sec
      00:03:48.649 Traceback (most recent call last):
      00:03:48.649   File "/home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/tests/changecount.py", line 1, in <module>
      00:03:48.649     from couchstore import CouchStore, DocumentInfo
      00:03:48.649   File "/home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/python/couchstore.py", line 42, in <module>
      00:03:48.649     raise ImportError("Failed to locate suitable couchstore shared library")
      00:03:48.649 ImportError: Failed to locate suitable couchstore shared library
      00:03:48.649 
      00:03:48.649       Start 12: couchstore-file-deduper-test
      00:03:49.351  9/21 Test #12: couchstore-file-deduper-test ........   Passed    0.40 sec
      00:03:49.352       Start 13: couchstore-file-merge-test
      00:03:49.696 10/21 Test #13: couchstore-file-merge-test ..........   Passed    0.04 sec
      00:03:49.697       Start 14: couchstore-file-sorter-test
      00:04:06.419 11/21 Test  #6: couchstore-dropdel ..................   Passed   37.06 sec
      00:04:06.419       Start 15: couchstore-gtest
      00:04:10.391 12/21 Test  #5: couchstore-compact ..................   Passed   40.93 sec
      00:04:10.392       Start 16: couchstore-internal-gtest
      00:04:35.128 13/21 Test #16: couchstore-internal-gtest ...........   Passed   24.64 sec
      00:04:35.129       Start 17: couchstore-mapreduce-builtin-test
      00:04:39.035 14/21 Test #17: couchstore-mapreduce-builtin-test ...***Failed    3.81 sec
      00:04:39.035 Running mapreduce builtin tests
      00:04:39.035 ==================
      00:04:39.035 WARNING: ThreadSanitizer: data race (pid=135354)
      00:04:39.035   Write of size 8 at 0x7d0c0000ee78 by main thread (mutexes: write M72):
      00:04:39.035     #0 mapDoc(mapreduce_ctx_t*, mapreduce_json_t const&, mapreduce_json_t const&, mapreduce_map_result_list_t*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce.cc:601 (couchstore_mapreduce-builtin-test+0x0000004c5174)
      00:04:39.035     #1 mapreduce_map /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:116 (couchstore_mapreduce-builtin-test+0x0000004c8e0c)
      00:04:39.035     #2 main crtstuff.c (couchstore_mapreduce-builtin-test+0x0000004ca7be)
      00:04:39.035 
      00:04:39.035   Previous read of size 8 at 0x7d0c0000ee78 by thread T5 (mutexes: write M17):
      00:04:39.035     #0 terminator_loop(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:449 (couchstore_mapreduce-builtin-test+0x0000004c9e38)
      00:04:39.035     #1 platform_thread_wrap(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:54 (libplatform.so.0.1.0+0x00000000568b)
      00:04:39.035 
      00:04:39.035   Location is heap block of size 48 at 0x7d0c0000ee50 allocated by main thread:
      00:04:39.035     #0 operator new(unsigned long) <null> (couchstore_mapreduce-builtin-test+0x00000045e78d)
      00:04:39.035     #1 start_context(char const**, int, void**, char**) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:353 (couchstore_mapreduce-builtin-test+0x0000004c83f3)
      00:04:39.035     #2 mapreduce_start_map_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:87 (couchstore_mapreduce-builtin-test+0x0000004c83ab)
      00:04:39.035     #3 main crtstuff.c (couchstore_mapreduce-builtin-test+0x0000004ca774)
      00:04:39.035 
      00:04:39.035   Mutex M72 (0x7d140000edd0) created at:
      00:04:39.035     #0 pthread_mutex_init <null> (couchstore_mapreduce-builtin-test+0x000000463060)
      00:04:39.035     #1 v8::internal::ThreadManager::ThreadManager() <null> (libv8.so+0x00000084b18d)
      00:04:39.035     #2 start_context(char const**, int, void**, char**) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:357 (couchstore_mapreduce-builtin-test+0x0000004c86d8)
      00:04:39.035     #3 mapreduce_start_map_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:87 (couchstore_mapreduce-builtin-test+0x0000004c83ab)
      00:04:39.035     #4 main crtstuff.c (couchstore_mapreduce-builtin-test+0x0000004ca774)
      00:04:39.035 
      00:04:39.035   Mutex M17 (0x0000014d07f8) created at:
      00:04:39.035     #0 pthread_mutex_init <null> (couchstore_mapreduce-builtin-test+0x000000463060)
      00:04:39.035     #1 cb_mutex_initialize /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:174 (libplatform.so.0.1.0+0x000000005904)
      00:04:39.035     #2 RegistryMutex /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:47 (couchstore_mapreduce-builtin-test+0x0000004472e8)
      00:04:39.035     #3 __libc_csu_init <null> (couchstore_mapreduce-builtin-test+0x0000004caf9c)
      00:04:39.035 
      00:04:39.035   Thread T5 (tid=135360, running) created by main thread at:
      00:04:39.035     #0 pthread_create <null> (couchstore_mapreduce-builtin-test+0x000000461c31)
      00:04:39.035     #1 cb_create_named_thread /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:104 (libplatform.so.0.1.0+0x0000000054e5)
      00:04:39.035     #2 cb_create_thread /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:76 (libplatform.so.0.1.0+0x000000005400)
      00:04:39.035     #3 register_ctx(mapreduce_ctx_t*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:415 (couchstore_mapreduce-builtin-test+0x0000004c898f)
      00:04:39.035     #4 mapreduce_start_map_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:87 (couchstore_mapreduce-builtin-test+0x0000004c83ab)
      00:04:39.035     #5 main crtstuff.c (couchstore_mapreduce-builtin-test+0x0000004ca774)
      00:04:39.035 
      00:04:39.035 SUMMARY: ThreadSanitizer: data race /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce.cc:601 mapDoc(mapreduce_ctx_t*, mapreduce_json_t const&, mapreduce_json_t const&, mapreduce_map_result_list_t*)
      00:04:39.035 ==================
      00:04:39.035 ThreadSanitizer: reported 1 warnings
      00:04:39.035 
      00:04:39.036       Start 18: couchstore-mapreduce-map-test
      00:04:39.752 15/21 Test #15: couchstore-gtest ....................   Passed   33.33 sec
      00:04:39.752       Start 19: couchstore-mapreduce-reduce-test
      00:04:45.564 
      16/21 Test #19: couchstore-mapreduce-reduce-test ....***Exception: Other  5.71 sec
      00:04:45.565 Running reduce tests
      00:04:45.565 ==================
      00:04:45.565 WARNING: ThreadSanitizer: data race (pid=135375)
      00:04:45.565   Write of size 8 at 0x7d0c0000ee78 by main thread (mutexes: write M71):
      00:04:45.565     #0 runReduce(mapreduce_ctx_t*, mapreduce_json_list_t const&, mapreduce_json_list_t const&) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce.cc:601 (couchstore_mapreduce-reduce-test+0x0000004c68f2)
      00:04:45.565     #1 mapreduce_reduce_all /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:152 (couchstore_mapreduce-reduce-test+0x0000004c908c)
      00:04:45.565     #2 test_timeout /home/couchbase/.ccache/tmp/reduce.tmp.da96e41851ce.133900.i (couchstore_mapreduce-reduce-test+0x0000004cbe0f)
      00:04:45.565     #3 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca721)
      00:04:45.565 
      00:04:45.565   Previous read of size 8 at 0x7d0c0000ee78 by thread T5 (mutexes: write M17):
      00:04:45.565     #0 terminator_loop(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:449 (couchstore_mapreduce-reduce-test+0x0000004c9e38)
      00:04:45.565     #1 platform_thread_wrap(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:54 (libplatform.so.0.1.0+0x00000000568b)
      00:04:45.565 
      00:04:45.565   Location is heap block of size 48 at 0x7d0c0000ee50 allocated by main thread:
      00:04:45.565     #0 operator new(unsigned long) <null> (couchstore_mapreduce-reduce-test+0x00000045e78d)
      00:04:45.565     #1 start_context(char const**, int, void**, char**) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:353 (couchstore_mapreduce-reduce-test+0x0000004c83f3)
      00:04:45.565     #2 mapreduce_start_reduce_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:138 (couchstore_mapreduce-reduce-test+0x0000004c903b)
      00:04:45.565     #3 test_timeout /home/couchbase/.ccache/tmp/reduce.tmp.da96e41851ce.133900.i (couchstore_mapreduce-reduce-test+0x0000004cbc8d)
      00:04:45.565     #4 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca721)
      00:04:45.565 
      00:04:45.565   Mutex M71 (0x7d140000edd0) created at:
      00:04:45.565     #0 pthread_mutex_init <null> (couchstore_mapreduce-reduce-test+0x000000463060)
      00:04:45.565     #1 v8::internal::ThreadManager::ThreadManager() <null> (libv8.so+0x00000084b18d)
      00:04:45.565     #2 start_context(char const**, int, void**, char**) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:357 (couchstore_mapreduce-reduce-test+0x0000004c86d8)
      00:04:45.565     #3 mapreduce_start_reduce_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:138 (couchstore_mapreduce-reduce-test+0x0000004c903b)
      00:04:45.565     #4 test_timeout /home/couchbase/.ccache/tmp/reduce.tmp.da96e41851ce.133900.i (couchstore_mapreduce-reduce-test+0x0000004cbc8d)
      00:04:45.565     #5 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca721)
      00:04:45.565 
      00:04:45.565   Mutex M17 (0x0000014d17f8) created at:
      00:04:45.565     #0 pthread_mutex_init <null> (couchstore_mapreduce-reduce-test+0x000000463060)
      00:04:45.565     #1 cb_mutex_initialize /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:174 (libplatform.so.0.1.0+0x000000005904)
      00:04:45.565     #2 RegistryMutex /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:47 (couchstore_mapreduce-reduce-test+0x0000004472e8)
      00:04:45.565     #3 __libc_csu_init <null> (couchstore_mapreduce-reduce-test+0x0000004cc10c)
      00:04:45.565 
      00:04:45.565   Thread T5 (tid=135382, running) created by main thread at:
      00:04:45.565     #0 pthread_create <null> (couchstore_mapreduce-reduce-test+0x000000461c31)
      00:04:45.565     #1 cb_create_named_thread /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:104 (libplatform.so.0.1.0+0x0000000054e5)
      00:04:45.565     #2 cb_create_thread /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:76 (libplatform.so.0.1.0+0x000000005400)
      00:04:45.565     #3 register_ctx(mapreduce_ctx_t*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:415 (couchstore_mapreduce-reduce-test+0x0000004c898f)
      00:04:45.565     #4 mapreduce_start_reduce_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:138 (couchstore_mapreduce-reduce-test+0x0000004c903b)
      00:04:45.565     #5 test_timeout /home/couchbase/.ccache/tmp/reduce.tmp.da96e41851ce.133900.i (couchstore_mapreduce-reduce-test+0x0000004cbc8d)
      00:04:45.565     #6 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca721)
      00:04:45.565 
      00:04:45.565 SUMMARY: ThreadSanitizer: data race /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce.cc:601 runReduce(mapreduce_ctx_t*, mapreduce_json_list_t const&, mapreduce_json_list_t const&)
      00:04:45.565 ==================
      00:04:45.565 ==================
      00:04:45.565 WARNING: ThreadSanitizer: data race (pid=135375)
      00:04:45.565   Read of size 8 at 0x7d0c0000eea8 by thread T5 (mutexes: write M17):
      00:04:45.565     #0 terminator_loop(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:449 (couchstore_mapreduce-reduce-test+0x0000004c9e38)
      00:04:45.565     #1 platform_thread_wrap(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:54 (libplatform.so.0.1.0+0x00000000568b)
      00:04:45.565 
      00:04:45.565   Previous write of size 8 at 0x7d0c0000eea8 by main thread (mutexes: write M240):
      00:04:45.565     #0 runReduce(mapreduce_ctx_t*, mapreduce_json_list_t const&, mapreduce_json_list_t const&) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce.cc:601 (couchstore_mapreduce-reduce-test+0x0000004c68f2)
      00:04:45.565     #1 mapreduce_reduce_all /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:152 (couchstore_mapreduce-reduce-test+0x0000004c908c)
      00:04:45.565     #2 test_timeout /home/couchbase/.ccache/tmp/reduce.tmp.da96e41851ce.133900.i (couchstore_mapreduce-reduce-test+0x0000004cbe0f)
      00:04:45.565     #3 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004cb65c)
      00:04:45.565     #4 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004cacb9)
      00:04:45.565     #5 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004cac28)
      00:04:45.565     #6 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca9ac)
      00:04:45.565     #7 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca776)
      00:04:45.565     #8 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca721)
      00:04:45.565 
      00:04:45.565   As if synchronized via sleep:
      00:04:45.565     #0 sleep <null> (couchstore_mapreduce-reduce-test+0x00000045c8c0)
      00:04:45.565     #1 terminator_loop(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:457 (couchstore_mapreduce-reduce-test+0x0000004c9dde)
      00:04:45.565     #2 platform_thread_wrap(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:54 (libplatform.so.0.1.0+0x00000000568b)
      00:04:45.565 
      00:04:45.565   Location is heap block of size 48 at 0x7d0c0000ee80 allocated by main thread:
      00:04:45.565     #0 operator new(unsigned long) <null> (couchstore_mapreduce-reduce-test+0x00000045e78d)
      00:04:45.565     #1 start_context(char const**, int, void**, char**) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:353 (couchstore_mapreduce-reduce-test+0x0000004c83f3)
      00:04:45.565     #2 mapreduce_start_reduce_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:138 (couchstore_mapreduce-reduce-test+0x0000004c903b)
      00:04:45.565     #3 test_timeout /home/couchbase/.ccache/tmp/reduce.tmp.da96e41851ce.133900.i (couchstore_mapreduce-reduce-test+0x0000004cbc8d)
      00:04:45.565     #4 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004cb65c)
      00:04:45.565     #5 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004cacb9)
      00:04:45.565     #6 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004cac28)
      00:04:45.565     #7 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca9ac)
      00:04:45.565     #8 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca776)
      00:04:45.565     #9 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca721)
      00:04:45.565 
      00:04:45.565   Mutex M17 (0x0000014d17f8) created at:
      00:04:45.565     #0 pthread_mutex_init <null> (couchstore_mapreduce-reduce-test+0x000000463060)
      00:04:45.566     #1 cb_mutex_initialize /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:174 (libplatform.so.0.1.0+0x000000005904)
      00:04:45.566     #2 RegistryMutex /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:47 (couchstore_mapreduce-reduce-test+0x0000004472e8)
      00:04:45.566     #3 __libc_csu_init <null> (couchstore_mapreduce-reduce-test+0x0000004cc10c)
      00:04:45.566 
      00:04:45.566   Mutex M240 (0x7d140000ed80) created at:
      00:04:45.566     #0 pthread_mutex_init <null> (couchstore_mapreduce-reduce-test+0x000000463060)
      00:04:45.566     #1 v8::internal::ThreadManager::ThreadManager() <null> (libv8.so+0x00000084b18d)
      00:04:45.566     #2 start_context(char const**, int, void**, char**) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:357 (couchstore_mapreduce-reduce-test+0x0000004c86d8)
      00:04:45.566     #3 mapreduce_start_reduce_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:138 (couchstore_mapreduce-reduce-test+0x0000004c903b)
      00:04:45.566     #4 test_timeout /home/couchbase/.ccache/tmp/reduce.tmp.da96e41851ce.133900.i (couchstore_mapreduce-reduce-test+0x0000004cbc8d)
      00:04:45.566     #5 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004cb65c)
      00:04:45.566     #6 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004cacb9)
      00:04:45.566     #7 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004cac28)
      00:04:45.566     #8 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca9ac)
      00:04:45.566     #9 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca776)
      00:04:45.566     #10 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca721)
      00:04:45.566 
      00:04:45.566   Thread T5 (tid=135382, running) created by main thread at:
      00:04:45.566     #0 pthread_create <null> (couchstore_mapreduce-reduce-test+0x000000461c31)
      00:04:45.566     #1 cb_create_named_thread /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:104 (libplatform.so.0.1.0+0x0000000054e5)
      00:04:45.566     #2 cb_create_thread /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:76 (libplatform.so.0.1.0+0x000000005400)
      00:04:45.566     #3 register_ctx(mapreduce_ctx_t*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:415 (couchstore_mapreduce-reduce-test+0x0000004c898f)
      00:04:45.566     #4 mapreduce_start_reduce_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:138 (couchstore_mapreduce-reduce-test+0x0000004c903b)
      00:04:45.566     #5 test_timeout /home/couchbase/.ccache/tmp/reduce.tmp.da96e41851ce.133900.i (couchstore_mapreduce-reduce-test+0x0000004cbc8d)
      00:04:45.566     #6 main crtstuff.c (couchstore_mapreduce-reduce-test+0x0000004ca721)
      00:04:45.566 
      00:04:45.566 SUMMARY: ThreadSanitizer: data race /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:449 terminator_loop(void*)
      00:04:45.566 ==================
      00:04:45.566 terminate called after throwing an instance of 'std::system_error'
      00:04:45.566   what():  Failed to lock mutex: Invalid argument
      00:04:45.566 
      00:04:45.566 17/21 Test #18: couchstore-mapreduce-map-test .......***Exception: Other  6.53 sec
      00:04:45.567 Running map tests
      00:04:45.567 ==================
      00:04:45.567 WARNING: ThreadSanitizer: data race (pid=135367)
      00:04:45.567   Read of size 8 at 0x7d0c0000ee78 by thread T5 (mutexes: write M17):
      00:04:45.567     #0 terminator_loop(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:449 (couchstore_mapreduce-map-test+0x0000004c9e38)
      00:04:45.567     #1 platform_thread_wrap(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:54 (libplatform.so.0.1.0+0x00000000568b)
      00:04:45.567 
      00:04:45.567   Previous write of size 8 at 0x7d0c0000ee78 by main thread (mutexes: write M72):
      00:04:45.567     #0 mapDoc(mapreduce_ctx_t*, mapreduce_json_t const&, mapreduce_json_t const&, mapreduce_map_result_list_t*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce.cc:601 (couchstore_mapreduce-map-test+0x0000004c5174)
      00:04:45.567     #1 mapreduce_map /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:116 (couchstore_mapreduce-map-test+0x0000004c8e0c)
      00:04:45.567     #2 test_timeout /home/couchbase/.ccache/tmp/map.tmp.da96e41851ce.133864.i (couchstore_mapreduce-map-test+0x0000004cc561)
      00:04:45.567     #3 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004ca71f)
      00:04:45.567 
      00:04:45.567   Location is heap block of size 48 at 0x7d0c0000ee50 allocated by main thread:
      00:04:45.567     #0 operator new(unsigned long) <null> (couchstore_mapreduce-map-test+0x00000045e78d)
      00:04:45.567     #1 start_context(char const**, int, void**, char**) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:353 (couchstore_mapreduce-map-test+0x0000004c83f3)
      00:04:45.567     #2 mapreduce_start_map_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:87 (couchstore_mapreduce-map-test+0x0000004c83ab)
      00:04:45.567     #3 test_timeout /home/couchbase/.ccache/tmp/map.tmp.da96e41851ce.133864.i (couchstore_mapreduce-map-test+0x0000004cc518)
      00:04:45.567     #4 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004ca71f)
      00:04:45.567 
      00:04:45.567   Mutex M17 (0x0000014d37f8) created at:
      00:04:45.567     #0 pthread_mutex_init <null> (couchstore_mapreduce-map-test+0x000000463060)
      00:04:45.567     #1 cb_mutex_initialize /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:174 (libplatform.so.0.1.0+0x000000005904)
      00:04:45.567     #2 RegistryMutex /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:47 (couchstore_mapreduce-map-test+0x0000004472e8)
      00:04:45.567     #3 __libc_csu_init <null> (couchstore_mapreduce-map-test+0x0000004cc83c)
      00:04:45.567 
      00:04:45.567   Mutex M72 (0x7d140000edd0) created at:
      00:04:45.567     #0 pthread_mutex_init <null> (couchstore_mapreduce-map-test+0x000000463060)
      00:04:45.567     #1 v8::internal::ThreadManager::ThreadManager() <null> (libv8.so+0x00000084b18d)
      00:04:45.567     #2 start_context(char const**, int, void**, char**) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:357 (couchstore_mapreduce-map-test+0x0000004c86d8)
      00:04:45.567     #3 mapreduce_start_map_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:87 (couchstore_mapreduce-map-test+0x0000004c83ab)
      00:04:45.567     #4 test_timeout /home/couchbase/.ccache/tmp/map.tmp.da96e41851ce.133864.i (couchstore_mapreduce-map-test+0x0000004cc518)
      00:04:45.567     #5 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004ca71f)
      00:04:45.567 
      00:04:45.567   Thread T5 (tid=135373, running) created by main thread at:
      00:04:45.567     #0 pthread_create <null> (couchstore_mapreduce-map-test+0x000000461c31)
      00:04:45.567     #1 cb_create_named_thread /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:104 (libplatform.so.0.1.0+0x0000000054e5)
      00:04:45.567     #2 cb_create_thread /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:76 (libplatform.so.0.1.0+0x000000005400)
      00:04:45.567     #3 register_ctx(mapreduce_ctx_t*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:415 (couchstore_mapreduce-map-test+0x0000004c898f)
      00:04:45.567     #4 mapreduce_start_map_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:87 (couchstore_mapreduce-map-test+0x0000004c83ab)
      00:04:45.567     #5 test_timeout /home/couchbase/.ccache/tmp/map.tmp.da96e41851ce.133864.i (couchstore_mapreduce-map-test+0x0000004cc518)
      00:04:45.567     #6 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004ca71f)
      00:04:45.567 
      00:04:45.567 SUMMARY: ThreadSanitizer: data race /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:449 terminator_loop(void*)
      00:04:45.567 ==================
      00:04:45.567 ==================
      00:04:45.567 WARNING: ThreadSanitizer: data race (pid=135367)
      00:04:45.567   Read of size 8 at 0x7d0c0000eea8 by thread T5 (mutexes: write M17):
      00:04:45.567     #0 terminator_loop(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:449 (couchstore_mapreduce-map-test+0x0000004c9e38)
      00:04:45.567     #1 platform_thread_wrap(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:54 (libplatform.so.0.1.0+0x00000000568b)
      00:04:45.567 
      00:04:45.567   Previous write of size 8 at 0x7d0c0000eea8 by main thread (mutexes: write M275):
      00:04:45.567     #0 mapDoc(mapreduce_ctx_t*, mapreduce_json_t const&, mapreduce_json_t const&, mapreduce_map_result_list_t*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce.cc:601 (couchstore_mapreduce-map-test+0x0000004c5174)
      00:04:45.567     #1 mapreduce_map /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:116 (couchstore_mapreduce-map-test+0x0000004c8e0c)
      00:04:45.567     #2 test_timeout /home/couchbase/.ccache/tmp/map.tmp.da96e41851ce.133864.i (couchstore_mapreduce-map-test+0x0000004cc561)
      00:04:45.567     #3 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004cb86f)
      00:04:45.567     #4 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004ca775)
      00:04:45.567     #5 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004ca71f)
      00:04:45.567 
      00:04:45.567   As if synchronized via sleep:
      00:04:45.567     #0 sleep <null> (couchstore_mapreduce-map-test+0x00000045c8c0)
      00:04:45.567     #1 terminator_loop(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:457 (couchstore_mapreduce-map-test+0x0000004c9dde)
      00:04:45.567     #2 platform_thread_wrap(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:54 (libplatform.so.0.1.0+0x00000000568b)
      00:04:45.567 
      00:04:45.567   Location is heap block of size 48 at 0x7d0c0000ee80 allocated by main thread:
      00:04:45.567     #0 operator new(unsigned long) <null> (couchstore_mapreduce-map-test+0x00000045e78d)
      00:04:45.567     #1 start_context(char const**, int, void**, char**) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:353 (couchstore_mapreduce-map-test+0x0000004c83f3)
      00:04:45.567     #2 mapreduce_start_map_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:87 (couchstore_mapreduce-map-test+0x0000004c83ab)
      00:04:45.567     #3 test_timeout /home/couchbase/.ccache/tmp/map.tmp.da96e41851ce.133864.i (couchstore_mapreduce-map-test+0x0000004cc518)
      00:04:45.567     #4 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004cb86f)
      00:04:45.567     #5 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004ca775)
      00:04:45.567     #6 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004ca71f)
      00:04:45.567 
      00:04:45.567   Mutex M17 (0x0000014d37f8) created at:
      00:04:45.567     #0 pthread_mutex_init <null> (couchstore_mapreduce-map-test+0x000000463060)
      00:04:45.567     #1 cb_mutex_initialize /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:174 (libplatform.so.0.1.0+0x000000005904)
      00:04:45.567     #2 RegistryMutex /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:47 (couchstore_mapreduce-map-test+0x0000004472e8)
      00:04:45.567     #3 __libc_csu_init <null> (couchstore_mapreduce-map-test+0x0000004cc83c)
      00:04:45.567 
      00:04:45.567   Mutex M275 (0x7d140000edd0) created at:
      00:04:45.567     #0 pthread_mutex_init <null> (couchstore_mapreduce-map-test+0x000000463060)
      00:04:45.567     #1 v8::internal::ThreadManager::ThreadManager() <null> (libv8.so+0x00000084b18d)
      00:04:45.567     #2 start_context(char const**, int, void**, char**) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:357 (couchstore_mapreduce-map-test+0x0000004c86d8)
      00:04:45.567     #3 mapreduce_start_map_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:87 (couchstore_mapreduce-map-test+0x0000004c83ab)
      00:04:45.567     #4 test_timeout /home/couchbase/.ccache/tmp/map.tmp.da96e41851ce.133864.i (couchstore_mapreduce-map-test+0x0000004cc518)
      00:04:45.567     #5 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004cb86f)
      00:04:45.567     #6 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004ca775)
      00:04:45.567     #7 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004ca71f)
      00:04:45.567 
      00:04:45.567   Thread T5 (tid=135373, running) created by main thread at:
      00:04:45.567     #0 pthread_create <null> (couchstore_mapreduce-map-test+0x000000461c31)
      00:04:45.567     #1 cb_create_named_thread /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:104 (libplatform.so.0.1.0+0x0000000054e5)
      00:04:45.567     #2 cb_create_thread /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:76 (libplatform.so.0.1.0+0x000000005400)
      00:04:45.567     #3 register_ctx(mapreduce_ctx_t*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:415 (couchstore_mapreduce-map-test+0x0000004c898f)
      00:04:45.567     #4 mapreduce_start_map_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:87 (couchstore_mapreduce-map-test+0x0000004c83ab)
      00:04:45.567     #5 test_timeout /home/couchbase/.ccache/tmp/map.tmp.da96e41851ce.133864.i (couchstore_mapreduce-map-test+0x0000004cc518)
      00:04:45.567     #6 main crtstuff.c (couchstore_mapreduce-map-test+0x0000004ca71f)
      00:04:45.567 
      00:04:45.567 SUMMARY: ThreadSanitizer: data race /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:449 terminator_loop(void*)
      00:04:45.567 ==================
      00:04:45.567 terminate called after throwing an instance of 'std::system_error'
      00:04:45.567   what():  Failed to lock mutex: Invalid argument
      00:04:45.567 
      00:04:45.567       Start 20: couchstore-testapp
      00:04:45.567       Start 21: couchstore-wrapped_fileops-test
      00:04:45.870 18/21 Test #21: couchstore-wrapped_fileops-test .....   Passed    0.30 sec
      00:04:55.984 19/21 Test #20: couchstore-testapp ..................***Failed   10.42 sec
      00:04:55.984 
      00:04:55.984 
      00:04:55.984 Running view tests
      00:04:55.984 
      00:04:55.984 Running view bitmap tests
      00:04:55.984 Running view sorted_list tests
      00:04:55.984 JSON collation: escapes... scalars... ASCII... raw... arrays... nesting... Unicode... OK
      00:04:55.984 Decoding an index header v1...
      00:04:55.984 Encoding the previously decoded header...
      00:04:55.984 Decoding the previously encoded header...
      00:04:55.984 Encoding the previously decoded header...
      00:04:55.984 Decoding an index header v2...
      00:04:55.984 Encoding the previously decoded header...
      00:04:55.984 Decoding the previously encoded header...
      00:04:55.984 Encoding the previously decoded header...
      00:04:55.984 Decoding a view btree reduction ...
      00:04:55.984 Decoding a view id btree reduction ...
      00:04:55.984 Encoding the previously decoded view btree reduction ...
      00:04:55.984 Encoding the previously decoded view id btree reduction ...
      00:04:55.984 Decoding the previously encoded view btree reduction ...
      00:04:55.984 Decoding the previously encoded view id btree reduction ...
      00:04:55.984 Encoding the previously decoded view btree reduciton ...
      00:04:55.984 Encoding the previously decoded view id btree reduciton ...
      00:04:55.984 Decoding a view btree key ...
      00:04:55.984 Decoding a view id btree key ...
      00:04:55.984 Encoding the previously decoded view btree key ...
      00:04:55.984 Encoding the previously decoded view id btree key ...
      00:04:55.984 Decoding the previously encoded view btree key ...
      00:04:55.984 Decoding the previously encoded view id btree key ...
      00:04:55.984 Encoding the previously decoded view btree key ...
      00:04:55.984 Encoding the previously decoded view id btree key ...
      00:04:55.984 Decoding a view btree value ...
      00:04:55.984 Decoding a view id btree value ...
      00:04:55.984 Encoding the previously decoded view btree value ...
      00:04:55.984 Encoding the previously decoded view id btree value ...
      00:04:55.984 Decoding the previously encoded view btree value ...
      00:04:55.984 Decoding the previously encoded view id btree value ...
      00:04:55.984 Encoding the previously decoded view btree value ...
      00:04:55.984 Encoding the previously decoded view id btree value ...
      00:04:55.984 Running built-in reducer tests ... 
      00:04:55.984 End of built-in view id btree reducer tests
      00:04:55.984 End of built-in view btree sum reducer tests
      00:04:55.984 End of built-in view btree count reducer tests
      00:04:55.984 End of built-in view btree stats reducer tests
      00:04:55.984 ==================
      00:04:55.984 WARNING: ThreadSanitizer: data race (pid=135393)
      00:04:55.984   Write of size 8 at 0x7d0c0000eea8 by main thread (mutexes: write M68):
      00:04:55.984     #0 runReduce(mapreduce_ctx_t*, mapreduce_json_list_t const&, mapreduce_json_list_t const&) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce.cc:601 (couchstore_testapp+0x0000004f69c2)
      00:04:55.984     #1 mapreduce_reduce_all /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:152 (couchstore_testapp+0x0000004f915c)
      00:04:55.984     #2 js_reducer /home/couchbase/.ccache/tmp/reducers.tmp.da96e41851ce.130333.i (couchstore_testapp+0x0000004fb8ce)
      00:04:55.984     #3 view_btree_reduce crtstuff.c (couchstore_testapp+0x0000004fc25d)
      00:04:55.984     #4 reducer_tests crtstuff.c (couchstore_testapp+0x0000004cfde1)
      00:04:55.984     #5 view_tests crtstuff.c (couchstore_testapp+0x0000004c4e8c)
      00:04:55.984     #6 main crtstuff.c (couchstore_testapp+0x0000004c4e18)
      00:04:55.984 
      00:04:55.984   Previous read of size 8 at 0x7d0c0000eea8 by thread T5 (mutexes: write M12):
      00:04:55.984     #0 terminator_loop(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:449 (couchstore_testapp+0x0000004f9f08)
      00:04:55.984     #1 platform_thread_wrap(void*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:54 (libplatform.so.0.1.0+0x00000000568b)
      00:04:55.984 
      00:04:55.984   Location is heap block of size 48 at 0x7d0c0000ee80 allocated by main thread:
      00:04:55.984     #0 operator new(unsigned long) <null> (couchstore_testapp+0x00000045f5fd)
      00:04:55.984     #1 start_context(char const**, int, void**, char**) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:353 (couchstore_testapp+0x0000004f84c3)
      00:04:55.984     #2 mapreduce_start_reduce_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:138 (couchstore_testapp+0x0000004f910b)
      00:04:55.984     #3 make_view_reducer_ctx crtstuff.c (couchstore_testapp+0x0000004fac2f)
      00:04:55.984     #4 reducer_tests crtstuff.c (couchstore_testapp+0x0000004cf7ff)
      00:04:55.984     #5 view_tests crtstuff.c (couchstore_testapp+0x0000004c4e8c)
      00:04:55.984     #6 main crtstuff.c (couchstore_testapp+0x0000004c4e18)
      00:04:55.985 
      00:04:55.985   Mutex M68 (0x7d140000ee70) created at:
      00:04:55.985     #0 pthread_mutex_init <null> (couchstore_testapp+0x000000463ed0)
      00:04:55.985     #1 v8::internal::ThreadManager::ThreadManager() <null> (libv8.so+0x00000084b18d)
      00:04:55.985     #2 start_context(char const**, int, void**, char**) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:357 (couchstore_testapp+0x0000004f87a8)
      00:04:55.985     #3 mapreduce_start_reduce_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:138 (couchstore_testapp+0x0000004f910b)
      00:04:55.985     #4 make_view_reducer_ctx crtstuff.c (couchstore_testapp+0x0000004fac2f)
      00:04:55.985     #5 reducer_tests crtstuff.c (couchstore_testapp+0x0000004cf7ff)
      00:04:55.985     #6 view_tests crtstuff.c (couchstore_testapp+0x0000004c4e8c)
      00:04:55.985     #7 main crtstuff.c (couchstore_testapp+0x0000004c4e18)
      00:04:55.985 
      00:04:55.985   Mutex M12 (0x00000151bde0) created at:
      00:04:55.985     #0 pthread_mutex_init <null> (couchstore_testapp+0x000000463ed0)
      00:04:55.985     #1 cb_mutex_initialize /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:174 (libplatform.so.0.1.0+0x000000005904)
      00:04:55.985     #2 RegistryMutex /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:47 (couchstore_testapp+0x000000448128)
      00:04:55.985     #3 __libc_csu_init <null> (couchstore_testapp+0x00000050a7bc)
      00:04:55.985 
      00:04:55.985   Thread T5 (tid=135401, running) created by main thread at:
      00:04:55.985     #0 pthread_create <null> (couchstore_testapp+0x000000462aa1)
      00:04:55.985     #1 cb_create_named_thread /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:104 (libplatform.so.0.1.0+0x0000000054e5)
      00:04:55.985     #2 cb_create_thread /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/platform/src/cb_pthreads.cc:76 (libplatform.so.0.1.0+0x000000005400)
      00:04:55.985     #3 register_ctx(mapreduce_ctx_t*) /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:415 (couchstore_testapp+0x0000004f8a5f)
      00:04:55.985     #4 mapreduce_start_reduce_context /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce_c.cc:138 (couchstore_testapp+0x0000004f910b)
      00:04:55.985     #5 make_view_reducer_ctx crtstuff.c (couchstore_testapp+0x0000004fac2f)
      00:04:55.985     #6 reducer_tests crtstuff.c (couchstore_testapp+0x0000004cf7ff)
      00:04:55.985     #7 view_tests crtstuff.c (couchstore_testapp+0x0000004c4e8c)
      00:04:55.985     #8 main crtstuff.c (couchstore_testapp+0x0000004c4e18)
      00:04:55.985 
      00:04:55.985 SUMMARY: ThreadSanitizer: data race /home/couchbase/jenkins/workspace/couchstore-threadsanitizer-master/couchstore/src/views/mapreduce/mapreduce.cc:601 runReduce(mapreduce_ctx_t*, mapreduce_json_list_t const&, mapreduce_json_list_t const&)
      00:04:55.985 ==================
      00:04:55.985 End of view btree js reducer tests
      00:04:55.985 End of view btree multiple reducer tests
      00:04:55.985 End of view btree no reducer tests
      00:04:55.985 End of view btree large reducer tests
      00:04:55.985 Running view id_btree cleanup tests ... 
      00:04:55.985 End of view id_btree cleanup tests ... 
      00:04:55.985 Running view btree cleanup tests ... 
      00:04:55.985 End of view btree cleanup tests ... 
      00:04:55.985 Running spatial interleaving tests
      00:04:55.985 Running spatial scale factor tests
      00:04:55.985 Running spatial scale factor tests
      00:04:55.985 Running spatial scale point tests
      00:04:55.985 Running set bit sized tests
      00:04:55.985 Running encode spatial key tests
      00:04:55.985 Running decode spatial key tests
      00:04:55.985 Running expand MBB tests
      00:04:55.985 
      00:04:55.985 
      00:04:55.985 Running purge tests
      00:04:55.985 
      00:04:55.985 
      00:04:55.985 Executing test_no_purge_items...
      00:04:55.985 Initial reduce value equals N
      00:04:55.985 guided_purge returned correct accumulator {0,0}
      00:04:55.985 Reduce value after guided purge equals N
      00:04:55.985 Btree has same values after guided purge
      00:04:55.985 
      00:04:55.985 Executing test_all_purge_items...
      00:04:55.985 Initial reduce value equals N
      00:04:55.985 guided_purge returned correct accumulator {0,N}
      00:04:55.985 Reduce value after guided purge equals 0
      00:04:55.985 Btree is empty after guided purge
      00:04:55.985 
      00:04:55.985 Executing test_partial_purge_items...
      00:04:55.985 Initial reduce value equals {NumEven, NumOdd}
      00:04:55.985 guided_purge returned correct accumulator {0,NumOdd}
      00:04:55.985 Reduce value after guided purge equals {NumEven, 0}
      00:04:55.985 Btree has no odd values after guided purge
      00:04:55.985 
      00:04:55.985 Executing test_partial_purge_items2...
      00:04:55.985 Initial reduce value equals seq{0, 63}
      00:04:55.985 guided_purge returned correct accumulator N/2
      00:04:55.985 Reduce value after guided purge equals {0, 31}
      00:04:55.985 Btree has only values within the range {0, 31} and keys are sorted
      00:04:55.985 
      00:04:55.985 Executing test_partial_purge_items...
      00:04:55.985 Initial reduce value equals {NumEven, NumOdd}
      00:04:55.985 guided_purge returned correct accumulator - 4
      00:04:55.985 Reduce value after guided purge equals {NumEven, NumOdd-4}
      00:04:55.985 Btree does not contain first 4 odd values after guided purge
      00:04:55.985 
      00:04:55.985 Executing test_only_single_leafnode...
      00:04:55.985 Initial reduce value equals N
      00:04:55.985 guided_purge returned correct accumulator {N,0}
      00:04:55.985 Reduce value after guided purge equals 0
      00:04:55.985 Btree is empty after guided purge
      00:04:55.985 
      00:04:55.985 Executing test_add_remove_purge...
      00:04:55.985 Initial reduce value equals {NumEven, NumOdd}
      00:04:55.985 Btree add_remove with purge returned correct purge_count - Numodds
      00:04:55.985 Btree reduce value equals - {NumEven-2, 0}
      00:04:55.985 Btree has no odd values after guided purge
      00:04:55.985 Keys 4,10,200000 are not in tree after guided purge
      00:04:55.985 ThreadSanitizer: reported 1 warnings
      00:04:55.985 
      00:05:41.346 20/21 Test #14: couchstore-file-sorter-test .........   Passed  111.55 sec
      00:06:45.928 21/21 Test  #8: couchstore-large ....................   Passed  191.04 sec
      00:06:45.928 
      00:06:45.928 67% tests passed, 7 tests failed out of 21
      00:06:45.929 
      00:06:45.929 Total Test time (real) = 196.78 sec
      00:06:45.929 
      00:06:45.929 The following tests FAILED:
      00:06:45.929 	  9 - couchstore-purge (Failed)
      00:06:45.929 	 10 - couchstore-rewind (Failed)
      00:06:45.929 	 11 - couchstore-changecount (Failed)
      00:06:45.929 	 17 - couchstore-mapreduce-builtin-test (Failed)
      00:06:45.929 	 18 - couchstore-mapreduce-map-test (OTHER_FAULT)
      00:06:45.930 	 19 - couchstore-mapreduce-reduce-test (OTHER_FAULT)
      00:06:45.930 	 20 - couchstore-testapp (Failed)
      00:06:45.939 Errors while running CTest
      

      Attachments

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

        Activity

          People

            harsha Harsha Havanur
            will.gardner Will Gardner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty