This looks similar to WT-3289, where thread creation fails and when exiting we end up calling thread join on tid 0.
Config to reproduce using fault injection script:
cmd=python ../test/suite/run.py -v 3 test_shared_cache02 failcountbeg=6 failcountend=6 timeout=300
Induced fault here:
Induced fault in following backtrace: mmap pthread_create __wt_thread_create __wt_conn_cache_pool_open __wt_cache_config __wt_cache_create __wt_connection_open wiredtiger_open _wrap_wiredtiger_open PyEval_EvalFrameEx PyEval_EvalCodeEx PyEval_EvalFrameEx PyEval_EvalCodeEx PyEval_EvalFrameEx PyEval_EvalCodeEx PyEval_EvalFrameEx PyEval_EvalFrameEx PyEval_EvalCodeEx _PyFrame_DebugMallocStats PyObject_Call
Backtrace from crash:
(gdb) bt #0 0x0000003e6ce084f0 in pthread_join () from /lib64/libpthread.so.0 #1 0x00007fa51095fb81 in __wt_thread_join (session=0x18598c0, tid=0) at ../src/os_posix/os_thread.c:51 #2 0x00007fa5108f18b2 in __wt_conn_cache_pool_destroy (session=0x18598c0) at ../src/conn/conn_cache_pool.c:345 #3 0x00007fa5108f8da4 in __wt_connection_close (conn=0x1847920) at ../src/conn/conn_open.c:160 #4 0x00007fa5108ef5b7 in wiredtiger_open (home=0x7fa50eea9324 "WT_TEST1", event_handler=0x7fa510e1dfa0 <pyApiEventHandler>, config=0x7fa50f1ddc54 "create,error_prefix=\"test_shared_cache02.test_shared_cache02.test_shared_cache_reconfig01\",,shared_cache=(name=pool,size=200M,chunk=10M,reserve=30M),", wt_connp=0x7fff9ade1fa8) at ../src/conn/conn_api.c:2479 #5 0x00007fa510c0775e in _wrap_wiredtiger_open (self=<optimized out>, args=<optimized out>) at wiredtiger_wrap.c:8709 #6 0x00000032fe2e2d37 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0 #7 0x00000032fe2e3a14 in PyEval_EvalCodeEx () from /lib64/libpython2.7.so.1.0 #8 0x00000032fe2e1f43 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0 . .